X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fspring.hh;h=0decf664f7c57509747bd15b52a8870c0926a517;hb=8144751cb757612145b419a3ef53c972c1703747;hp=9585c874dda65941ab2e1a044e2857778ba17cf9;hpb=94189ec2b8da6d7e89dc619c646a927adead9b19;p=lilypond.git diff --git a/lily/include/spring.hh b/lily/include/spring.hh index 9585c874dd..0decf664f7 100644 --- a/lily/include/spring.hh +++ b/lily/include/spring.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2001 Han-Wen Nienhuys + (c) 1999--2004 Han-Wen Nienhuys */ @@ -12,28 +12,32 @@ #include "lily-proto.hh" #include "drul-array.hh" - -struct Column_spring { - Paper_column *other_l_; - Real distance_f_; - - /* - TODO: make 2 strengths: one for stretching, and one for shrinking. - */ - Real strength_f_; +#include "smobs.hh" + +struct Spring_smob +{ + Grob *other_; + Real distance_; + bool expand_only_b_; + Real strength_; - Column_spring (); + DECLARE_SIMPLE_SMOBS(Spring_smob,dummy); +public: + Spring_smob(); }; +DECLARE_UNSMOB(Spring_smob, spring); struct Spring{ Drul_array item_l_drul_; - Real distance_f_; + Real distance_; + bool expand_only_b_; /* TODO: make 2 strengths: one for stretching, and one for shrinking. */ - Real strength_f_; + Real strength_; void add_to_cols (); + void set_to_cols (); Spring (); };