]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
release: 1.3.33
[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--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   Jan Nieuwenhuizen <janneke@gnu.org>
8 */
9
10 #ifndef LOOKUP_HH
11 #define LOOKUP_HH
12
13 #include "lily-guile.hh"
14 #include "molecule.hh"
15 #include "flower-proto.hh"
16 #include "direction.hh"
17 #include "box.hh"
18
19 /**
20    handy interface to symbol table
21    TODO: move this into GUILE?
22  */
23 class Lookup
24 {
25 public:
26   String font_name_;
27   Adobe_font_metric * afm_l_;
28
29
30   Lookup ();
31   Lookup (Lookup const&);
32
33   Molecule afm_find (String, bool warn=true) const;
34   Molecule accordion (SCM arg, Real interline_f) const;
35
36   static Molecule frame (Box b, Real thick);
37   static Molecule slur (Bezier controls, Real cthick, Real thick) ;
38   static Molecule beam (Real, Real, Real) ;
39   static Molecule dashed_slur (Bezier, Real thick, Real dash) ;
40   static Molecule blank (Box b) ;
41   static Molecule filledbox (Box b) ;  
42   static Molecule text (String style, String text, Paper_def*) ;
43 };
44
45 #endif // LOOKUP_HH