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