]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/self-alignment-interface.hh
* lily/rest.cc (y_offset_callback): merge function of 3 callbacks.
[lilypond.git] / lily / include / self-alignment-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--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef SELF_ALIGNMENT_INTERFACE_HH
10 #define SELF_ALIGNMENT_INTERFACE_HH
11
12 #include "spanner.hh"
13
14 struct Self_alignment_interface
15 {
16   static bool has_interface (Grob *);
17
18   static SCM aligned_on_self (Grob *me, Axis a);
19   static SCM centered_on_parent (Grob *me, Axis a);
20   static SCM aligned_on_parent (Grob *me, Axis a);
21   
22   DECLARE_SCHEME_CALLBACK (x_aligned_on_self, (SCM element));
23   DECLARE_SCHEME_CALLBACK (y_aligned_on_self, (SCM element));
24
25   DECLARE_SCHEME_CALLBACK (centered_on_x_parent, (SCM element));
26   DECLARE_SCHEME_CALLBACK (centered_on_y_parent, (SCM element));
27
28   DECLARE_SCHEME_CALLBACK (aligned_on_x_parent, (SCM element));
29   DECLARE_SCHEME_CALLBACK (aligned_on_y_parent, (SCM element));
30 };
31 #endif