]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spring.hh
patch::: 1.3.33.jcn3
[lilypond.git] / lily / include / spring.hh
1 /*   
2   spring.hh -- declare Spring, Column_spring
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SPRING_HH
11 #define SPRING_HH
12
13 #include "lily-proto.hh"
14 #include "drul-array.hh"
15
16 struct Column_spring {
17   Paper_column *other_l_;
18   Real distance_f_;
19   Real strength_f_;
20   
21   Column_spring ();
22   static int compare (const Column_spring &r1, const Column_spring &r2);
23   void print () const;
24 };
25
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 ();
32 };
33
34
35 #endif /* SPRING_HH */
36