lilypond-1.3.11
[lilypond.git] / lily / include / side-position-interface.hh
blob55a15f308adfabc121b2cbe71de431245d6eb06f
1 /*
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>
8 */
10 #ifndef SIDE_POSITION_INTERFACE_HH
11 #define SIDE_POSITION_INTERFACE_HH
13 #include "spanner.hh"
14 #include "item.hh"
16 #include "directional-element.hh"
18 struct Side_position_interface
20 Score_element * elt_l_;
21 public:
22 Side_position_interface (Score_element const*);
23 static Real side_position (Dimension_cache const *);
24 static Real self_alignment (Dimension_cache const *);
25 static Real aligned_side (Dimension_cache const *);
26 static Real quantised_position (Dimension_cache const*);
27 void set_axis (Axis);
28 void set_quantised (Axis);
29 Axis get_axis () const;
31 bool supported_b () const;
32 bool has_interface_b () const;
33 void add_support (Score_element*);
35 Direction get_direction () const;
36 void set_direction (Direction);
40 #endif /* SIDE_POSITION_INTERFACE_HH */