]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-stencil-commands.scm
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[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        named-glyph
30        oval
31        path
32        polygon
33        repeat-slash
34        resetcolor
35        resetrotation
36        round-filled-box
37        setcolor
38        setrotation
39        text
40        url-link
41        utf-8-string
42        white-dot
43        white-text
44        zigzag-line
45
46        grob-cause
47        no-origin
48        placebox
49        unknown
50        ))
51
52 ;; TODO:
53 ;;  - output-backend-commands should have docstrings.
54
55 (define-public (ly:all-output-backend-commands)
56   "Return the list of extra output backend commands that
57 are used internally in lily/stencil-interpret.cc."
58   '(color
59     combine-stencil
60     delay-stencil-evaluation
61     rotate-stencil
62     translate-stencil
63     ))
64
65 (map ly:register-stencil-expression
66   (append (ly:all-stencil-commands)
67           (ly:all-output-backend-commands)))