]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-side.hh
release: 0.1.8
[lilypond.git] / lily / include / staff-side.hh
1 /*
2   staff-side.hh -- declare Staff_side
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 STAFF_SIDE_HH
11 #define STAFF_SIDE_HH
12
13 #include "score-elem.hh"
14 #include "interval.hh"
15
16 /** A symbol which sits along a staff.
17
18   */
19 class Staff_side : virtual Score_elem {
20     Link_array<Score_elem> support_l_arr_;
21     int staff_size_i_;
22     Interval support_height()const;
23     Staff_symbol* staff_sym_l_;
24     int get_position_i()const;
25
26     void read_staff_sym();
27 public:
28
29     /**
30       Vertical dir of symbol relative to staff. -1 = below staff?
31       */
32     int dir_i_;
33     Interval sym_int_;
34     
35     /// follow the support inside the staff?
36     bool inside_staff_b_;
37
38     int pos_i_;
39
40     void set_staffsym (Staff_symbol * );
41   
42     Staff_side();
43     void add_support (Score_elem*);
44     DECLARE_MY_RUNTIME_TYPEINFO;
45     
46 protected:
47     virtual Interval symbol_height() const;
48     virtual void do_substitute_dependency (Score_elem *, Score_elem*);
49     virtual void do_post_processing();
50 };
51 #endif // STAFF_SIDE_HH