]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
* configure.in: Test for and accept lmodern if EC fonts not found.
[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 "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
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
52 #endif /* DIMENSION_CACHE_HH */
53