]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/separation-item.hh
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / include / separation-item.hh
1 /*
2   single-malt-grouping-item.hh -- declare Separation_item
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SINGLE_MALT_GROUPING_ITEM_HH
10 #define SINGLE_MALT_GROUPING_ITEM_HH
11
12 #include "lily-proto.hh"
13 #include "direction.hh"
14 #include "grob-interface.hh"
15
16 struct Separation_item
17 {
18   DECLARE_GROB_INTERFACE();
19   DECLARE_SCHEME_CALLBACK(calc_skylines, (SCM));
20
21   static vector<Box> boxes (Grob *me);
22   static Interval conditional_width (Grob *, Grob *);
23   static Interval width (Grob *);
24   static Interval relative_width (Grob *, Grob *);
25   static Grob *extremal_break_aligned_grob (Grob *, Direction, Interval *);
26   static void set_distance (Drul_array<Item *>, Real);
27   static void set_skyline_distance (Drul_array<Item*>, Real);
28   static void add_item (Grob *, Item *);
29   static void add_conditional_item (Grob *, Grob *);
30 };
31
32 #endif /* SINGLE_MALT_GROUPING_ITEM_HH */
33