2 side-position-interface.hh -- declare Side_position_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 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_minimum_space (Real);
28 void set_padding (Real);
29 void set_quantised (Axis);
30 Axis get_axis () const;
32 bool supported_b () const;
33 bool has_interface_b () const;
34 void add_support (Score_element*);
36 void add_staff_support ();
37 Direction get_direction () const;
38 void set_direction (Direction);
41 Side_position_interface side_position (Score_element*);
43 #endif /* SIDE_POSITION_INTERFACE_HH */