]> git.donarmstrong.com Git - lilypond.git/blob - lily/col-info.cc
086b7c7e3e9492a9db256872c6f4ab931755a695
[lilypond.git] / lily / col-info.cc
1 /*
2   col-info.cc -- implement Colinfo
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "p-col.hh"
10 #include "col-info.hh"
11 #include "debug.hh"
12
13 void
14 Colinfo::print() const
15 {
16 #ifndef NPRINT
17   DOUT << "column { ";
18   if (fixed())
19     DOUT << "fixed at " << fixed_position()<<", ";
20   assert (pcol_l_);
21   DOUT << "[" << minleft() << ", " << minright () << "]";
22   DOUT <<"}\n";
23 #endif
24 }
25
26 Colinfo::Colinfo (Paper_column *col_l, Real const *fixed_C)
27 {
28   if (fixed_C)
29     fixpos_p_.set_l (fixed_C);
30   ugh_b_ = false;
31   pcol_l_ = col_l;
32   width = pcol_l_->width();
33   if (width.empty_b())
34     width = Interval(0,0);
35 }
36
37
38 Colinfo::Colinfo()
39 {
40   ugh_b_ = false;
41   pcol_l_ =0;
42 }
43