]> git.donarmstrong.com Git - lilypond.git/blob - hdr/key-item.hh
release: 0.0.38
[lilypond.git] / hdr / key-item.hh
1 /*
2   key-item.hh -- part of 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(Key_item);
23     Key_item(int cposition);
24     void add(int pitch, int acc);
25     void read(const Key_register&);
26     void set_c_position(int);
27     void preprocess();
28     Molecule* brew_molecule_p()const;
29 };
30
31 #endif // KEYITEM_HH