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