2 axis-group-interface.hh -- declare Axis_group_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 2000--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef AXIS_GROUP_INTERFACE_HH
10 #define AXIS_GROUP_INTERFACE_HH
12 #include "std-vector.hh"
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
18 struct Axis_group_interface
20 static SCM generic_group_extent (Grob *me, Axis a);
21 static SCM pure_group_height (Grob *me, int start, int end);
22 DECLARE_SCHEME_CALLBACK (width, (SCM smob));
23 DECLARE_SCHEME_CALLBACK (height, (SCM smob));
24 DECLARE_SCHEME_CALLBACK (pure_height, (SCM smob, SCM start, SCM end));
25 static Interval relative_group_extent (vector<Grob*> const &list,
27 static Interval relative_pure_height (Grob *me, vector<Grob*> const &list,
28 Grob *common, int start, int end,
30 static Interval cached_pure_height (Grob *me, vector<Grob*> const &list,
31 Grob *common, int, int);
33 static void add_element (Grob *me, Grob *);
34 static void set_axes (Grob *, Axis, Axis);
35 static bool has_axis (Grob *, Axis);
36 static void get_children (Grob *, vector<Grob*> *);
37 static bool has_interface (Grob *);
40 #endif /* AXIS_GROUP_INTERFACE_HH */