X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fsustain-pedal.cc;h=f3efc6e76bd50ddc782b082bae2f3605b99e22bb;hb=027f1aab2ec8fbbc8a20cf421510f8b9a259d6d2;hp=93e454441c9489a3e11bb757b3a9fc31c70be349;hpb=f5e5c04d731e93b1d8d4cf7e7697f71f6e7c2bdf;p=lilypond.git diff --git a/lily/sustain-pedal.cc b/lily/sustain-pedal.cc index 93e454441c..f3efc6e76b 100644 --- a/lily/sustain-pedal.cc +++ b/lily/sustain-pedal.cc @@ -6,30 +6,38 @@ (c) 2000 Han-Wen Nienhuys */ - -#include "sustain-pedal.hh" -#include "side-position-interface.hh" +#include "score-element.hh" #include "molecule.hh" #include "lookup.hh" -#include "staff-symbol-referencer.hh" +#include "string.hh" + +// update comment --hwn +/* + Urg. + This is almost text + Problem is: + * we have no kerning + * symbols are at wrong place in font + + + + Properties: -void -Sustain_pedal::after_line_breaking () + glyph -- text string (TODO: make one large glyph of the Ped symbol, removes need for member_brew_molecule ()) + +*/ + +struct Sustain_pedal { - return ; - /* - UGH. Should work automatically via offset callback. - */ - Side_position_interface i (this); - Direction d = i.get_direction (); - i.set_direction (d); -} +public: + static SCM brew_molecule (SCM); +}; -MAKE_SCHEME_SCORE_ELEMENT_NON_DEFAULT_CALLBACKS(Sustain_pedal); +MAKE_SCHEME_CALLBACK(Sustain_pedal,brew_molecule); SCM -Sustain_pedal::scheme_molecule (SCM smob) +Sustain_pedal::brew_molecule (SCM smob) { Score_element * e = unsmob_element (smob); @@ -57,7 +65,3 @@ Sustain_pedal::scheme_molecule (SCM smob) return mol.create_scheme (); } -Sustain_pedal ::Sustain_pedal(SCM s ) - : Item (s) -{ -}