summaryrefslogtreecommitdiff
path: root/lily/include/notehead.hh
blob: 5d9c1d012d4a45fa2e07ae082936945af9076b96 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
  notehead.hh -- part of LilyPond

  (c) 1996,97 Han-Wen Nienhuys
*/

#ifndef NOTEHEAD_HH
#define NOTEHEAD_HH

#include "item.hh"

/** ball at the end of the stem takes care of:

  * help lines  
  * proper placing of dots 

  It also is the item for a Rest
  
  */

class Notehead : public Item {
public:
    NAME_MEMBERS(Notehead);

    bool rest_b_;
    int position;
    /// -1 = lowest, 0 = inside, 1 = top
    int extremal;
    /// needed for the help-lines
    int staff_size;
    int dots;
    int balltype;
    int x_dir;
    
    /* *************** */
    
    void set_rhythmic(Rhythmic_req *);

    /**
      position of top line (5 linestaff: 8)
      */
    Notehead(int staff_size);
    static int compare(Notehead * const &a, Notehead *const &b) ;
protected:
    virtual    void do_print()const;
    virtual    Molecule* brew_molecule_p()const;
};
#endif // NOTEHEAD_HH