X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fnote-head.hh;h=e5dee66a6103efe846687f7ba177db211579fbb5;hb=5010bff384ba8243dd75dc2b2fcc0be5dc2a14da;hp=3becb118748a67fbc305a187bc724a648a4a74fb;hpb=82731e802565546441c401a84a13b486e54eb760;p=lilypond.git diff --git a/lily/include/note-head.hh b/lily/include/note-head.hh index 3becb11874..e5dee66a61 100644 --- a/lily/include/note-head.hh +++ b/lily/include/note-head.hh @@ -1,33 +1,33 @@ /* note-head.hh -- part of GNU LilyPond - (c) 1996--1999 Han-Wen Nienhuys + (c) 1996--2002 Han-Wen Nienhuys */ #ifndef NOTEHEAD_HH #define NOTEHEAD_HH -#include "rhythmic-head.hh" +#include "lily-guile.hh" +#include "molecule.hh" -/** ball at the end of the stem. Takes care of: +/** ball at the end of the stem. Also takes care of ledger lines. - * help lines + NoteHead is a kind of RhythmicHead, see there. - */ + Read-only: +*/ -class Note_head : public Rhythmic_head { +class Note_head +{ public: - - Note_head (); - void flip_around_stem (Direction); - static int compare (Note_head * const &a, Note_head *const &b) ; -protected: - Molecule make_molecule () const; - - - virtual Interval do_width () const; - virtual void do_pre_processing(); - virtual Molecule* do_brew_molecule_p() const; + DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM )); + static Interval head_extent (Grob*, Axis); + static Molecule brew_ledger_lines (Grob *me, int pos, int interspaces, + Interval x_extent, bool take_space); + DECLARE_SCHEME_CALLBACK (brew_ez_molecule, (SCM )); + static bool has_interface (Grob*); + static Real stem_attachment_coordinate (Grob *, Axis a); + static int get_balltype (Grob*) ; }; #endif // NOTEHEAD_HH