]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
release: 0.0.39-1
[lilypond.git] / lily / include / lookup.hh
1 /*
2   lilypond, (c) 1996,97 Han-Wen Nienhuys
3 */
4 #ifndef LOOKUPSYMS_HH
5 #define LOOKUPSYMS_HH
6
7 #include "symbol.hh"
8 #include "fproto.hh"
9 #include "scalar.hh"
10
11 /// intuitive interface to symbol table
12 struct Lookup {
13     Symtables *symtables_;
14     String texsetting;
15     /* *************** */
16     void add(String, Symtable*);
17     void print()const;
18     Real internote();
19
20     Symbol linestaff(int n, Real w);
21     Symbol fill(Box b);
22     Symbol beam_element(int,int,Real=0);
23
24     /// round slope to closest TeXslope
25     Symbol beam(Real&,Real);
26
27     /**
28       pos == 3 : 3 lines above staff (extending below note)
29
30       pos == -3: below staff
31       */
32     Symbol streepjes(int pos);
33
34     Symbol meter(Array<Scalar>);
35     Symbol stem(Real y1_pos, Real y2_pos);
36     Symbol rule_symbol(Real height, Real width);
37     Symbol accidental(int);
38     Symbol ball(int);
39     Symbol flag(int);
40     Symbol rest(int);
41     Symbol clef(String);
42     Symbol bar(String);
43     Symbol dots(int);
44     Symbol slur(int dy, Real &dx, int dir);
45     Symbol half_slur(int dy, Real &dx, int dir, int xpart);
46     Symbol half_slur_middlepart(Real &dx, int dir);
47     Symbol big_slur(int dy, Real &dx, int dir);
48     Symbol text(String style, String text, int align = 1);
49     Symbol script(String idx);
50     Symbol hairpin(Real & width, bool decresc);
51
52     Lookup();
53     Lookup(Lookup const &);
54     ~Lookup();
55 };
56
57 #endif