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"));
-}
/*
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));
}
/*
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;
set_directions (unsmob_grob (smob));
return SCM_UNSPECIFIED;
}
+
+
+
+ADD_INTERFACE (Tie_column,"tie-column-interface",
+ "that sets tie directions in a tied chord",
+ "direction");
+