]> git.donarmstrong.com Git - lilypond.git/blob - lily/item.cc
release: 0.0.65
[lilypond.git] / lily / item.cc
1 /*
2   item.cc -- implement Item
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "debug.hh"
10 #include "item.hh"
11 #include "p-col.hh"
12
13 Item::Item()
14 {
15     pcol_l_ = 0;
16 }
17
18 IMPLEMENT_STATIC_NAME(Item);
19
20 void
21 Item::do_print() const
22 {
23 #ifndef NPRINT
24     mtor << "(unknown)";
25 #endif
26 }
27
28
29 Real 
30 Item::hpos_f()const
31 {
32     return pcol_l_->hpos + offset().x;
33 }
34
35
36
37 Line_of_score *
38 Item::line_l()const
39 {
40     return pcol_l_->line_l_;
41 }