]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/lookup.hh
release: 1.0.12
[lilypond.git] / lily / include / lookup.hh
index 524cdf1958da47f06dbb23410a56e97012095af8..5dc56d279c4e1e388e7e45c0ff91acbecf2793ed 100644 (file)
@@ -1,57 +1,63 @@
 /*
-  lilypond, (c) 1996,97 Han-Wen Nienhuys
+  lookup.hh -- declare Lookup
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
+
 #ifndef LOOKUPSYMS_HH
 #define LOOKUPSYMS_HH
 
-#include "symbol.hh"
+#include "atom.hh"
 #include "fproto.hh"
 #include "scalar.hh"
+#include "direction.hh"
+#include "curve.hh"
+#include "afm.hh"
 
-/// intuitive interface to symbol table
+/** handy interface to symbol table
+ */
 struct Lookup {
-    Symtables *symtables_;
-    String texsetting;
-    /* *************** */
-    void add(String, Symtable*);
-    void print()const;
-    Real internote();
-
-    Symbol linestaff(int n, Real w);
-    Symbol fill(Box b);
-    Symbol beam_element(int,int,Real=0);
-
-    /// round slope to closest TeXslope
-    Symbol beam(Real&,Real);
-
-    /**
-      pos == 3 : 3 lines above staff (extending below note)
-
-      pos == -3: below staff
-      */
-    Symbol streepjes(int pos);
-
-    Symbol meter(Array<Scalar>);
-    Symbol stem(Real y1_pos, Real y2_pos);
-    Symbol rule_symbol(Real height, Real width);
-    Symbol accidental(int);
-    Symbol ball(int);
-    Symbol flag(int);
-    Symbol rest(int);
-    Symbol clef(String);
-    Symbol bar(String);
-    Symbol dots(int);
-    Symbol slur(int dy, Real &dx, int dir);
-    Symbol half_slur(int dy, Real &dx, int dir, int xpart);
-    Symbol half_slur_middlepart(Real &dx, int dir);
-    Symbol big_slur(int dy, Real &dx, int dir);
-    Symbol text(String style, String text, int align = 1);
-    Symbol script(String idx);
-    Symbol hairpin(Real & width, bool decresc);
-
-    Lookup();
-    Lookup(Lookup const &);
-    ~Lookup();
+  Paper_def * paper_l_;
+  Symtables *symtables_p_;
+  String font_;
+  String font_path_;  
+  Adobe_font_metric * afm_p_;
+  
+  
+  Lookup();
+  Lookup (Lookup const &);
+  ~Lookup();
+  
+  void add (String, Symtable*);
+  void print() const;
+  Atom afm_find (String) const; 
+
+  Atom fill (Box b) const;
+  Atom beam (Real,Real, Real) const;
+  Atom ps_beam (Real, Real, Real) const;
+  Atom streepje (int type) const;
+  Atom vbrace (Real &dy) const;
+  Atom vbracket (Real &dy) const;
+  Atom time_signature (Array<Scalar>) const;
+  Atom special_time_signature (String) const;
+  Atom stem (Real y1_pos, Real y2_pos) const;
+  Atom rule_symbol (Real height, Real width) const;
+  Atom accidental (int) const;
+  Atom ball (int) const;
+  Atom flag (int, Direction) const;
+  Atom rest (int, bool outside) const;
+  Atom clef (String) const;
+  Atom bar (String, Real height) const;
+  Atom dots () const;
+  Atom dashed_slur (Array<Offset> controls, Real thick, Real dash) const;
+  Atom slur (Array<Offset> controls) const;
+  Atom plet (Real dy, Real dx, Direction dir) const;
+  Atom text (String style, String text) const;
+  Atom script (String idx) const;
+  Atom hairpin (Real width, bool decresc, bool continued) const;
+  Atom dynamic (String) const;
 };
 
-#endif
+#endif // LOOKUPSYMS_HH