+ /* Process whiteout before color and grob-cause to prevent colored */
+ /* whiteout background and larger file sizes with \pointAndClickOn. */
+ /* A grob has to be visible, otherwise the whiteout property has no effect. */
+ /* Calls the scheme procedure stencil-whiteout in scm/stencils.scm */
+ if (!transparent && (scm_is_number (get_property("whiteout"))
+ || to_boolean (get_property ("whiteout"))))
+ {
+ Real thickness = robust_scm2double (get_property("whiteout"), 3.0)
+ * layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
+ retval = *unsmob<Stencil>
+ (Lily::stencil_whiteout (retval.smobbed_copy (),
+ scm_from_double (thickness)));
+ }
+
+ /* Calls the scheme procedure stencil-whiteout-box in scm/stencils.scm */
+ if (!transparent && to_boolean (get_property ("whiteout-box")))
+ {
+ retval = *unsmob<Stencil>
+ (Lily::stencil_whiteout_box (retval.smobbed_copy ()));
+ }
+