2 side-position-interface.hh -- declare Side_position_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SIDE_POSITION_INTERFACE_HH
11 #define SIDE_POSITION_INTERFACE_HH
16 struct Side_position_interface
18 Score_element * elt_l_;
20 Side_position_interface (Score_element const*);
21 static Real side_position (Dimension_cache const *);
22 static Real aligned_on_self (Dimension_cache const *);
23 static Real aligned_side (Dimension_cache const *);
24 static Real quantised_position (Dimension_cache const*);
25 static Real centered_on_parent (Dimension_cache const*);
27 void set_quantised (Axis);
28 Axis get_axis () const;
30 bool supported_b () const;
31 bool has_interface_b () const;
32 void add_support (Score_element*);
34 void add_staff_support ();
35 Direction get_direction () const;
36 void set_direction (Direction);
39 Side_position_interface side_position (Score_element*);
41 #endif /* SIDE_POSITION_INTERFACE_HH */