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