2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "spaceable-grob.hh"
14 #include "paper-column.hh"
18 item_l_drul_[LEFT] =item_l_drul_[RIGHT] =0;
25 ugh : if we go from items to cols, we should adjust distance and strength.
29 Spring::add_to_cols ()
31 Spaceable_grob::add_spring (item_l_drul_[LEFT]->column_l (),
32 item_l_drul_[RIGHT]->column_l (),
33 distance_f_, strength_f_);
37 Spring::set_to_cols( )
42 item_l_drul_[d] = item_l_drul_[d]->column_l ();
44 while (flip (&d) != LEFT);
48 Column_spring::Column_spring ()