]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
release: 0.0.63
[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()const;
19
20     Symbol linestaff(int n, Real w)const;
21     Symbol fill(Box b)const;
22     Symbol beam_element(int,int,Real=0)const;
23
24     /// round slope to closest TeXslope
25     Symbol beam(Real&,Real)const;
26
27     /**
28       pos == 3 : 3 lines above staff (extending below note)
29
30       pos == -3: below staff
31       */
32     Symbol streepjes(int pos)const;
33
34     Symbol meter(Array<Scalar>)const;
35     Symbol stem(Real y1_pos, Real y2_pos)const;
36     Symbol rule_symbol(Real height, Real width)const;
37     Symbol accidental(int)const;
38     Symbol ball(int)const;
39     Symbol flag(int)const;
40     Symbol rest(int)const;
41     Symbol clef(String)const;
42     Symbol bar(String)const;
43     Symbol dots(int)const;
44     Symbol slur(int dy, Real &dx, int dir)const;
45     Symbol half_slur(int dy, Real &dx, int dir, int xpart)const;
46     Symbol half_slur_middlepart(Real &dx, int dir)const;
47     Symbol big_slur(int dy, Real &dx, int dir)const;
48     Symbol text(String style, String text, int align = 1)const;
49     Symbol script(String idx)const;
50     Symbol hairpin(Real & width, bool decresc)const;
51     Symbol dynamic(String)const;
52     Lookup();
53     Lookup(Lookup const &);
54     ~Lookup();
55 };
56
57 #endif