]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/axis-group-interface.hh
f91771597ef65fc331477a0fb662f19aa0988353
[lilypond.git] / lily / include / axis-group-interface.hh
1 /*
2   axis-group-interface.hh -- declare Axis_group_interface
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2000--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef AXIS_GROUP_INTERFACE_HH
10 #define AXIS_GROUP_INTERFACE_HH
11
12 #include "std-vector.hh"
13 #include "lily-proto.hh"
14 #include "grob-interface.hh"
15 #include "skyline.hh"
16
17 struct Axis_group_interface
18 {
19   static SCM generic_group_extent (Grob *me, Axis a);
20   static Interval pure_group_height (Grob *me, int start, int end);
21   DECLARE_SCHEME_CALLBACK (width, (SCM smob));
22   DECLARE_SCHEME_CALLBACK (calc_x_common, (SCM smob));
23   DECLARE_SCHEME_CALLBACK (calc_y_common, (SCM smob));
24   DECLARE_SCHEME_CALLBACK (height, (SCM smob));
25   DECLARE_SCHEME_CALLBACK (pure_height, (SCM smob, SCM start, SCM end));
26   DECLARE_SCHEME_CALLBACK (calc_skylines, (SCM smob));
27   DECLARE_SCHEME_CALLBACK (combine_skylines, (SCM smob));
28   DECLARE_SCHEME_CALLBACK (calc_max_stretch, (SCM smob));
29   DECLARE_SCHEME_CALLBACK (print, (SCM smob));
30   DECLARE_SCHEME_CALLBACK (adjacent_pure_heights, (SCM));
31   static Interval relative_group_extent (vector<Grob*> const &list,
32                                          Grob *common, Axis);
33   static Interval relative_pure_height (Grob *me, int start, int end);
34   static Interval cached_pure_height (Grob *me, int, int);
35
36   static Grob *calc_pure_elts_and_common (Grob*);
37   static Skyline_pair skyline_spacing (Grob *me, vector<Grob*> elements);
38   static void add_element (Grob *me, Grob *);
39   static void set_axes (Grob *, Axis, Axis);
40   static bool has_axis (Grob *, Axis);
41   static void get_children (Grob *, vector<Grob*> *);
42   static Interval staff_extent (Grob *me, Grob *ref, Axis, Grob *staff, Axis);
43   static SCM calc_common (Grob *, Axis);
44   DECLARE_GROB_INTERFACE();
45 };
46
47 #endif /* AXIS_GROUP_INTERFACE_HH */
48