]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spring.hh
release: 1.3.131
[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--2001 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
20   /*
21     TODO: make 2 strengths: one for stretching, and one for shrinking.
22   */
23   Real strength_f_;
24   
25   Column_spring ();
26 };
27
28 struct Spring{
29   Drul_array<Item*> item_l_drul_;
30   Real distance_f_;
31
32   /*
33     TODO: make 2 strengths: one for stretching, and one for shrinking.
34   */
35   Real strength_f_;
36   void add_to_cols ();
37   Spring ();
38 };
39
40
41 #endif /* SPRING_HH */
42