]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/item.hh
release: 0.0.52
[lilypond.git] / lily / include / item.hh
1 #ifndef ITEM_HH
2 #define ITEM_HH
3
4 #include "glob.hh"
5 #include "boxes.hh"
6 #include "string.hh"
7 #include "staff-elem.hh"
8
9 /**
10  a horizontally fixed size element of the score
11
12   Item is the datastructure for printables whose width is known
13   before the spacing is calculated
14
15   NB. This doesn't mean an Item has to initialize the output field before
16   spacing calculation. 
17   
18 */
19 class Item : public Staff_elem {
20 public:
21     /// indirection to the column it is in
22     PCol * pcol_l_;
23
24     /* *************** */
25     virtual Item *item() { return this; }
26     Item();
27     void do_print()const;
28     Real hpos_f() const;
29     NAME_MEMBERS(Item);
30 };
31
32
33 #endif