]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
* lily/grob.cc: remove X-extent-callback / Y-extent-callback.
[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 class Dimension_cache
21 {
22   /**
23      The offset wrt. to the center of #parent_#
24   */
25   Interval *extent_;
26   Real offset_;
27   SCM offset_callbacks_;
28
29   char offsets_left_;
30
31   /**
32      What to call to find extent.  Nil means empty.
33   */
34   Grob *parent_;
35   friend class Grob;
36   
37   Dimension_cache (Dimension_cache const &);
38   ~Dimension_cache ();
39   Dimension_cache ();
40   void init ();
41 };
42
43 #endif /* DIMENSION_CACHE_HH */
44