X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fnew%2Fother%2Fdrawing-boxes-around-grobs.ly;fp=input%2Fnew%2Fother%2Fdrawing-boxes-around-grobs.ly;h=2c8d1e948362c4538474b731df5ad033664f24b1;hb=74e3d72f8f2dd0e49b21c5a66c3c1dcf821912a0;hp=0000000000000000000000000000000000000000;hpb=51c3823d581c9c9ea14b1653ce913891492df3bc;p=lilypond.git diff --git a/input/new/other/drawing-boxes-around-grobs.ly b/input/new/other/drawing-boxes-around-grobs.ly new file mode 100644 index 0000000000..2c8d1e9483 --- /dev/null +++ b/input/new/other/drawing-boxes-around-grobs.ly @@ -0,0 +1,28 @@ +%% Do not edit this file; it is auto-generated from LSR! +\version "2.11.23" + +\header { texidoc = " +The @code{print-function} can be overridden to draw a box around an +arbitrary grob. +" } + +\relative c'' { + + \override TextScript #'stencil = + #(make-stencil-boxer 0.1 0.3 ly:text-interface::print) + + c'4^"foo" + + \override Stem #'stencil = + #(make-stencil-boxer 0.05 0.25 ly:stem::print) + + \override Score.RehearsalMark #'stencil = + #(make-stencil-boxer 0.15 0.3 ly:text-interface::print) + b8 + \revert Stem #'stencil + + + c4. c4 \mark "F" c1 +} + +