]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-item.hh
8c6ba84f69348c13c4457254736ff12a3f3c4d0b
[lilypond.git] / lily / include / text-item.hh
1 /*
2   text-item.hh -- part of GNU LilyPond
3
4   (c) 1996--1998 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 {
19 public:
20
21     /// do I have width?
22     bool fat_b_;
23     
24     /* ***************/
25
26     Text_item (General_script_def* ,Direction dir=CENTER);
27     virtual ~Text_item ();
28     DECLARE_MY_RUNTIME_TYPEINFO;
29
30 //protected:
31     // ugh: so, are we a text-def, or can this vary?
32     General_script_def* tdef_p_;
33 protected:
34
35     virtual Interval symbol_height () const;
36
37     virtual Molecule* brew_molecule_p () const;
38     virtual void do_pre_processing ();
39     virtual Real get_position_f () const;
40
41 private:
42 //    void init (Text_def* tdef_l); 
43 };
44
45
46 #endif // TEXT_HH
47