]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimension-cache.hh
* lily/grob.cc (suicide): clear dim_caches_.
[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@xs4all.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   XY offset/refpoint/extent structure.
19 */
20 class Dimension_cache
21 {
22   Interval *extent_;
23   Real *offset_;
24   Grob *parent_;
25   void init ();
26   void clear ();
27   
28   friend class Grob;
29   
30   Dimension_cache (Dimension_cache const &);
31   ~Dimension_cache ();
32   Dimension_cache ();
33 };
34
35 #endif /* DIMENSION_CACHE_HH */
36