source file of the GNU LilyPond music typesetter
- (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#ifndef SIMPLE_SPACER_HH
void add_spring (Real, Real);
Real range_ideal_len (int l, int r) const;
Real range_stiffness (int l, int r) const;
- Real configuration_length () const;
+ Real configuration_length (Real) const;
vector<Real> spring_positions () const;
- Real force ();
- bool fits ();
+ Real force () const;
+ Real force_penalty (bool ragged) const;
+ bool fits () const;
- DECLARE_SIMPLE_SMOBS (Simple_spacer,);
+ DECLARE_SIMPLE_SMOBS (Simple_spacer);
private:
Real expand_line ();
/* returns a vector of dimensions breaks.size () * breaks.size () */
vector<Real> get_line_forces (vector<Grob*> const &columns,
- vector<vsize> breaks,
Real line_len,
Real indent,
bool ragged);