]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/text-item.hh
release: 0.1.46
[lilypond.git] / lily / include / text-item.hh
index ba7ae59db60e656b8ffab3f0761268909f19bb91..4102ba5e88207d2e41fafe341c556ac94a971812 100644 (file)
@@ -14,9 +14,9 @@
 /**
   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:
 public:
 
     /// do I have width?
@@ -24,17 +24,22 @@ public:
     
     /* ***************/
 
-    Text_item (General_script_def*,Direction dir=0);
-    virtual ~Text_item();
+    Text_item (General_script_def* ,Direction dir=0);
+    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 Real get_position_f () const;
 
-    virtual Molecule* brew_molecule_p() const;
-    virtual void do_pre_processing();
+private:
+//    void init (Text_def* tdef_l); 
 };