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