]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/col-info.hh
release: 0.1.8
[lilypond.git] / lily / include / col-info.hh
1 /*
2   col-info.hh -- declare 
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     PCol *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 (PCol *,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     Real minright() const { return width.right; }
33     Real minleft() const { return -width.left; }
34 };
35
36 #endif // COL_INFO_HH