]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-head.hh
a48792349d61e81c52d615801858f5a449ca41b0
[lilypond.git] / lily / include / note-head.hh
1 /*
2   note-head.hh -- part of GNU LilyPond
3
4   (c) 1996--1999 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   
21   String note_head_type_str_;
22
23   /// position of top line (5 linestaff: 8)
24   int position_i_;
25
26   /// -1 = lowest, 0 = inside, 1 = top
27   int extremal_i_;
28     
29   /// needed for the help-lines
30   int staff_size_i_;
31   Direction x_dir_;
32     
33   Note_head ();
34   static int compare (Note_head * const &a, Note_head *const &b) ;
35 protected:
36   virtual Interval do_width () const;
37   virtual void do_pre_processing();
38   virtual Molecule* do_brew_molecule_p() const;
39 };
40 #endif // NOTEHEAD_HH
41