]> git.donarmstrong.com Git - lilypond.git/blob - tex.hh
release: 0.0.3
[lilypond.git] / tex.hh
1 #ifndef TEX_HH
2 #define TEX_HH
3
4 #include "string.hh"
5 #include "boxes.hh"
6
7 /// anything which can be output
8 struct Output {
9     virtual String TeXstring() const=0;
10     /** generate a TeX string, which typesets the symbol. Vertical
11      base position is the "origin" of the staff
12     */
13     virtual Box extent() const=0;
14 };
15 /**
16   any output should (at least) be outputtable for TeX, and have a
17   dimension
18 */
19
20
21 /// an idea
22 struct Text_gob : Output {
23     String text;
24     // fonts, sizes, etc?
25     virtual String TeXstring() const;
26     virtual Box extent() const;
27 };
28
29
30 /// #h# is in points
31 String vstrut(Real h);
32
33
34 #endif