]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/col-info.hh
50944b6fc43d2f0f2cf66989c26dcc3218161c62
[lilypond.git] / lily / include / col-info.hh
1 /*
2   col-info.hh -- declare Colinfo
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef COL_INFO_HH
11 #define COL_INFO_HH
12
13 #include "lily-proto.hh"
14 #include "pointer.hh"
15 #include "interval.hh"
16
17 /// helper struct for #Spacing_problem#
18 struct Colinfo {
19   Paper_column *pcol_l_;
20   P<Real> fixpos_p_;
21   Interval width_;
22   int rank_i_;
23   /// did some tricks to make this column come out.
24   bool ugh_b_;          
25   /* *************** */
26   Colinfo();
27   Colinfo (Paper_column *,Real const *);
28
29   void print() const;
30   bool fixed() const { return fixpos_p_.get_C();}
31   Real fixed_position() const { return *fixpos_p_; }
32 };
33
34 #endif // COL_INFO_HH