]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
release: 1.3.54
[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--2000 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
19
20 /**
21   Adminstration of offset dimension info. 
22  */
23 struct Dimension_cache
24 {
25   bool valid_b_;
26   Interval dim_;
27   /**
28     The offset wrt. to the center of #parent_l_#
29    */
30
31   Real offset_;
32
33
34   
35   Array<Offset_callback> off_callbacks_;
36
37   /**
38      What to call to find extent.  Nil means empty. 
39    */
40   Dim_cache_callback extent_callback_l_;
41   Score_element * parent_l_;
42
43   Dimension_cache(Dimension_cache const&);
44   Dimension_cache ();
45   void init ();
46 };
47
48
49 #endif /* DIMENSION_CACHE_HH */
50