]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/side-position-interface.hh
Fix some bugs in the dynamic engraver and PostScript backend
[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--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SIDE_POSITION_INTERFACE_HH
10 #define SIDE_POSITION_INTERFACE_HH
11
12 #include "spanner.hh"
13 #include "item.hh"
14
15 /*
16   TODO: move out unrelated callbacks.
17
18   TODO: reduce number of methods.
19 */
20 struct Side_position_interface
21 {
22 public:
23
24   DECLARE_SCHEME_CALLBACK (y_aligned_on_support_refpoints, (SCM element));
25   DECLARE_SCHEME_CALLBACK (x_aligned_side, (SCM element));
26   DECLARE_SCHEME_CALLBACK (y_aligned_side, (SCM element));
27
28   static SCM aligned_side (Grob*me, Axis a);
29
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 *);
37 };
38
39 #endif /* SIDE_POSITION_INTERFACE_HH */
40