lilypond-1.3.16
[lilypond.git] / lily / include / spring.hh
blobd4e2e94c3a8cc6a82480d1d754004c5dad45facb
1 /*
2 spring.hh -- declare Spring, Column_spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #ifndef SPRING_HH
11 #define SPRING_HH
13 #include "lily-proto.hh"
14 #include "drul-array.hh"
16 struct Column_spring {
17 Paper_column *other_l_;
18 Real distance_f_;
19 Real strength_f_;
21 Column_spring ();
22 static int compare (const Column_spring &r1, const Column_spring &r2);
23 void print () const;
26 struct Spring{
27 Drul_array<Item*> item_l_drul_;
28 Real distance_f_;
29 Real strength_f_;
30 void add_to_cols ();
31 Spring ();
35 #endif /* SPRING_HH */