/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2001--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2001--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Stencil slash = Lookup::repeat_slash (wid, slope, thick);
Stencil m = slash;
- Real slash_neg_kern =
- robust_scm2double (me->get_property ("slash-negative-kern"), 1.6);
+ Real slash_neg_kern
+ = robust_scm2double (me->get_property ("slash-negative-kern"), 1.6);
for (int i = count - 1; i--;)
m.add_at_edge (X_AXIS, RIGHT, slash, -slash_neg_kern);
{
Stencil m = brew_slash (me, count);
- Real dot_neg_kern =
- robust_scm2double (me->get_property ("dot-negative-kern"), 0.75);
+ Real dot_neg_kern
+ = robust_scm2double (me->get_property ("dot-negative-kern"), 0.75);
Stencil d1 = Font_interface::get_default_font (me)->find_by_name ("dots.dot");
Stencil d2 = d1;
SCM
Percent_repeat_item_interface::double_percent (SCM grob)
{
- Grob *me = unsmob_grob (grob);
+ Grob *me = unsmob<Grob> (grob);
Stencil m = x_percent (me, 2);
m.translate_axis (-m.extent (X_AXIS).center (), X_AXIS);
return m.smobbed_copy ();
SCM
Percent_repeat_item_interface::beat_slash (SCM grob)
{
- Grob *me = unsmob_grob (grob);
- Stream_event *cause = unsmob_stream_event (me->get_property ("cause"));
+ Grob *me = unsmob<Grob> (grob);
+ Stream_event *cause = unsmob<Stream_event> (me->get_property ("cause"));
int count = robust_scm2int (cause->get_property ("slash-count"), 1);
Stencil m;
}
ADD_INTERFACE (Percent_repeat_item_interface,
- "Repeats that look like percent signs.",
-
- /* properties */
- "dot-negative-kern "
- "slash-negative-kern "
- "slope "
- "thickness "
- );
+ "Repeats that look like percent signs.",
+
+ /* properties */
+ "dot-negative-kern "
+ "slash-negative-kern "
+ "slope "
+ "thickness "
+ );