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