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