]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-column.hh
429b83af3ef29968ac0b6650c96eccf5a35e1e55
[lilypond.git] / lily / include / note-column.hh
1 /*
2   note-column.hh -- declare Note_column
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef NOTE_COLUMN_HH
10 #define NOTE_COLUMN_HH
11
12 #include "grob-interface.hh"
13 #include "lily-proto.hh"
14
15
16 /** a struct for treating a group of noteheads (noteheads, stem
17     (chord) and scripts) as a single entity.
18
19     UGR. Junkme.  refpoint should be the notehead, dir should come from stem.
20 */
21 class Note_column
22 {
23 public:
24   static bool shift_less (Grob *const &, Grob *const &);
25   static Direction dir (Grob *me);
26   static Grob *accidentals (Grob *me);
27   static Grob *arpeggio (Grob *me);
28   static Slice head_positions_interval (Grob *me);
29   static Direction static_dir (Grob *);
30   static void translate_rests (Grob *me, int dy);
31   static Grob *first_head (Grob *me);
32   static Grob *get_rest (Grob *me);
33   static void set_stem (Grob *me, Grob *);
34   static void set_dotcol (Grob *me, Grob *);
35   static void add_head (Grob *me, Grob *);
36   static bool has_rests (Grob *me);
37   static Grob *dot_column (Grob *me);
38   DECLARE_GROB_INTERFACE();
39
40   static Item *get_stem (Grob *);
41 };
42
43 #endif // NOTE_COLUMN_HH