]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-stencil-commands.scm
Gets rid of dot stencil command
[lilypond.git] / scm / define-stencil-commands.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 2005--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;;
5 ;;;; LilyPond is free software: you can redistribute it and/or modify
6 ;;;; it under the terms of the GNU General Public License as published by
7 ;;;; the Free Software Foundation, either version 3 of the License, or
8 ;;;; (at your option) any later version.
9 ;;;;
10 ;;;; LilyPond is distributed in the hope that it will be useful,
11 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ;;;; GNU General Public License for more details.
14 ;;;;
15 ;;;; You should have received a copy of the GNU General Public License
16 ;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
17
18 ;; TODO:
19 ;;  - stencil-commands should have docstrings.
20
21 (define-public (ly:all-stencil-commands)
22   "Return the list of stencil commands that can be
23 defined in the output modules (@file{output-*.scm})."
24   '(bezier-sandwich
25     blank
26     char
27     circle
28     dashed-line
29     draw-line
30     ellipse
31     embedded-ps
32     embedded-svg
33     end-enclosing-id-node
34     glyph-string
35     grob-cause
36     named-glyph
37     no-origin
38     oval
39     page-link
40     path
41     partial-ellipse
42     placebox
43     polygon
44     repeat-slash
45     resetcolor
46     resetrotation
47     resetscale
48     round-filled-box
49     setcolor
50     setrotation
51     setscale
52     start-enclosing-id-node
53     text
54     unknown
55     url-link
56     utf-8-string
57     zigzag-line
58     ))
59
60 ;; TODO:
61 ;;  - output-backend-commands should have docstrings.
62
63 (define-public (ly:all-output-backend-commands)
64   "Return the list of extra output backend commands that
65 are used internally in @file{lily/@/stencil-interpret.cc}."
66   '(color
67     combine-stencil
68     delay-stencil-evaluation
69     footnote
70     id
71     rotate-stencil
72     scale-stencil
73     translate-stencil
74     ))
75
76 (map ly:register-stencil-expression
77   (append (ly:all-stencil-commands)
78           (ly:all-output-backend-commands)))