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