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