]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
release: 1.0.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--1998 Han-Wen Nienhuys <hanwen@cs.uu.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 #include "curve.hh"
17 #include "afm.hh"
18
19 /** handy interface to symbol table
20  */
21 struct Lookup {
22   Paper_def * paper_l_;
23   Symtables *symtables_p_;
24   String font_;
25   String font_path_;  
26   Adobe_font_metric * afm_p_;
27   
28   
29   Lookup();
30   Lookup (Lookup const &);
31   ~Lookup();
32   
33   void add (String, Symtable*);
34   void print() const;
35   Atom afm_find (String) const; 
36
37   Atom fill (Box b) const;
38   Atom beam (Real,Real, Real) const;
39   Atom ps_beam (Real, Real, Real) const;
40   Atom streepje (int type) const;
41   Atom vbrace (Real &dy) const;
42   Atom vbracket (Real &dy) const;
43   Atom time_signature (Array<Scalar>) const;
44   Atom special_time_signature (String) const;
45   Atom stem (Real y1_pos, Real y2_pos) const;
46   Atom rule_symbol (Real height, Real width) const;
47   Atom accidental (int) const;
48   Atom ball (int) const;
49   Atom flag (int, Direction) const;
50   Atom rest (int, bool outside) const;
51   Atom clef (String) const;
52   Atom bar (String, Real height) const;
53   Atom dots () const;
54   Atom dashed_slur (Array<Offset> controls, Real thick, Real dash) const;
55   Atom slur (Array<Offset> controls) const;
56   Atom plet (Real dy, Real dx, Direction dir) const;
57   Atom text (String style, String text) const;
58   Atom script (String idx) const;
59   Atom hairpin (Real width, bool decresc, bool continued) const;
60   Atom dynamic (String) const;
61 };
62
63 #endif // LOOKUPSYMS_HH