]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-stencil-commands.scm
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / scm / define-stencil-commands.scm
1 ;;
2 ;; define-stencil-commands.scm -- define valid stencil expression heads
3 ;;
4 ;; source file of the GNU LilyPond music typesetter
5 ;;
6 ;; (c) 2005--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 ;;
8
9 ;; TODO:
10 ;;  - stencil-commands should have docstrings.
11
12 (define-public (ly:all-stencil-commands)
13   "Return the list of stencil commands that can be
14 defined in the output modules (output-*.scm)"
15   '(beam
16     bezier-sandwich
17     blank
18     bracket
19     char
20     circle
21     dashed-line
22     dashed-slur
23     dot
24     draw-line
25     ellipse
26     embedded-ps
27     embedded-svg
28     glyph-string
29     grob-cause
30     named-glyph
31     no-origin
32     oval
33     path
34     placebox
35     polygon
36     repeat-slash
37     resetcolor
38     resetrotation
39     round-filled-box
40     setcolor
41     setrotation
42     text
43     unknown
44     url-link
45     utf-8-string
46     white-dot
47     white-text
48     zigzag-line
49     ))
50
51 ;; TODO:
52 ;;  - output-backend-commands should have docstrings.
53
54 (define-public (ly:all-output-backend-commands)
55   "Return the list of extra output backend commands that
56 are used internally in lily/stencil-interpret.cc."
57   '(color
58     combine-stencil
59     delay-stencil-evaluation
60     rotate-stencil
61     translate-stencil
62     ))
63
64 (map ly:register-stencil-expression
65   (append (ly:all-stencil-commands)
66           (ly:all-output-backend-commands)))