]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-column.hh
release: 0.0.56
[lilypond.git] / lily / include / note-column.hh
1 /*
2   note-column.hh -- declare Note_column
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef NOTE_COLUMN_HH
11 #define NOTE_COLUMN_HH
12 #include "item.hh"
13 #include "script-column.hh"
14
15 /** a struct for treating a group of noteheads (noteheads, stem
16   (chord) and scripts ) as a single entity.  */
17 class Note_column : public Script_column {
18 public:
19     bool h_shift_b_;
20     
21     Array<Notehead*> head_l_arr_;
22     Interval_t<int> head_positions_interval()const;
23
24     /** The relative position of the "voice" containing this
25       chord. Normally this would be the same as the stem direction,
26       but rests do not have stems.  */
27     int dir_i_;
28    
29         
30     NAME_MEMBERS(Note_column);
31     Note_column();
32     void add(Notehead *);
33     void add(Stem *);
34     void sort();
35     void add(Script* s) { Script_column::add(s);}
36 };
37
38 #endif // NOTE_COLUMN_HH