]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/side-position-interface.hh
release: 1.3.16
[lilypond.git] / lily / include / side-position-interface.hh
1 /*   
2   side-position-interface.hh -- declare Side_position_interface
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 SIDE_POSITION_INTERFACE_HH
11 #define SIDE_POSITION_INTERFACE_HH
12
13 #include "spanner.hh"
14 #include "item.hh"
15
16 struct Side_position_interface
17 {
18   Score_element * elt_l_;
19 public:
20   Side_position_interface (Score_element const*);
21   static Real side_position (Dimension_cache const *);
22   static Real self_alignment (Dimension_cache const *);
23   static Real aligned_side (Dimension_cache const *);  
24   static Real quantised_position (Dimension_cache const*);
25   void set_axis (Axis);
26   void set_quantised (Axis);
27   Axis get_axis () const;
28   
29   bool supported_b () const;
30   bool has_interface_b () const;
31   void add_support (Score_element*);
32   
33   Direction get_direction () const;
34   void set_direction (Direction);
35 };
36
37
38 #endif /* SIDE_POSITION_INTERFACE_HH */
39