Overridable, since this staff-elem might act as a pseudo-list.
*/
virtual void translate(Offset);
+ Offset offset()const;
void add_processing();
void pre_processing();
void post_processing();
-#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()
{
#endif
}
+
+Real
+Item::hpos_f()const
+{
+ return pcol_l_->hpos + offset().x;
+}
Atom a(paper()->lookup_l()->fill(Box(Interval(0,0), Interval(0,0))));
return new Molecule (a);
}
+Offset
+Staff_elem::offset() const
+{
+ return offset_;
+}
Real dy = p->internote();
Symbol ss =p->lookup_l()->stem(bot*dy,top*dy);
-
out = new Molecule(Atom(ss));
if (print_flag&&abs(flag) > 4){
Real
Stem::hindex()const
{
- return pcol_l_->hpos + stem_xoffset; // hmm. + offset_.x;
+ return hpos_f() + stem_xoffset;
}