]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
0abb7f6c37ef5f8f546b37deedde6e9ce5242f5a
[lilypond.git] / lily / include / dimension-cache.hh
1 /*   
2   dimension-cache.hh -- declare Dimension_cache
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef DIMENSION_CACHE_HH
11 #define DIMENSION_CACHE_HH
12
13 #include "lily-proto.hh"
14 #include "parray.hh"
15 #include "dimension-cache-callback.hh"
16 #include "lily-guile.hh"
17
18 /**
19   Adminstration of offset dimension info.
20 */
21 struct Dimension_cache
22 {
23   /*
24     Multi typed:
25
26      - cons: interval
27      - procedure: callback     
28      - else: empty
29    */
30   SCM dimension_;
31   SCM dimension_callback_;
32
33   /**
34     The offset wrt. to the center of #parent_#
35    */
36
37   Real offset_;
38   SCM offset_callbacks_;
39   
40   char offsets_left_;
41
42   /**
43      What to call to find extent.  Nil means empty. 
44    */
45   Grob * parent_;
46
47   Dimension_cache (Dimension_cache const&);
48   Dimension_cache ();
49   void init ();
50 };
51
52
53 #endif /* DIMENSION_CACHE_HH */
54