]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-column.cc
release commit
[lilypond.git] / lily / tie-column.cc
index fa588acdcfe67ff1397d194bf9c7a990b02576f7..6d4ad0e2932163bbd83fc533ec673fb3f71e0820 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 2000--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 
 
 
-void
-Tie_column::set_interface (Grob*me)
-{
-  me->set_interface (ly_symbol2scm ("tie-column-interface"));
-  me->set_extent_callback (SCM_EOL, X_AXIS);
-  me->set_extent_callback (SCM_EOL, Y_AXIS) ; 
-}
 
-bool
-Tie_column::has_interface (Grob*me)
-{
-  return  me->has_interface (ly_symbol2scm ("tie-column-interface"));
-}
 
 
 /*
@@ -53,7 +41,7 @@ int
 tie_compare (Grob* const & s1,
             Grob* const & s2)
 {
-  return sign (Tie::position_f (s1) - Tie::position_f (s2));
+  return sign (Tie::get_position (s1) - Tie::get_position (s2));
 }
 
 /*
@@ -106,7 +94,7 @@ Tie_column::set_directions (Grob*me)
   for (int i=ties.size (); i--;)
     {
       Grob *  t = ties[i];
-      Real p = Tie::position_f (t);
+      Real p = Tie::get_position (t);
       Direction d = (Direction) sign (p);
       if (!d)
        d = UP;
@@ -122,3 +110,10 @@ Tie_column::after_line_breaking (SCM smob)
   set_directions (unsmob_grob (smob));
   return SCM_UNSPECIFIED;
 }
+
+
+
+ADD_INTERFACE (Tie_column,"tie-column-interface",
+  "that sets tie directions in a tied chord",
+  "direction");
+