]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scoreline.hh
ef95d6d078e53de999c74954c8c059ff52c1fbea
[lilypond.git] / lily / include / scoreline.hh
1 /*
2   scoreline.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef SCORELINE_HH
8 #define SCORELINE_HH
9
10 #include "colhpos.hh"
11 #include "spanner-elem-group.hh"
12
13 /// the columns of a score that form one line.
14 class Line_of_score : public Spanner{
15 public:
16     Link_array<PCol> cols;
17     bool error_mark_b_;
18     virtual String TeX_string() const;    
19     
20
21     DECLARE_MY_RUNTIME_TYPEINFO;
22     Line_of_score();
23     
24     void add(Score_elem *);
25
26     /// is #c# contained in #*this#?
27     bool contains_b(PCol const *c)const;
28     
29     Link_array<Line_of_score> get_lines()const;
30     void set_breaking(Array<Col_hpositions> const&);
31     
32 protected:
33     virtual void break_into_pieces();
34     virtual Interval do_width()const;
35     virtual void do_print() const;
36     SCORE_ELEM_CLONE(Line_of_score);
37 };
38
39 #endif
40