lilypond-1.5.9
[lilypond.git] / hdr / paper.hh
blobda9ebd12ed2f65a68d7f9991eb0f5af868fa217c
1 #include "proto.hh"
2 #include "real.hh"
3 #include "string.hh"
4 #include "moment.hh"
7 /** symbols, dimensions and constants
9 This struct takes care of all kinds of symbols, dimensions and
10 constants. Most of them are related to the point-size of the fonts,
11 so therefore, the lookup table for symbols is also in here.
13 see TODO
15 struct Paperdef {
16 Lookup *lookup_p_;
17 String outfile;
19 Real linewidth;
21 /// how much space does a whole note take (ideally?)
22 Real whole_width;
24 /// ideal = geometric_ ^ log2(duration)
25 Real geometric_;
27 /* *************** */
28 void reinit();
29 Paperdef(Lookup*);
30 void set(Lookup*);
31 ~Paperdef();
32 Paperdef(Paperdef const&);
33 Real interline()const;
34 Real internote()const;
35 Real rule_thickness()const;
36 Real standard_height()const;
37 Real note_width() const;
38 void print() const;
39 Real duration_to_dist(Moment);