]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/hyphen-spanner.hh
* lily/melisma-engraver.cc (try_music): use melisma_busy()
[lilypond.git] / lily / include / hyphen-spanner.hh
index e1316252c9612d1622dde24dc6dd10f0e114fd2e..68c3e1636081f456c4756dd4e5059b4a2ec8de80 100644 (file)
@@ -1,39 +1,24 @@
 /*
   hyphen-spanner.hh -- part of GNU LilyPond
 
-  (c) 1999 Glen Prideaux <glenprideaux@iname.com>
+  (c)  1999--2003 Glen Prideaux <glenprideaux@iname.com>
 */
 
 #ifndef HYPHEN_SPANNER_HH
 #define HYPHEN_SPANNER_HH
 
-#include "directional-spanner.hh"
+#include "spanner.hh"
 
-/** 
-  centred hyphen 
-
-  A centred hyphen is a simple line between lyrics used to
-  divide syllables.
-
-  The length of the hyphen line should stretch based on the
-  size of the gap between syllables.
-  */
-class Hyphen_spanner : public Directional_spanner
+struct Hyphen_spanner 
 {
 public:
-Hyphen_spanner ();
-  Offset center () const;  
-  void set_textitem (Direction, Item*);
-
-protected:
-  virtual Molecule* do_brew_molecule_p () const;
-  Interval do_height () const;
-
-  void do_post_processing ();
-  VIRTUAL_COPY_CONS (Score_element);
+  Spanner* elt_;
 
-  Drul_array<Real> dx_f_drul_;
+  DECLARE_SCHEME_CALLBACK(set_spacing_rods, (SCM));
+  Hyphen_spanner (Spanner*);
+  void set_textitem (Direction, Grob*);
+  bool has_interface (Grob*);
+  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
 };
 
 #endif // HYPHEN_SPANNER_HH