]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
d700f5a34a50b08260ab27881d3be45e06910098
[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   note-width -- unit for horizontal translation, measured in staff-space.
39   
40 */
41 class Collision                 // interface
42 {
43 public:
44   static SCM automatic_shift (Score_element*);
45   static SCM forced_shift (Score_element*);
46   DECLARE_SCHEME_CALLBACK(force_shift_callback, (SCM element, SCM axis));
47   static void do_shifts (Score_element*);
48   static void add_column (Score_element*me,Score_element*ncol_l);
49 };
50 #endif // COLLISION_HH