]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spaceable-grob.hh
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / include / spaceable-grob.hh
1 /*
2   spaceable-grob.hh -- declare Spaceable_grob
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2000--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SPACEABLE_GROB_HH
10 #define SPACEABLE_GROB_HH
11
12 #include "lily-proto.hh"
13 #include "grob-interface.hh"
14
15 struct Spaceable_grob
16 {
17   /// set a minimum distance
18   static void add_rod (Grob *me, Grob *to, Real distance);
19   static void add_spring (Grob *me, Grob *to, Real dist, Real strength);
20   static void get_spring (Grob *me, Grob *other, Real *dist, Real *inv_strength);
21
22   DECLARE_GROB_INTERFACE();
23   static SCM get_minimum_distances (Grob *);
24   static SCM get_ideal_distances (Grob *);
25 };
26
27 #endif /* SPACEABLE_GROB_HH */
28