]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-item.hh
release: 0.0.65
[lilypond.git] / lily / include / text-item.hh
1 /*
2   text-item.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef TEXT_ITEM_HH
8 #define TEXT_ITEM_HH
9
10 #include "text-def.hh"
11 #include "item.hh"
12 #include "staff-side.hh"
13
14 /**
15   print a fixed width text above or below the staff.
16  */
17 class Text_item : public Item ,public Staff_side{
18     void init(Text_def* tdef_l); 
19  
20 public:
21     Text_def * tdef_l();
22     Text_def const* tdef_c_l();
23     int pos_i_;
24
25     /// do I have width?
26     bool fat_b_;
27     
28     /* ***************/
29
30     Text_item(Text_def*,int dir=0);
31     virtual ~Text_item();
32     NAME_MEMBERS(Text_item);
33
34 protected:
35     Text_def* tdef_p_;
36
37     virtual void set_default_index();
38     virtual Molecule* brew_molecule_p() const;
39     virtual void do_post_processing();
40     virtual void do_pre_processing();
41 };
42
43
44 #endif // TEXT_HH
45