summaryrefslogtreecommitdiff
path: root/lily/include/note-column.hh
blob: b5d71798b393bb3f1a85d1db83a0584bd0fa6f3a (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
  note-column.hh -- declare Note_column

  source file of the LilyPond music typesetter

  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/


#ifndef NOTE_COLUMN_HH
#define NOTE_COLUMN_HH
#include "item.hh"

/** 
  a struct for treating a group of noteheads (noteheads, stem, scripts )
  as a single entity.  
  */
class Note_column : public Item {
    Stem * stem_l_;
    Array<Notehead*> head_l_arr_;
    Array<Script *> script_l_arr_;
    
protected:
    virtual void translate(Offset);
    virtual  Interval do_height()const;
    virtual void do_print() const ;
    virtual void do_pre_processing();
    virtual Interval do_width()const;
public:
    
    NAME_MEMBERS(Note_column);
    Note_column();
    void add(Notehead *);
    void add(Stem *);
    void add(Script *);
};
#endif // NOTE_COLUMN_HH