2 paper-def.hh -- declare Paper_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
12 #include "lily-proto.hh"
21 symbols, dimensions and constants
23 This struct takes care of all kinds of symbols, dimensions and
24 constants. Most of them are related to the point-size of the fonts,
25 so therefore, the lookup table for symbols is also in here.
29 add support for multiple fontsizes
30 split into "Input_paper_def" and Paper_def
32 add support for other len->wid conversions.
34 Input_engraver should be in here.
38 Assoc<String, Real> *real_vars_p_;
40 Input_translator * itrans_p_;
46 void set_var(String, Real);
47 Real get_var (String)const;
51 void set (Input_translator * );
52 Global_translator * get_global_translator_p()const;
54 Paper_def(Paper_def const&);
55 /// The distance between beams
56 Real interbeam_f()const;
58 The distance between lines
60 Real interline_f()const;
61 /// half the distance between lines
62 Real internote_f()const;
64 /// thickness of the standard line
65 Real rule_thickness()const;
66 Real whole_width()const;
67 Real linewidth_f()const;
68 /// height of the staff
69 Real standard_height()const;
71 /// width of a quaver ball
72 Real note_width() const;
75 Lookup const * lookup_l(); // TODO naming
77 /** convert a duration to an idealspacing
78 influence using the geometric_ and parameters.
80 Real duration_to_dist(Moment);
83 #endif // Paper_def_HH