]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/dimensions.hh
8fe9487fcdcd3bbb2ac88e798551d67e32ad0bd8
[lilypond.git] / lily / include / dimensions.hh
1 #ifndef DIMENSIONS_HH
2 #define DIMENSIONS_HH
3
4 #include "real.hh"
5 class String;
6
7 const Real INCH_TO_PT=72.270;
8 const Real CM_TO_PT=INCH_TO_PT/2.54;
9 const Real MM_TO_PT=CM_TO_PT/10;
10 const Real PT_TO_PT =1.0;
11 const Real INCH_TO_BP = 72;
12 const Real BIGPOINT_TO_POINT = INCH_TO_PT/ INCH_TO_BP;
13 const Real CHAR_TO_PT =1.0;
14
15
16 #define PT  *PT_TO_PT
17 #define MM  *MM_TO_PT
18 #define CM  *CM_TO_PT
19 #define INCH *INCH_TO_PT
20 #define BIGPOINT *BIGPOINT_TO_POINT
21 #define CHAR *CHAR_TO_PT
22
23 String print_dimen (Real);
24
25 #endif // DIMENSIONS_HH
26