]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-column.hh
release: 0.0.59
[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     void do_pre_processing();
19 public:
20         /// link to the stem. For setting default direction
21     Stem * stem_l_;
22
23     bool h_shift_b_;
24     
25     Array<Notehead*> head_l_arr_;
26     Interval_t<int> head_positions_interval()const;
27
28     /** The relative position of the "voice" containing this
29       chord. Normally this would be the same as the stem direction,
30       but rests do not have stems.  */
31     int dir_i_;
32    
33         
34     NAME_MEMBERS(Note_column);
35     Note_column();
36     void add(Notehead *);
37     void add(Stem *);
38     void sort();
39     void add(Script* s) { Script_column::add(s);}
40 };
41
42 #endif // NOTE_COLUMN_HH