]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-head.hh
release: 1.1.29
[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   /// pitch in steps
27   int steps_i_;
28     
29   /// -1 = lowest, 0 = inside, 1 = top
30   int extremal_i_;
31     
32   /// needed for the help-lines
33   int staff_size_i_;
34   Direction x_dir_;
35     
36   Note_head ();
37   static int compare (Note_head * const &a, Note_head *const &b) ;
38
39 protected:
40   virtual Interval do_width () const;
41   virtual void do_pre_processing();
42   virtual Molecule* do_brew_molecule_p() const;
43 };
44 #endif // NOTEHEAD_HH
45