]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-collision.hh
use classnames for interface naming; remove inclusion of
[lilypond.git] / lily / include / note-collision.hh
1 /*
2   collision.hh -- declare Collision
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 COLLISION_HH
10 #define COLLISION_HH
11
12 #include "lily-proto.hh"
13 #include "lily-guile.hh"
14 #include "std-vector.hh"
15 #include "grob-interface.hh"
16
17
18 /**
19    Resolve conflicts between various Note_columns (chords).
20
21    TODO
22
23    * multistaff support (see Chlapik: equal noteheads should be on the
24    same hpos.)
25
26    * Make interface of this, similar to align-interface.
27    */
28 class Note_collision_interface
29 {
30 public:
31   static SCM automatic_shift (Grob *, Drul_array<vector<Grob*> >);
32   static SCM forced_shift (Grob *);
33
34   static Drul_array<vector<Grob*> > get_clash_groups (Grob *me);
35   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM smob));
36   static void add_column (Grob *me, Grob *ncol);
37   DECLARE_GROB_INTERFACE();
38 };
39 #endif // COLLISION_HH