diff options
Diffstat (limited to 'lily/include/notehead.hh')
-rw-r--r-- | lily/include/notehead.hh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lily/include/notehead.hh b/lily/include/notehead.hh index d7a68e7798..5d9c1d012d 100644 --- a/lily/include/notehead.hh +++ b/lily/include/notehead.hh @@ -6,20 +6,23 @@ #ifndef NOTEHEAD_HH #define NOTEHEAD_HH + #include "item.hh" -/** - ball at the end of the stem -takes care of: +/** ball at the end of the stem takes care of: * help lines * proper placing of dots + It also is the item for a Rest + */ -struct Notehead : Item { +class Notehead : public Item { +public: NAME_MEMBERS(Notehead); + bool rest_b_; int position; /// -1 = lowest, 0 = inside, 1 = top int extremal; @@ -37,9 +40,10 @@ struct Notehead : Item { position of top line (5 linestaff: 8) */ Notehead(int staff_size); - void do_print()const; static int compare(Notehead * const &a, Notehead *const &b) ; - Molecule* brew_molecule_p()const; +protected: + virtual void do_print()const; + virtual Molecule* brew_molecule_p()const; }; #endif // NOTEHEAD_HH |