2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "paper-column.hh"
17 item_l_drul_[LEFT] =item_l_drul_[RIGHT] =0;
23 Spring::add_to_cols ()
28 item_l_drul_[-d]->column_l ()->add_spring
29 (item_l_drul_[d]->column_l (),
30 distance_f_, strength_f_);
32 while ((flip (&d))!=LEFT);
36 Column_spring::Column_spring ()
45 Column_spring::compare (Column_spring const & r1, Column_spring const &r2)
47 return r1.other_l_->rank_i() - r2.other_l_->rank_i();
51 Column_spring::print () const
54 DEBUG_OUT << "Column_spring { rank = "
55 << other_l_->rank_i () << ", dist = " << distance_f_ << "}\n";