/*
- text.hh -- part of LilyPond
+ text-item.hh -- part of GNU LilyPond
- (c) 1996,97 Han-Wen Nienhuys
+ (c) 1996--1998 Han-Wen Nienhuys
*/
#ifndef TEXT_ITEM_HH
/**
print a fixed width text above or below the staff.
*/
-class Text_item : public Item ,public Staff_side{
- void init(Text_def* tdef_l);
- Text_def* tdef_p_;
-
+class Text_item : public Item ,public Staff_side
+{
public:
- Text_def * tdef_l();
- int pos_i_;
-
- /* ***************/
-
- Text_item(Text_def*);
- Text_item(Text_req*);
- ~Text_item();
- NAME_MEMBERS(Text_item);
+
+ /// do I have width?
+ bool fat_b_;
+
+
+ Text_item (General_script_def* ,Direction dir=CENTER);
+ virtual ~Text_item ();
+ DECLARE_MY_RUNTIME_TYPEINFO;
+
+//protected:
+ // ugh: so, are we a text-def, or can this vary?
+ General_script_def* tdef_p_;
protected:
- virtual void set_default_index();
- Molecule* brew_molecule_p() const;
- virtual void do_post_processing();
+
+ virtual Interval symbol_height () const;
+
+ virtual Molecule* brew_molecule_p () const;
+ virtual void do_pre_processing ();
+ virtual Real get_position_f () const;
+
+private:
+// void init (Text_def* tdef_l);
};