X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Flookup.hh;h=013763485f984dfba03f652b23c768cba6b076d1;hb=75eebcb49e52d296b1da3e1074e0825d2c780db4;hp=96cd46e6b707186778e1407a22bd867629d4c8a3;hpb=ac618734a373960abd700156b4a4aceb12354e68;p=lilypond.git diff --git a/lily/include/lookup.hh b/lily/include/lookup.hh index 96cd46e6b7..013763485f 100644 --- a/lily/include/lookup.hh +++ b/lily/include/lookup.hh @@ -3,64 +3,32 @@ source file of the GNU LilyPond music typesetter - (c) 1997 Han-Wen Nienhuys + (c) 1997--2006 Han-Wen Nienhuys + Jan Nieuwenhuizen */ -#ifndef LOOKUPSYMS_HH -#define LOOKUPSYMS_HH - -#include "atom.hh" -#include "fproto.hh" -#include "scalar.hh" -#include "direction.hh" - -/** handy interface to symbol table - */ -struct Lookup { - Paper_def * paper_l_; - Symtables *symtables_; - String texsetting; - /* *************** */ - void add (String, Symtable*); - void print() const; - - Atom linestaff (int n, Real w) const; - Atom fill (Box b) const; - Atom beam_element (int,int,Real=0) const; - - /// round slope to closest TeXslope - Atom beam (Real&,Real) const; - - /** - pos == 3 : 3 lines above staff (extending below note) - - pos == -3: below staff - */ - Atom streepjes (int type, int pos) const; - - Atom vbrace (Real &dy) const; - Atom meter (Array) 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 (int) const; - Atom slur (int dy, Real &dx, Direction dir) const; - Atom half_slur (int dy, Real &dx, Direction dir, int xpart) const; - Atom half_slur_middlepart (Real &dx, Direction dir) const; - Atom big_slur (int dy, Real &dx, Direction dir) const; - Atom text (String style, String text, int align = 1) const; - Atom script (String idx) const; - Atom hairpin (Real & width, bool decresc) const; - Atom dynamic (String) const; - Lookup(); - Lookup (Lookup const &); - ~Lookup(); +#ifndef LOOKUP_HH +#define LOOKUP_HH + +#include "stencil.hh" + +struct Lookup +{ + static Stencil dot (Offset p, Real radius); + static Stencil bracket (Axis a, Interval iv, Real thick, Real protude, Real blot); + static Stencil accordion (SCM arg, Real interline_f, Font_metric *fm); + static Stencil round_filled_polygon (Array const &points, Real blotdiameter); + static Stencil frame (Box b, Real thick, Real blot); + static Stencil slur (Bezier controls, Real cthick, Real thick); + static Stencil bezier_sandwich (Bezier top_curve, Bezier bottom_curve); + static Stencil beam (Real slope, Real width, Real thick, Real blot); + static Stencil dashed_slur (Bezier, Real thick, Real dash_period, Real dash_fraction); + static Stencil blank (Box b); + static Stencil filled_box (Box b); + static Stencil round_filled_box (Box b, Real blotdiameter); + static Stencil repeat_slash (Real w, Real slope, Real th); + static Stencil horizontal_line (Interval w, Real th); + static Stencil triangle (Interval, Real, Real); }; -#endif +#endif // LOOKUP_HH