]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/separation-item.hh
Merge branch 'master' of git+ssh://jneem@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 #include "skyline.hh"
16
17 struct Separation_item
18 {
19   DECLARE_GROB_INTERFACE();
20   DECLARE_SCHEME_CALLBACK(calc_skylines, (SCM));
21
22   static vector<Box> boxes (Grob *me, Grob *left);
23   static Skyline conditional_skyline (Grob *, Grob *);
24   static Interval width (Grob *);
25   static Interval relative_width (Grob *, Grob *);
26   static Grob *extremal_break_aligned_grob (Grob *, Direction, Interval *);
27   static bool set_distance (Drul_array<Item *>, Real);
28   static void set_skyline_distance (Drul_array<Item*>, Real);
29   static void add_item (Grob *, Item *);
30   static void add_conditional_item (Grob *, Grob *);
31 };
32
33 #endif /* SINGLE_MALT_GROUPING_ITEM_HH */
34