X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fspaceable-grob.hh;h=71768b7cb37421726e59cd981721c6302b2eac91;hb=38d7d319eabc906e82fb42002678c6d42a23b6f7;hp=0fa6356cd0e7faa4100f71d44f98bb3a53a874a2;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/include/spaceable-grob.hh b/lily/include/spaceable-grob.hh index 0fa6356cd0..71768b7cb3 100644 --- a/lily/include/spaceable-grob.hh +++ b/lily/include/spaceable-grob.hh @@ -3,22 +3,24 @@ source file of the GNU LilyPond music typesetter - (c) 2000--2005 Han-Wen Nienhuys + (c) 2000--2009 Han-Wen Nienhuys */ #ifndef SPACEABLE_GROB_HH #define SPACEABLE_GROB_HH -#include "lily-guile.hh" #include "lily-proto.hh" +#include "grob-interface.hh" +#include "spring.hh" struct Spaceable_grob { /// set a minimum distance static void add_rod (Grob *me, Grob *to, Real distance); - static void add_spring (Grob *me, Grob *to, Real dist, Real strength); - static bool has_interface (Grob *); - static void remove_interface (Grob *); + static void add_spring (Grob *me, Grob *to, Spring sp); + static Spring get_spring (Grob *me, Grob *other); + + DECLARE_GROB_INTERFACE(); static SCM get_minimum_distances (Grob *); static SCM get_ideal_distances (Grob *); };