]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-head.hh
6ed35ce26357a38ed33972d8b87d1dfc09acc089
[lilypond.git] / lily / include / note-head.hh
1 /*
2   note-head.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef NOTEHEAD_HH
8 #define NOTEHEAD_HH
9
10 #include "rhythmic-head.hh"
11
12 /** ball at the end of the stem. Takes care of:
13
14   * help lines  
15
16   */
17
18 class Note_head : public Rhythmic_head {
19 public:
20   DECLARE_MY_RUNTIME_TYPEINFO;
21
22   int position_i_;
23     
24   /// -1 = lowest, 0 = inside, 1 = top
25   int extremal_i_;
26     
27   /// needed for the help-lines
28   int staff_size_i_;
29   Direction x_dir_;
30     
31   /**
32     position of top line (5 linestaff: 8)
33     */
34   Note_head ();
35   static int compare (Note_head * const &a, Note_head *const &b) ;
36
37 protected:
38   virtual Interval do_width () const;
39   virtual void do_pre_processing();
40   virtual Molecule* brew_molecule_p() const;
41 };
42 #endif // NOTEHEAD_HH
43