2 side-position-interface.hh -- declare Side_position_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #ifndef SIDE_POSITION_INTERFACE_HH
10 #define SIDE_POSITION_INTERFACE_HH
16 TODO: move out unrelated callbacks.
18 TODO: reduce number of methods.
20 struct Side_position_interface
23 DECLARE_SCHEME_CALLBACK (aligned_on_support_extents, (SCM element, SCM axis));
24 DECLARE_SCHEME_CALLBACK (aligned_on_support_refpoints, (SCM element, SCM axis));
26 DECLARE_SCHEME_CALLBACK (aligned_side, (SCM element, SCM axis));
28 DECLARE_SCHEME_CALLBACK (quantised_position, (SCM element, SCM axis));
30 static SCM general_side_position (Grob *, Axis, bool);
31 static Axis get_axis (Grob *);
32 static void set_axis (Grob *, Axis);
33 static bool has_interface (Grob *);
34 static void add_support (Grob *, Grob *);
35 static void add_staff_support (Grob *);
36 static Direction get_direction (Grob *);
39 #endif /* SIDE_POSITION_INTERFACE_HH */