]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/axis-group-interface.hh
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[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--2006 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
16 struct Axis_group_interface
17 {
18   static SCM generic_group_extent (Grob *me, Axis a);
19   static SCM pure_group_height (Grob *me, int start, int end);
20   DECLARE_SCHEME_CALLBACK (width, (SCM smob));
21   DECLARE_SCHEME_CALLBACK (height, (SCM smob));
22   DECLARE_SCHEME_CALLBACK (pure_height, (SCM smob, SCM start, SCM end));
23   static Interval relative_group_extent (vector<Grob*> const &list,
24                                          Grob *common, Axis);
25   static Interval relative_pure_height (Grob *me, vector<Grob*> const &list,
26                                         Grob *common, int start, int end,
27                                         bool use_cache);
28   static Interval cached_pure_height (Grob *me, vector<Grob*> const &list,
29                                       Grob *common, int, int);
30
31   static void skyline_spacing (Grob *me, vector<Grob*> elements);
32   static void add_element (Grob *me, Grob *);
33   static void set_axes (Grob *, Axis, Axis);
34   static bool has_axis (Grob *, Axis);
35   static void get_children (Grob *, vector<Grob*> *);
36   DECLARE_GROB_INTERFACE();
37 };
38
39 #endif /* AXIS_GROUP_INTERFACE_HH */
40