]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/note-collision.hh
84ba11dd1bc8c3bd1f0786b1f6d9f06861e9c8a9
[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--2005 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 "parray.hh"
15
16 /**
17    Resolve conflicts between various Note_columns (chords).
18
19    TODO
20
21    * multistaff support (see Chlapik: equal noteheads should be on the
22    same hpos.)
23
24    * Make interface of this, similar to align-interface.
25    */
26 class Note_collision_interface
27 {
28 public:
29   static SCM automatic_shift (Grob *, Drul_array<Link_array<Grob> >);
30   static SCM forced_shift (Grob *);
31
32   static Drul_array<Link_array<Grob> > get_clash_groups (Grob *me);
33   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM smob));
34   static void add_column (Grob *me, Grob *ncol);
35   static bool has_interface (Grob *);
36 };
37 #endif // COLLISION_HH