]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/collision.hh
4cb199385686502cff424b420d957762860d50f8
[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 #include "lily-proto.hh"
13 #include "item.hh"
14
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   Properties:
27
28   elements -- (see Axis_group_interface)
29
30   merge-differently-dotted -- merge black noteheads with differing dot count.
31
32   horizontal-shift -- integer that identifies ranking of note-column for horizontal shifting.
33   
34   force-hshift -- amount of collision_note_width that overides automatic collision settings.
35   Read and removed from elements.
36   
37 */
38 class Collision : public Item
39 {
40 protected:
41   SCM automatic_shift ();
42   SCM forced_shift ();
43   void do_shifts ();  
44   virtual void before_line_breaking ();
45 public:
46     
47   void add_column (Note_column*ncol_l);
48   Collision(SCM);
49 };
50 #endif // COLLISION_HH