2 align-interface.hh -- declare Align_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 2000--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef ALIGN_INTERFACE_HH
10 #define ALIGN_INTERFACE_HH
12 #include "lily-proto.hh"
13 #include "std-vector.hh"
14 #include "grob-interface.hh"
16 struct Align_interface
18 DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
19 DECLARE_SCHEME_CALLBACK (stretch_after_break, (SCM element));
20 DECLARE_SCHEME_CALLBACK (calc_max_stretch, (SCM));
21 static void stretch (Grob *, Real amount, 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 int stretchable_children_count (Grob const*);
27 static void set_ordered (Grob *);
28 static Axis axis (Grob *);
29 static void add_element (Grob *, Grob *);
30 static int get_count (Grob *, Grob *);
32 DECLARE_GROB_INTERFACE();
34 static Real get_pure_child_y_translation (Grob *, Grob *child, int start, int end);
37 #endif /* ALIGN_INTERFACE_HH */