]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/key-item.hh
release: 0.0.68pre
[lilypond.git] / lily / include / key-item.hh
1 /*
2   key-item.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef KEYITEM_HH
8 #define KEYITEM_HH
9
10 #include "item.hh"
11 #include "varray.hh"
12
13
14 /// An item which places accidentals at the start of the line
15 struct Key_item : Item {
16     Array<int> pitch;
17     Array<int> acc;
18     int c_position;
19
20     
21     /* *************** */
22     NAME_MEMBERS();
23     SCORE_ELEM_CLONE(Key_item)
24
25     Key_item(int cposition);
26     void add(int pitch, int acc);
27     void read(const Key_register&);
28     void set_c_position(int);
29     void preprocess();
30     Molecule* brew_molecule_p()const;
31 };
32
33 #endif // KEYITEM_HH