2 align-interface.hh -- declare Align_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 2000--2009 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 (align_to_minimum_distances, (SCM));
19 DECLARE_SCHEME_CALLBACK (align_to_ideal_distances, (SCM));
20 static void align_elements_to_minimum_distances(Grob *, Axis a);
21 static void align_elements_to_ideal_distances(Grob *);
22 static vector<Real> get_minimum_translations (Grob *, vector<Grob*> const&,
24 bool safe, int start, int end);
25 static void set_ordered (Grob *);
26 static Axis axis (Grob *);
27 static void add_element (Grob *, Grob *);
28 static int get_count (Grob *, Grob *);
30 DECLARE_GROB_INTERFACE();
32 static Real get_pure_child_y_translation (Grob *, Grob *child, int start, int end);
35 #endif /* ALIGN_INTERFACE_HH */