]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/side-position-interface.hh
patch::: 1.3.33.jcn3
[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--2000 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 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*);
26   void set_axis (Axis);
27   void set_quantised (Axis);
28   Axis get_axis () const;
29   
30   bool supported_b () const;
31   bool has_interface_b () const;
32   void add_support (Score_element*);
33
34   void add_staff_support ();
35   Direction get_direction () const;
36   void set_direction (Direction);
37 };
38
39 Side_position_interface side_position (Score_element*);
40
41 #endif /* SIDE_POSITION_INTERFACE_HH */
42