]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/align-interface.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / align-interface.hh
1 /*
2   align-interface.hh -- declare Align_interface
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2000--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef ALIGN_INTERFACE_HH
10 #define ALIGN_INTERFACE_HH
11
12 #include "lily-proto.hh"
13 #include "std-vector.hh"
14 #include "grob-interface.hh"
15
16 struct Align_interface
17 {
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&,
24                                                       Axis a,
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 *);
31
32   DECLARE_GROB_INTERFACE();
33
34   static Real get_pure_child_y_translation (Grob *, Grob *child, int start, int end);
35 };
36
37 #endif /* ALIGN_INTERFACE_HH */
38