]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
release: 1.3.70
[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   Properties:
28
29   elements -- (see Axis_group_interface)
30
31   merge-differently-dotted -- merge black noteheads with differing dot count.
32
33   horizontal-shift -- integer that identifies ranking of note-column for horizontal shifting.
34   
35   force-hshift -- amount of collision_note_width that overides automatic collision settings.
36   Read and removed from elements.
37   
38 */
39 class Collision                 // interface
40 {
41 public:
42   static SCM automatic_shift (Score_element*);
43   static SCM forced_shift (Score_element*);
44   static Real force_shift_callback (Score_element *, Axis);
45   static void do_shifts (Score_element*);
46   static void add_column (Score_element*me,Score_element*ncol_l);
47 };
48 #endif // COLLISION_HH