2 simple-spacer.hh -- declare Simple_spacer
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SIMPLE_SPACER_HH
11 #define SIMPLE_SPACER_HH
14 #include "lily-proto.hh"
17 struct Spring_description
24 Real length (Real force) const;
25 Spring_description ();
27 bool is_sane () const;
33 Array<Spring_description> springs_;
43 void my_solve_linelen ();
44 void my_solve_natural_len ();
45 Real active_springs_stiffness () const;
46 Real range_stiffness (int, int) const;
47 void add_rod (int l, int r, Real dist);
48 void add_spring (Real, Real);
49 Real range_ideal_len (int l, int r) const;
50 Real active_blocking_force ()const;
51 Real configuration_length ()const;
52 void set_active_states ();
53 bool is_active () const;
55 DECLARE_SIMPLE_SMOBS(Simple_spacer, );
59 struct Simple_spacer_wrapper
61 Simple_spacer *spacer_;
62 Link_array<Grob> spaced_cols_;
63 Link_array<Grob> loose_cols_;
65 Simple_spacer_wrapper ();
66 void add_columns (Link_array<Grob> const &);
67 void solve (Column_x_positions *, bool);
68 ~Simple_spacer_wrapper();
70 Simple_spacer_wrapper(Simple_spacer_wrapper const&);
73 #endif /* SIMPLE_SPACER_HH */