lilypond-0.1.27
[lilypond.git] / hdr / dimen.hh
bloba3f4e8876b65498635004344a3b93a8adaec51a6
1 #ifndef DIMEN_HH
2 #define DIMEN_HH
4 #include "real.hh"
5 #include "string.hh"
7 const Real INCH_TO_PT=72.0;
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;
12 #define PT *PT_TO_PT
13 #define MM *MM_TO_PT
14 #define CM *CM_TO_PT
15 #define INCH *INCH_TO_PT
17 Real parse_dimen(String);
18 String print_dimen(Real);
19 Real convert_dimen(Real, String);
20 #endif