source file of the GNU LilyPond music typesetter
- (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1999--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "grob.hh"
bool on_line = st ? Staff_symbol::on_line (g, pos) : false;
return scm_from_bool (on_line);
}
+
+LY_DEFINE (ly_staff_symbol_line_thickness, "ly:staff-symbol-line-thickness",
+ 1, 0, 0, (SCM grob),
+ "Returns the line-thickness of the staff associated with @var{grob}.")
+{
+ LY_ASSERT_SMOB (Grob, grob, 1);
+ Grob *g = unsmob_grob (grob);
+ Real thickness = Staff_symbol_referencer::line_thickness (g);
+ return scm_from_double (thickness);
+}