]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/drawing-boxes-around-grobs.ly
Merge commit 'origin'
[lilypond.git] / input / lsr / drawing-boxes-around-grobs.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
4 \version "2.13.1"
5 \header {
6   lsrtags = "tweaks-and-overrides"
7   texidoc = "
8 The @code{print-function} can be overridden to draw a box around an
9 arbitrary grob.
10 "
11   doctitle = "Drawing boxes around grobs"
12 } % begin verbatim
13
14
15 \relative c'' {
16   \override TextScript #'stencil =
17     #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
18   c'4^"foo"
19
20   \override Stem #'stencil =
21     #(make-stencil-boxer 0.05 0.25 ly:stem::print)
22   \override Score.RehearsalMark  #'stencil =
23     #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
24   b8
25   
26   \revert Stem #'stencil
27   c4. c4
28   \mark "F"
29   c1
30 }