]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-side.hh
e24dfa62e6e200441752d7e6fac153f67149e5ad
[lilypond.git] / lily / include / staff-side.hh
1 /*
2   staff-side.hh -- declare Staff_side
3
4   source file of the 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 "staff-elem.hh"
14
15 /// A symbol which sits along  the staff
16 class Staff_side  {
17     Array<Staff_elem*> support_l_arr_;
18
19     Staff_symbol * staff_sym_l_;
20     Staff_elem * elem_l_;
21     Interval support_height()const;
22 public:
23        /**
24       Vertical dir of symbol relative to staff. -1 = below staff?
25       */
26     int dir_i_;
27     
28     /// follow the support inside the staff?
29     bool inside_staff_b_;
30
31     void set_staffsym(Staff_symbol*);
32   
33     Staff_side(Staff_elem*);
34     void add_support(Staff_elem*);
35     
36 protected:
37     int get_position_i()const;
38     int get_position_i(Interval)const;
39 };
40 #endif // STAFF_SIDE_HH