]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
* lily/rest.cc (y_offset_callback): merge function of 3 callbacks.
[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
28   /**
29      What to call to find extent.  Nil means empty.
30   */
31   Grob *parent_;
32   friend class Grob;
33   
34   Dimension_cache (Dimension_cache const &);
35   ~Dimension_cache ();
36   Dimension_cache ();
37   void init ();
38 };
39
40 #endif /* DIMENSION_CACHE_HH */
41