]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.76
authorfred <fred>
Fri, 25 Jul 1997 11:25:36 +0000 (11:25 +0000)
committerfred <fred>
Fri, 25 Jul 1997 11:25:36 +0000 (11:25 +0000)
lily/col-info.cc [new file with mode: 0644]

diff --git a/lily/col-info.cc b/lily/col-info.cc
new file mode 100644 (file)
index 0000000..e54d421
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+  col-info.cc -- implement Colinfo
+
+  source file of the GNU LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+#include "p-col.hh"
+#include "col-info.hh"
+#include "debug.hh"
+
+void
+Colinfo::print() const
+{
+#ifndef NPRINT
+    mtor << "column { ";
+    if (fixed())
+       mtor << "fixed at " << fixed_position()<<", ";
+    assert(pcol_l_);
+    mtor << "[" << minleft() << ", " << minright() << "]";
+    mtor <<"}\n";
+#endif
+}
+
+Colinfo::Colinfo(PCol *col_l, Real const *fixed_C)
+{
+    if (fixed_C)
+       fixpos_p_.set_l(fixed_C);
+    ugh_b_ = false;
+    pcol_l_ = col_l;
+    width = pcol_l_->width();
+}
+
+
+Colinfo::Colinfo()
+{
+    ugh_b_ = false;
+    pcol_l_ =0;
+}
+