]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/item.cc
release: 0.0.59
[lilypond.git] / lily / item.cc
index e653c46ac6dfdd74387abe4f260323a3eb9914e2..e586547d8068a3b3eef2abc335d00d676ae260c4 100644 (file)
@@ -1,13 +1,22 @@
-#include "debug.hh"
-#include "item.hh"
+/*
+  item.cc -- implement Item
+
+  source file of the LilyPond music typesetter
 
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
 
+#include "debug.hh"
+#include "item.hh"
+#include "p-col.hh"
 
 Item::Item()
 {
     pcol_l_ = 0;
 }
 
+IMPLEMENT_STATIC_NAME(Item);
+
 void
 Item::do_print() const
 {
@@ -16,3 +25,15 @@ Item::do_print() const
 #endif
 }
 
+
+Real 
+Item::hpos_f()const
+{
+    return pcol_l_->hpos + offset().x;
+}
+
+Line_of_score *
+Item::line_l()const
+{
+    return pcol_l_->line_l_;
+}