]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/output-lib.scm
Scheme function to return a grob's name
[lilypond.git] / scm / output-lib.scm
index fdcea5de6488fed13954634e79442d21f3f0234c..7f956a54d574549efbf360575efc782ad817fb67 100644 (file)
 (define-public (grob::is-live? grob)
   (pair? (ly:grob-basic-properties grob)))
 
+(define-public (grob::name grob)
+  "Return the name of the grob @var{grob} as a symbol."
+  (assq-ref (ly:grob-property grob 'meta) 'name))
+
 (define-public (make-stencil-boxer thickness padding callback)
   "Return function that adds a box around the grob passed as argument."
   (lambda (grob)