]> git.donarmstrong.com Git - lilypond.git/blob - lily/col-info.cc
release: 0.0.76
[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     mtor << "column { ";
18     if (fixed())
19         mtor << "fixed at " << fixed_position()<<", ";
20     assert(pcol_l_);
21     mtor << "[" << minleft() << ", " << minright() << "]";
22     mtor <<"}\n";
23 #endif
24 }
25
26 Colinfo::Colinfo(PCol *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 }
34
35
36 Colinfo::Colinfo()
37 {
38     ugh_b_ = false;
39     pcol_l_ =0;
40 }
41