]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-side.hh
patch::: 1.3.8.uu1
[lilypond.git] / lily / include / staff-side.hh
1 /*   
2   staff-side.hh -- declare Staff_side_{element,spanner,item}
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef STAFF_SIDE_HH
11 #define STAFF_SIDE_HH
12
13
14 #include "spanner.hh"
15 #include "item.hh"
16 #include "staff-symbol-referencer.hh"
17 #include "directional-element.hh"
18
19 struct Side_position_interface
20 {
21   Score_element * elt_l_;
22 public:
23   Side_position_interface (Score_element*);
24   static Real side_position (Dimension_cache const *);
25   static Real self_alignment (Dimension_cache const *);
26   static Real aligned_side (Dimension_cache const *);  
27   
28   void set_axis (Axis);
29   Axis get_axis () const;
30   
31   bool supported_b () const;
32   bool is_staff_side_b () const;
33   void add_support (Score_element*);
34   
35   Direction get_direction () const;
36   void set_direction (Direction);
37 };
38
39
40
41 #endif /* STAFF_SIDE_HH */
42