]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
CG: thinko on the argument of @translationof
[lilypond.git] / lily / grob.cc
index a6e715d206b428f0164ab0c2c3b01795eeae9213..b27350b92996e694a9acffe8ff94cbb2513a8e86 100644 (file)
@@ -155,6 +155,15 @@ Grob::get_print_stencil () const
          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;
@@ -662,6 +671,7 @@ ADD_INTERFACE (Grob,
               "staff-symbol "
               "stencil "
               "transparent "
+              "whiteout "
               );
 
 /****************************************************************