source file of the GNU LilyPond music typesetter
- (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "dots.hh"
#include "axis-group-interface.hh"
#include "stem.hh"
+/*
+ TODO: let Dot_column communicate with stem via Note_column.
+ */
+
MAKE_SCHEME_CALLBACK (Dot_column,force_shift_callback,2);
SCM
Dot_column::force_shift_callback (SCM element_smob, SCM axis)
Grob * stem = unsmob_grob (me->get_grob_property ("stem"));
if (stem
&& !Stem::beam_l (stem)
- && Stem::flag_i (stem))
+ && Stem::duration_log (stem) > 2
+ && !Stem::invisible_b (stem)
+ )
{
/*
trigger stem end & direction calculation.
return SCM_UNSPECIFIED;
}
-bool
-Dot_column::has_interface (Grob*m)
-{
- return m && m->has_interface (ly_symbol2scm ("dot-column-interface"));
-}
void
}
}
+
+
+
+ADD_INTERFACE (Dot_column, "dot-column-interface",
+ "Interface that groups dots so they form a column",
+ "direction stem");
+