2 side-position-interface.hh -- declare Side_position_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SIDE_POSITION_INTERFACE_HH
11 #define SIDE_POSITION_INTERFACE_HH
17 TODO: move out unrelated callbacks.
19 TODO: reduce number of methods.
21 struct Side_position_interface
24 DECLARE_SCHEME_CALLBACK (aligned_on_support_extents, (SCM element, SCM axis));
25 DECLARE_SCHEME_CALLBACK (aligned_on_support_refpoints, (SCM element, SCM axis));
27 DECLARE_SCHEME_CALLBACK (aligned_side, (SCM element, SCM axis));
29 DECLARE_SCHEME_CALLBACK (out_of_staff, (SCM element, SCM axis));
31 DECLARE_SCHEME_CALLBACK (quantised_position, (SCM element, SCM axis));
33 static SCM general_side_position (Grob*, Axis, bool);
34 static void set_axis (Grob*,Axis);
35 static void set_minimum_space (Grob*,Real);
36 static void set_padding (Grob*,Real);
37 static Axis get_axis (Grob*) ;
38 static bool supported_b (Grob*) ;
39 static bool has_interface (Grob*) ;
40 static void add_support (Grob*,Grob*);
41 static void add_staff_support (Grob*);
42 static Direction get_direction (Grob*);
43 static void set_direction (Grob*,Direction);
48 #endif /* SIDE_POSITION_INTERFACE_HH */