]> git.donarmstrong.com Git - lilypond.git/blob - hdr/paper.hh
release: 0.0.9
[lilypond.git] / hdr / paper.hh
1 #include "proto.hh"
2 #include "real.hh"
3 #include "string.hh"
4
5 /// symbols, dimensions and constants
6 struct Paperdef {
7     Lookup *lookup_;
8     String outfile;
9     Real linewidth;
10
11     /// how much space does a whole note take (ideally?)
12     Real whole_width;
13
14     /// ideal = geometric_ ^ log2(duration)
15     Real geometric_;
16     
17     /****************/
18     void parse();
19     Paperdef();
20     ~Paperdef();
21     Real interline()const;
22     Real rule_thickness()const;
23     Real standard_height()const;
24     Real note_width() const;
25     void print() const;
26     Real duration_to_dist(Real);
27 };
28 /** This struct takes care of all kinds of symbols, dimensions and
29  constants. Most of them are related to the point-size of the fonts,
30  so therefore, the lookup table for symbols is also in here.
31
32  see TODO
33  */