+ return ly_interval2scm (m.extent (X_AXIS));
+}
+
+MAKE_SCHEME_CALLBACK (Span_bar,before_line_breaking,1);
+SCM
+Span_bar::before_line_breaking (SCM smob)
+{
+ Grob * g = unsmob_grob (smob);
+ evaluate_empty (g);
+ evaluate_glyph (g);
+
+ /* No need to call Bar_line::before_line_breaking (), because the info
+ in ELEMENTS already has been procced by
+ Bar_line::before_line_breaking (). */
+ return SCM_UNSPECIFIED;
+}
+
+MAKE_SCHEME_CALLBACK (Span_bar,center_on_spanned_callback,2);
+
+SCM
+Span_bar::center_on_spanned_callback (SCM element_smob, SCM axis)
+{
+ Grob *me = unsmob_grob (element_smob);
+ Axis a = (Axis) scm_to_int (axis);
+ assert (a == Y_AXIS);
+ Interval i (get_spanned_interval (me));
+
+ /* Bar_line::print delivers a barline of y-extent (-h/2,h/2), so
+ we have to translate ourselves to be in the center of the
+ interval that we span. */
+ if (i.is_empty ())
+ {
+ me->suicide ();
+ return scm_make_real (0.0);
+ }