]> git.donarmstrong.com Git - lilypond.git/blob - hdr/notehead.hh
release: 0.0.31
[lilypond.git] / hdr / notehead.hh
1 /*
2   notehead.hh -- part of LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef NOTEHEAD_HH
8 #define NOTEHEAD_HH
9 #include "item.hh"
10
11 /**
12  ball at the end of the stem
13 takes care of:
14
15   * help lines  
16   * proper placing of dots 
17
18   */
19
20 struct Notehead : Item {
21     const char * name() const;
22
23     int position;
24     /// -1 = lowest, 0 = inside, 1 = top
25     int extremal;
26     /// needed for the help-lines
27     int staff_size;
28     int dots;
29     int balltype;
30     int x_dir;
31     
32     /* *************** */
33     
34     void set_rhythmic(Rhythmic_req *);
35
36     /**
37       position of top line (5 linestaff: 8)
38       */
39     Notehead(int staff_size);
40     void do_print()const;
41     static int compare(Notehead*&a, Notehead*&b) ;
42     Molecule* brew_molecule_p()const;
43 };
44 #endif // NOTEHEAD_HH
45