]> git.donarmstrong.com Git - lilypond.git/blob - lily/dimension-cache.cc
* lily/note-column.cc (translate_rests): call flush_extent_cache()
[lilypond.git] / lily / dimension-cache.cc
1 /*   
2   dimension-cache.cc --  implement 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
10 #include <math.h>
11
12 #include "dimension-cache.hh"
13 #include "warn.hh"
14 #include "grob.hh"
15
16 Dimension_cache::Dimension_cache (Dimension_cache const &d)
17 {
18   init ();
19   dimension_ = d.dimension_;
20   dimension_callback_ = d.dimension_callback_;
21   offset_ = d.offset_;
22   offset_callbacks_ = d.offset_callbacks_;
23   offsets_left_ = d.offsets_left_;
24   parent_ = d.parent_;  
25 }
26
27 Dimension_cache::Dimension_cache ()
28 {
29   init ();
30 }
31
32 void
33 Dimension_cache::init ()
34 {
35   dimension_ = SCM_EOL;
36   dimension_callback_ = SCM_EOL; 
37
38   offsets_left_ = 0;
39   offset_callbacks_ = SCM_EOL;
40   offset_ = 0.0;
41   
42   parent_ = 0;
43 }
44
45
46
47
48
49
50