2 align-interface.hh -- declare Align_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 2000--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef ALIGN_INTERFACE_HH
10 #define ALIGN_INTERFACE_HH
12 #include "lily-proto.hh"
13 #include "lily-guile.hh"
14 #include "std-vector.hh"
15 #include "grob-interface.hh"
17 struct Align_interface
19 DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
20 DECLARE_SCHEME_CALLBACK (stretch_after_break, (SCM element));
21 static void align_to_fixed_distance (Grob *, Axis a);
22 static void align_elements_to_extents (Grob *, Axis a);
23 static vector<Real> get_extents_aligned_translates (Grob *, vector<Grob*> const&,
25 bool safe, int start, int end);
26 static void set_ordered (Grob *);
27 static Axis axis (Grob *);
28 static void add_element (Grob *, Grob *);
29 static int get_count (Grob *, Grob *);
31 DECLARE_GROB_INTERFACE();
33 static Real get_pure_child_y_translation (Grob *, Grob *child, int start, int end);
36 Grob *find_fixed_alignment_parent (Grob *g);
38 #endif /* ALIGN_INTERFACE_HH */