]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
patch::: 1.3.96.jcn9
[lilypond.git] / lily / include / collision.hh
1 /*
2   collision.hh -- declare Collision
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 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
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 */
28 class Collision                 // interface
29 {
30 public:
31   static SCM automatic_shift (Score_element*);
32   static SCM forced_shift (Score_element*);
33   DECLARE_SCHEME_CALLBACK(force_shift_callback, (SCM element, SCM axis));
34   static void do_shifts (Score_element*);
35   static void add_column (Score_element*me,Score_element*ncol_l);
36 };
37 #endif // COLLISION_HH