]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-stencil-commands.scm
Gets rid of beam 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     bracket
27     char
28     circle
29     dashed-line
30     dashed-slur
31     dot
32     draw-line
33     ellipse
34     embedded-ps
35     embedded-svg
36     end-enclosing-id-node
37     glyph-string
38     grob-cause
39     named-glyph
40     no-origin
41     oval
42     page-link
43     path
44     partial-ellipse
45     placebox
46     polygon
47     repeat-slash
48     resetcolor
49     resetrotation
50     resetscale
51     round-filled-box
52     setcolor
53     setrotation
54     setscale
55     start-enclosing-id-node
56     text
57     unknown
58     url-link
59     utf-8-string
60     zigzag-line
61     ))
62
63 ;; TODO:
64 ;;  - output-backend-commands should have docstrings.
65
66 (define-public (ly:all-output-backend-commands)
67   "Return the list of extra output backend commands that
68 are used internally in @file{lily/@/stencil-interpret.cc}."
69   '(color
70     combine-stencil
71     delay-stencil-evaluation
72     footnote
73     id
74     rotate-stencil
75     scale-stencil
76     translate-stencil
77     ))
78
79 (map ly:register-stencil-expression
80   (append (ly:all-stencil-commands)
81           (ly:all-output-backend-commands)))