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"
17 #include "music-output-def.hh"
21 Symbols, dimensions and constants pertaining to visual output.
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
31 add support for other len->wid conversions.
33 Input_engraver should be in here.
35 class Paper_def : public Music_output_def {
37 Dictionary<Real> *real_vars_p_;
40 VIRTUAL_COPY_CONS(Paper_def,Music_output_def);
43 DECLARE_MY_RUNTIME_TYPEINFO;
46 Set or overwrite a variable
48 void set_var (String, Real);
50 Read a variable. Crash if it doesn't exist.
52 Real get_var (String) const;
57 Paper_def (Paper_def const&);
58 /// The distance between beams
59 Real interbeam_f() const;
61 The distance between lines
63 Real interline_f() const;
64 /// half the distance between lines
65 Real internote_f() const;
67 /// thickness of the standard line
68 Real rule_thickness() const;
69 Real linewidth_f() const;
70 /// height of the staff
71 Real standard_height() const;
73 /// width of a crotchet ball
74 Real note_width() const;
77 Lookup const * lookup_l(); // TODO naming
79 /** convert a duration to an idealspacing
80 influence using the geometric_ and parameters.
82 Real duration_to_dist (Moment, Real) const;
83 Real geometric_spacing(Moment) const;
84 Real arithmetic_constant(Moment minimal_mom) const;
85 Real arithmetic_spacing( Moment mom,Real constant) const;
86 String TeX_output_settings_str () const;
89 #endif // Paper_def_HH