]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/tie.hh
2003 -> 2004
[lilypond.git] / lily / include / tie.hh
index 71e0e86c879c2e85117265bcebec24b4ca62ec74..1fe8b121da144016b0b306b4aaf4bd73f2722db4 100644 (file)
@@ -3,47 +3,30 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #ifndef TIE_HH
 #define TIE_HH
 
-#include "spanner.hh"
-#include "rod.hh"
+#include "lily-guile.hh"
+#include "lily-proto.hh"
 
-/**
-  Connect two noteheads.
-  */
-class Tie : public Spanner
+
+class Tie
 {
 public:
-  Tie (SCM);
-  void set_head (Direction, Item*head_l);
-  VIRTUAL_COPY_CONS(Score_element);
-
-  Note_head* head (Direction) const;
-  Real position_f () const;
-   static SCM scheme_molecule (SCM);
-  
-
-  virtual Direction get_default_dir() const;
-
-protected:
-  virtual Molecule do_brew_molecule () const;
-  virtual Array<Offset> get_encompass_offset_arr () const;
-  Bezier get_curve () const;
-
-  Drul_array<Real> dy_f_drul_;
-  Drul_array<Real> dx_f_drul_;
-
-  virtual void do_add_processing ();
-  virtual void after_line_breaking ();
-
-  virtual Array<Rod> get_rods () const;
-
-  Array<Offset> get_controls () const;
+  static void set_head (Grob*,Direction, Grob*head);
+  static void set_interface (Grob*);
+  static bool has_interface (Grob*);
+  static void set_direction (Grob*);
+  static Grob * head (Grob*,Direction) ;
+  static Real get_position (Grob*) ;
+  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
+  static Direction get_default_dir (Grob*) ;
+  static SCM get_control_points (SCM);
+  DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
 };
 
 #endif // TIE_HH