]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/directional-spanner.hh
release: 1.3.5
[lilypond.git] / lily / include / directional-spanner.hh
index 9399b71c4dde32dbee19ca4519e7b9b2aca55700..e268b20b925e79238a8e708b07a62caaf0a5a343 100644 (file)
@@ -1,25 +1,27 @@
 /*
-  directional-spanner.hh -- part of LilyPond
+  directional-spanner.hh -- part of GNU LilyPond
 
-  (c) 1996,97 Han-Wen Nienhuys
+  (c) 1996--1999 Han-Wen Nienhuys
 */
 
 #ifndef DIRECTIONALSPANNER_HH
 #define DIRECTIONALSPANNER_HH
 
 #include "spanner.hh"
+#include "directional-element.hh"
 
-/// a spanner which can be pointing "up" or "down"
-struct Directional_spanner : Spanner{
-    
-    /// -1 below heads, +1 above heads.
-    int dir_i_;
+/** a spanner which can be pointing "up" or "down".
 
-    /// offset of "center" relative to left-column/0-pos of staff
-    virtual Offset center() const=0;
-    virtual void set_default_dir()=0;
-    Directional_spanner();
-    
+    JUNKME
+ */
+class Directional_spanner : public Spanner, public Directional_element {
+public:
+  /// offset of "center" relative to left-column/0-pos of staff
+  virtual Offset center() const;
+  virtual Direction get_default_dir() const;
+  VIRTUAL_COPY_CONS(Score_element);
+protected:
+  virtual void do_pre_processing();
 };
 
 #endif // DIRECTIONALSPANNER_HH