--- /dev/null
+\version "2.13.9"
+
+\header { texidoc = "If the 'whiteout property of a
+grob is set to #t, that part of all objects in lower
+layers which falls under the extent of the grob is
+whited out. Here the TimeSignature whites out the
+Tie but not the StaffSymbol.
+"
+}
+
+\relative c' {
+ \time 3/4
+ \override Staff.StaffSymbol #'layer = #4
+ \once \override Tie #'layer = #2
+ b'2.~
+ \once \override Staff.TimeSignature #'whiteout = ##t
+ \once \override Staff.TimeSignature #'layer = #3
+ \time 5/4
+ b4
+}
+
retval = Stencil (retval.extent_box (), expr);
}
+ /* process whiteout */
+ if (to_boolean (get_property ("whiteout")))
+ {
+ /* Call the scheme procedure stencil-whiteout in scm/stencils.scm */
+ /* to add a round-filled-box stencil to the stencil list */
+ retval
+ = *unsmob_stencil (scm_call_1 (ly_lily_module_constant ("stencil-whiteout"),
+ retval.smobbed_copy()));
+ }
}
return retval;
"staff-symbol "
"stencil "
"transparent "
+ "whiteout "
);
/****************************************************************
;;
(when ,ly:moment? "Global time step associated with this column
happen?")
+ (whiteout ,boolean? "If true, the grob is printed over a white
+background to white-out underlying material. Usually #f by default.")
(width ,ly:dimension? "The width of a grob measured in staff
space.")
(word-space ,ly:dimension? "Space to insert between words in
(font-size . -2)
(stem-attachment . (0.0 . 1.35))
(stencil . ,ly:text-interface::print)
+ (whiteout . #t)
(X-offset . ,ly:self-alignment-interface::x-aligned-on-self)
(Y-offset . ,ly:staff-symbol-referencer::callback)
(meta . ((class . Item)