]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/text-item.hh
release: 0.1.51
[lilypond.git] / lily / include / text-item.hh
index 0019a5f8e0da5e42c7e395bc05c7726d491e2f53..5d9546409bc25cc508572bb0471c3c2b3e0086ab 100644 (file)
@@ -14,9 +14,8 @@
 /**
   print a fixed width text above or below the staff.
  */
-class Text_item : public Item ,public Staff_side{
-    void init(Text_def* tdef_l); 
+class Text_item : public Item ,public Staff_side
+{
 public:
 
     /// do I have width?
@@ -24,17 +23,22 @@ public:
     
     /* ***************/
 
-    Text_item(General_script_def*,int dir=0);
-    virtual ~Text_item();
+    Text_item (General_script_def* ,Direction dir=CENTER);
+    virtual ~Text_item ();
     DECLARE_MY_RUNTIME_TYPEINFO;
 
 protected:
-    General_script_def * tdef_p_;
+    // ugh: so, are we a text-def, or can this vary?
+    General_script_def* tdef_p_;
 
-    virtual Interval symbol_height()const;
+    virtual Interval symbol_height () const;
 
-    virtual Molecule* brew_molecule_p() const;
-    virtual void do_pre_processing();
+    virtual Molecule* brew_molecule_p () const;
+    virtual void do_pre_processing ();
+    virtual Real get_position_f () const;
+
+private:
+//    void init (Text_def* tdef_l); 
 };