]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-column.hh
release: 1.3.10
[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--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef NOTE_COLUMN_HH
11 #define NOTE_COLUMN_HH
12
13 #include "item.hh"
14 #include "axis-group-item.hh"
15
16 /** a struct for treating a group of noteheads (noteheads, stem
17   (chord) and scripts) as a single entity.  */
18 class Note_column : public Axis_group_item {
19 protected:
20   virtual void do_post_processing () ;
21 public:
22
23   static int shift_compare (Note_column *const &, Note_column*const&);
24   
25   /** The relative position of the "voice" containing this
26     chord. Normally this would be the same as the stem direction,
27
28     JUNKME.
29     */
30   Direction dir () const;
31
32
33   Interval_t<int> head_positions_interval() const;
34   //  Interval width () const;
35
36   void translate_rests(int dy);
37   Note_head * first_head ()const;
38   Interval rest_dim ()const ;
39   Note_column ();
40   void set_stem (Stem*);
41   void set_dotcol (Dot_column*);
42   void add_head (Rhythmic_head*);
43   bool rest_b () const;
44
45   Stem *stem_l()const;
46 };
47
48 #endif // NOTE_COLUMN_HH