]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/rest-column.hh
05327cbc6c0b0a3d29ca35b0522deb791b5e440d
[lilypond.git] / lily / include / rest-column.hh
1 /*
2   rest-column.hh -- declare Rest_column
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef REST_COLUMN_HH
11 #define REST_COLUMN_HH
12
13 #include "script-column.hh"
14
15 /** 
16   struct to treat a set of rests as union (one voicegroup should
17   only produce one rest.
18   */
19 class Rest_column : public Script_column {
20     Link_array<Note_head> head_l_arr_;
21 public:
22     int dir_i_;
23     Stem* stem_l_;
24     void add(Note_head *);
25     void add(Stem *);
26     NAME_MEMBERS();
27     Rest_column();
28     void translate_heads(int dy);
29 protected:
30     virtual void do_print() const;
31     virtual void do_substitute_dependency(Score_elem*, Score_elem*);
32 };
33
34 #endif // REST_COLUMN_HH