]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-properties.scm
cleanup. Separate into internal
[lilypond.git] / scm / define-grob-properties.scm
1 ;;;; grob-property-description.scm -- part of generated backend documentation
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c)  1998--2003  Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
7
8
9
10 (define (define-grob-property symbol type? description)
11   (if (not (equal? (object-property symbol 'backend-doc) #f))
12       (begin
13         (ly:warn (string-append "Redefining " (symbol->string symbol) "\n"))
14         (exit 2)
15       ))
16   
17   (set-object-property! symbol 'backend-type? type?)
18   (set-object-property! symbol 'backend-doc description)
19   symbol
20   )
21
22 ;; put this in an alist?
23 (define
24   all-user-grob-properties
25
26   (map
27    (lambda (x)
28      (apply define-grob-property x))
29
30    `(
31      (X-extent-callback ,procedure? "procedure taking an grob and axis
32 argument, returning a number-pair. The return value is the extent of
33 the grob. If this value is set to @code{#f}, the object is empty in
34 the X direction.")
35
36      (X-offset-callbacks ,list? "list of functions, each taking an grob and
37 axis argument. The function determine the position relative to this
38 grob's parent. The last one in the list is called first.")
39
40      (Y-extent-callback ,procedure? "see @code{X-extent-callback}.")
41      (Y-offset-callbacks ,list? "see @code{X-offset-callbacks}.")
42
43      (accidentals ,list? "List of alteration numbers.")
44      (add-cauda ,boolean? "does this flexa require an additional cauda on the left ,side?.")
45      (add-join ,boolean? "is this ligature head joined with the next one by a vertical ,line?")
46      (add-stem ,boolean? "is this ligature head a virga and therefore needs an additional stem on the right ,side?")
47      (adjust-if-on-staffline ,boolean? "If this grob is on a staff line, adjust its appearance, so that it better fits into the staff.  E.g., if set true on stem grobs, flares of mensural flags will always be aligned with the staff lines, regardless if the associated note head is printed on a staff line or inbetween.")
48      (after-line-breaking-callback ,procedure? "Procedure taking a grob as argument.
49 This procedure is called (using dependency resolution) after line breaking. Return value is ignored.")
50      (align-dir ,ly:dir? "Which side to ,align? -1: left side, 0: around center of width, 1: right side.")
51      (arch-angle ,number? "turning angle of the hook of a system brace" )
52      (arch-height ,ly:dimension? "height of the hook of a system brace.")
53      (arch-thick ,number? "thickness of the hook of system brace.")
54      (arch-width ,ly:dimension? "width of the hook of a system brace.")
55      (arpeggio-direction ,ly:dir? "If set, put an
56 arrow on the arpeggio squiggly line.")
57      (ascendens ,boolean? "is this neume of an ,ascending?.")
58      (attachment ,pair? "cons of symbols
59 indicating how a slur should be attached at the ends. The format is
60 '(LEFT-TYPE . RIGHT-TYPE), where both TYPEs are symbols. The values of
61 these symbols may be alongside-stem, stem, head or loose-end.")
62      (attachment-offset ,pair? "cons of offsets,
63 '(LEFT-offset . RIGHT-offset).  This offset is added to the
64 attachments to prevent ugly slurs.  [fixme: we need more documentation here].
65 .")
66      (auctum ,boolean? "is this neume ,augmented?.")
67      (auto-knee-gap ,ly:dimension? "If a gap is found between noteheads
68 where a  horizontal beam fits that is larger than this number,  make a kneed beam.")
69      (axes ,list? "list of axis numbers.
70 In the case of alignment grobs, this should contain only one number.")
71
72      (balloon-text ,markup? "Text to add to help balloon")
73      (balloon-text-props ,list? "Font properties
74 for balloon text.")
75      (balloon-text-offset ,number-pair?
76                           "Where to put text relative to balloon.")
77      (balloon-padding ,ly:dimension? "Text to add to help balloon")
78      (balloon-original-callback ,procedure? "The
79 original molecule drawer to draw the balloon around.")
80
81
82      (bar-size ,ly:dimension? "size of a bar line.")
83      (bar-size-procedure ,procedure? "Procedure that computes the size of a bar line.")
84      (base-shortest-duration ,ly:moment?
85                              "Spacing is based on the shortest notes in a piece. Normally, pieces are spaced as if notes at least as short as this are present.")
86      (baseline-skip ,ly:dimension? "Baseline skip to use for multiple lines of text.")
87      (bass ,list? " musical-pitch, optional.")
88      (beam-thickness ,ly:dimension? "thickness, measured in staffspace.")
89      (beam-width ,ly:dimension? "width of the tremolo sign.")
90      (beamed-lengths ,list? "list of stem lengths given beam multiplicity .")
91      (beamed-minimum-free-lengths ,list? "list of normal minimum free stem lengths (chord to beams) given beam multiplicity.")
92      (beamed-extreme-minimum-free-lengths ,list? "list of extreme minimum free stem lengths (chord to beams) given beam multiplicity.")
93
94      (beamed-stem-shorten ,list? "shorten beamed stems in forced direction.")
95      (beaming ,pair?
96               "Pair of number lists. Each number list
97 specifies which beams to make. 0 is the central beam, 1 is the next
98 beam toward the note etc. This information is used to determine how to
99 connect the beaming patterns from stem to stem inside a beam.")
100
101
102      (beautiful ,number? "number that dictates when a slur should be de-uglyfied.  It correlates with the enclosed area between noteheads and slurs.  A value of 0.1 yields only undisturbed slurs, a value of 5 will tolerate quite high blown slurs.")
103      (before-line-breaking-callback ,procedure? "Procedure taking grob as argument.
104 This procedure is called (using dependency resolution) before line breaking, but after generating discretionary items. Return value is ignored.")
105      (between-cols ,pair? "Where to attach a loose column to")
106      (between-system-string ,string? "string
107  to dump between two systems. Useful for forcing pagebreaks.")
108      (bracket-thick ,number? "width of a system start bracket. .")
109      (break-align-symbol ,symbol? "the index in the spacing table (symbol) of the to be aligned item.")
110      (break-glyph-function ,procedure? "function taking glyph and break-direction, returning the glyph at a line break.")
111      (breakable ,boolean? "boolean indicating if this is a breakable item (clef, barline, key sig, etc.).")
112      (c0-position ,integer? "integer indicating the position of central C.")
113      (cautionary-style ,symbol? "style  of cautionary accidentals. Choices are 'smaller (one size smaller) or 'parentheses.")
114      (cautionary ,boolean? "is this a cautionary accidentals.?")
115      (cavum ,boolean? "is this neume ,outlined?.")
116
117      (concaveness-gap ,ly:dimension? "A beam is
118 considered to be concave if the distance of an inner notehead to the
119 line between two outer noteheads is bigger than this gap.")
120      (concaveness-threshold ,number? "A beam is
121 considered to be concave is concaveness is bigger than this threshold.
122 Concaveness is calculated as the sum of the vertical distances of
123 inner noteheads that fall outside the interval of the two outer
124 noteheads, to the vertically nearest outer notehead, divided by the
125 square of the inner notes involved.")
126      (collapse-height ,ly:dimension? "Minimum height of system start delimiter.  If equal or smaller, the bracket is removed.")
127
128      ;;DOCME
129      (context-info ,integer? "")
130
131      (control-points ,list? "List of 4 offsets (number-pairs) that form control points for the  tie/slur shape.")
132
133      (damping ,integer? "Amount of beam slope damping. 0: no, 1: yes, 100000: horizontal beams .")
134      (dash-period ,number? "the length of one dash + white space. If
135 negative, no line is drawn at all.")
136      
137      (dash-fraction ,number? "Size of the dashes, relative to
138 dash-period. Should be between 0.0 (no line) and 1.0 (continuous
139 line).")
140
141      ;; [FIXME: use dash-period/dash length; see text-spanner]
142      (dashed ,number? " number representing the length of the dashes.")
143      (descendens ,boolean? "is this neume of a descendent ,type?.")
144      
145      (de-uglify-parameters ,list? "list of 3 real constants. They
146 define the valid areas for the middle control points. Used in
147 de_uglyfy. They are empirical.")
148
149      (neutral-direction ,ly:dir? "Where to go if we're on the neutral
150 position of the staff (see also grob-property neutral-position).")
151
152      ;; todo: why is this tunable?
153      (neutral-position ,number? "Position (in half staff spaces) where
154 to flip the direction of stems: by default, custodes above this
155 position get their stems downwards; custodes below this position get
156 their stems upwards.  A value of 0 designates the center of the staff.
157 Use property neutral-direction to control the behaviour of stems on
158 the neutral position itself.  (Note: currently, neutral-position is
159 supported only for custodes; for stems of note heads, neutral-position
160 is currently fixed to 0, i.e. the middle of the staff.)")
161      
162      (deminutum ,boolean? "is this neume ,deminished?.")
163      (details ,list? "alist of parameters for detailed grob behavior.")
164      (dir-function ,procedure? "function of type (count total)->direction.  Default value: beam-dir-majority, also available: beam-dir-mean, beam-dir-median.
165
166 The ways to calculate the direction of a beam work as follows:
167 @table @code
168 @item majority
169 number count of up or down notes
170 @item mean
171 mean center distance of all notes
172 @item median
173 mean centre distance weighted per note
174 @end table
175
176 ")
177      (direction ,ly:dir? "Up or down, left or right?.")
178      (dot-count ,integer? "number of dots.")
179      (duration-log ,integer? "2-log of the notehead duration, i.e. 0=whole note, 1 = half note, etc.")
180      (edge-height ,pair? "a cons that specifies the heights of the vertical edges '(LEFT-height . RIGHT-height).")
181      (bracket-flare ,number-pair? "a pair that specifies how much
182 edges of brackets should slant outward.  Value 0.0 means straight
183 edges")
184
185      (edge-text ,pair? "a cons that specifies the texts to be set at the edges '(LEFT-text . RIGHT-text).")
186      (expand-limit ,integer? "maximum number of measures expanded in church rests.")
187
188      ;; remove me? 
189      (extra-X-extent ,number-pair? "enlarge in X dimension by this much, measured in staff space.")
190      (extra-Y-extent ,number-pair? "see @code{extra-Y-extent}.")
191
192      
193      (X-extent ,number-pair? "Store extent. internal use only. ")
194      (Y-extent ,number-pair? "Store extent. internal use only. ")
195
196      (extra-offset ,number-pair? "A pair representing an offset. This
197 offset is added just before `printing' the grob, so the typesetting
198 engine is completely oblivious to it.")
199
200      (extremity-offset-alist ,list? "an alist (attachment stem-dir*dir
201 slur-dir*dir) -> offset.  The offset adds to the centre of the
202 notehead, or stem.")
203
204      (extremity-rules ,list? "an alist (procedure
205 slur dir) -> attachment to determine the attachment (see above).  If
206 procedure returns #t, attachment is used.  Otherwise, the next
207 procedure is tried.")
208      
209      (flag-style ,symbol?
210                  "a string determining what style of glyph is typeset on a Stem. Valid
211 options include undefined and mensural.  Additionally, @code{no-flag}
212 switches off the flag.")
213      (stroke-style ,string? "set to \"grace\" to turn stroke through flag on.")
214      (flag-width-function ,procedure? "Procedure that computes the width of a half-beam (a non-connecting beam.).")
215      (flexa-height ,ly:dimension? "height of a flexa shape in a ligature grob in staff_space.")
216      (flexa-width ,ly:dimension? "width of a flexa shape in a ligature grob in staff_space.")
217      (font-family ,symbol? "partial font
218 definition: music roman braces dynamic math ...")
219      (font-name ,string? "file name for the font to load.
220 Overrides all other font-X qualifiers.")
221      (font-magnification ,number? "Magnification
222   of the font. If undefined, the default is @code{1.0}.")
223
224      (font-size ,number? "font definition: the relative size compared
225 the `normal' size.  0 is style-sheet's normal size, -1 is smaller, +1
226 is bigger.  Each step of 1 is approximately 12% larger, 6 steps are
227 exactly a factor 2 larger. Fractional values are allowed.")
228
229      (font-series ,symbol? "partial font definition: medium, bold.")
230      (font-shape ,symbol? "partial font definition: upright or italic.")
231
232      (force-hshift ,number? "amount of collision_note_width that
233 overides automatic collision settings. This is used by
234 @ref{note-collision-interface}.")
235
236      (fraction ,number-pair? "fraction of a time signature.")
237      (french-beaming ,boolean? "Use French
238 beaming style: stems stop at innermost beams.")
239      (full-size-change ,boolean? "if set, don't make a change clef smaller.")
240
241      (glyph ,string? "a string determining what (style) of glyph is
242 typeset. Valid choices depend on the function that is reading this
243 property.")
244
245      (glyph-name ,string? "a name of character within font.")
246      (glyph-name-procedure ,procedure? "Return
247 name of character within font.")
248
249      (gap ,ly:dimension? "Size of a gap in a variable symbol.")
250      (gap-count ,integer? "Number of gapped beams for tremolo.")
251
252      (grow-direction ,ly:dir? "crescendo or ,decrescendo?.")
253      (hair-thickness ,number? "thickness, measured in linethickness.")
254      (head-pair ,pair? "Pair of grob pointers, pointing to the two heads of the tie.")
255      (height ,ly:dimension? "in staffspace.")
256
257      (height-limit ,ly:dimension? "Maximum slur height: the longer the
258 slur, the closer it is to this height.")
259
260      (horizontal-shift ,integer? "integer that identifies ranking of
261 note-column for horizontal shifting. This is used by
262 @ref{note-collision-interface}.")
263      (ideal-distances ,list? "(OBJ . (DIST . STRENGTH)) pairs.")
264      (inclinatum ,boolean? "is this neume an ,inclinatum?.")
265      (interfaces ,list? "list of symbols indicating the interfaces supported by this object. Is initialized from the @code{meta} field.")
266      (inversion ,list? " musical-pitch, optional.")
267      (join-heads ,boolean? "Whether to join the noteheads of an ambitus grob with a vertical line.")
268      (kern ,ly:dimension? "amount of extra white
269 space to add. For barline, space after a thick line.")
270      (knee ,boolean? "Is this beam a ,knee?")
271      (knee-spacing-correction ,number? "optical correction amount for knees. 0: no correction; 1: full correction.")
272      (layer ,number? "The output layer [0..2].  The default is 1.")
273
274      (ledger-line-thickness ,number-pair?
275                             "The thickness of ledger lines: it is the
276 sum of 2 numbers.  The car is the factor for linethickness, and the
277 cdr for staff space. Both contributions are added.")
278      
279      (left-position ,number? "position of left part of spanner.")
280      (left-padding ,ly:dimension? "space left of accs.")
281
282      (length ,ly:dimension? "Stem length for unbeamed stems, only for user override.")
283      (lengths ,list? "Stem length given
284 multiplicity of flag.  The Nth element of the list gives the stem
285 length of a note with N flags.
286 ")
287      (linea ,boolean? "attach vertical lines to this ,neume?.")
288      (line-count ,integer? "Number of staff
289 lines.  If you want to override this for staffs individually, you must
290 use @code{\\outputproperty}. @code{\\property .. \\override} will not
291 work: @code{\\override} is processed after the StaffSymbol is created,
292 and will have no effect.
293 ")
294      (maximum-rest-count ,integer? "kill off rests so we don't more than this number left.")
295      (measure-length ,ly:moment? "Length of a
296 measure. Used in some spacing situations.")
297      (measure-count ,integer? "number of measures for a multimeasure rest.")
298
299      (merge-differently-headed ,boolean? "Merge
300 noteheads in collisions, even if they have different note heads. The
301 smaller of the two heads will be rendered invisible. This used
302 polyphonic guitar notation. The value of this setting is used by
303 @ref{note-collision-interface} .")
304
305      (merge-differently-dotted ,boolean? " Merge
306 noteheads in collisions, even if they have a different number of
307 dots. This normal notation for some types of polyphonic music. The
308 value of this setting is used by @ref{note-collision-interface} .")
309
310      (meta ,list? "Contains meta information. It is an alist with the
311 entries @code{name} and @code{interfaces}.")
312
313      (minimum-distance ,ly:dimension? "Minimum distance between rest and notes or beam.")
314      (minimum-distances ,list? "list of rods (ie. (OBJ . DIST) pairs).")
315      (minimum-X-extent ,number-pair? "minimum size in X dimension, measured in staff space.")
316      (minimum-Y-extent ,number-pair? "see @code{minimum-Y-extent}.")
317      (minimum-length ,ly:dimension? "try to make the
318 Grob at least this long.
319
320 Also works as a scaling parameter for the length of hyphen. .")
321      (minimum-space ,ly:dimension? "minimum distance that the victim should move (after padding).")
322      (print-function ,procedure? "Function taking grob as argument,
323 returning a Molecule object.")
324
325      (molecule ,ly:molecule? "Cached output of the print-function.")
326
327      (new-accidentals ,list? "list of (pitch, accidental) pairs.")
328      (no-spacing-rods ,boolean? "read from grobs: boolean that makes Separation_item ignore this item (MOVE ME TO ITEM).")
329      (no-stem-extend ,boolean? "should stem not be extended to middle staff ,line?.")
330      (non-default ,boolean? "not set because of existence of a ,bar?.")
331      (note-head-style ,string? "name of the font character to be used as note heads in the ambitus grob.")
332      (old-accidentals ,list? "list of (pitch, accidental) pairs.")
333      (oriscus ,boolean? "is this neume an ,oriscus?.")
334
335      (enclose-bounds ,number?
336                      "How much of the bound a spanner  should enclose: +1 = completely, 0 = center, -1 not at all.")
337
338      (padding ,ly:dimension? "add this much extra space between objects that are next to each other.")
339      (penalty ,number? "Penalty for breaking at
340 this column. 10000 or more means forbid linebreak, -10000 or less
341 means force linebreak.  Other values influence linebreaking decisions
342 as a real penalty.")
343
344      (pes-or-flexa ,boolean? "shall this neume be joined with the previous ,head?.")
345
346      (pitch-max ,ly:pitch? "FIXME, JUNKME")
347      (pitch-min ,ly:pitch? "FIXME, JUNKME")
348      
349      (pitches ,list? "list of musical-pitch.")
350      (quilisma ,boolean? "is this neume a ,quilisma?.")
351      (positions ,pair?
352
353                 "cons of staff coordinates (@var{left} . @var{right}),
354 where both @var{left} and @var{right} are in the staff-space unit of
355 the current staff.")
356
357      ;; DOCME
358      (prefix-set ,number? "")
359      (ratio ,number? "Parameter for slur shape. The higher this number, the
360 quicker the slur attains it @code{height-limit}.")
361      (remove-first ,boolean?
362                    "Remove the first staff of a orchestral score?")
363      (right-padding ,ly:dimension? "space right of accs.")
364      (right-position ,number? "position of right part of spanner.")
365      (script-priority ,number? "A sorting key that determines in what order a script is within a stack of scripts.")
366
367      ;; TODO: revise typing
368      (self-alignment-X ,number-or-grob? "real number: -1 =
369 left aligned, 0 = center, 1 right-aligned in X direction.
370
371  Set to an grob pointer, if you want that grob to be the center.
372 In this case, the center grob should have this object as a
373 reference point.
374
375 .")
376      (self-alignment-Y ,number? "like self-alignment-X but for Y axis.")
377
378      ;; DOCME
379      (shorten ,ly:dimension? "the amount of space that a stem should be shortened ")
380      (shorten-pair ,number-pair? "the length on each side to shorten a text-spanner, for example a pedal bracket")
381      (common-shortest-duration ,ly:moment?
382                                "The most common shortest note length.
383 This is used in spacing. Making this larger will make the score tighter.")
384      (shortest-duration-space ,ly:dimension? "Start
385 with this much space for the shortest duration. This is explessed in @code{spacing-increment} as unit. See also
386 @ref{spacing-spanner-interface}.")
387      (shortest-playing-duration ,ly:moment? "duration of the shortest playing in that column.")
388      (shortest-starter-duration ,ly:moment? "duration of the shortest notes that starts exactly in this column.")
389      (side-relative-direction ,ly:dir? "if set: get the direction from a different object, and multiply by this.")
390      (slope ,number? "some kind of slope")
391      (slope-limit ,number? "set slope to zero if slope is running away steeper than this.")
392
393      (space-alist ,list? "Alist of break align
394 spacing tuples: format = (SYMBOL . (TYPE . DISTANCE)), where TYPE can be
395 minimum-space or extra-space.")
396      (space-function ,procedure? "return interbeam space given Beam grob and multiplicity.")
397
398      (spacing-increment ,number? "Add this much space for a doubled
399 duration. Typically, the width of a note head. See also
400 @ref{spacing-spanner-interface}.")
401
402      (spacing-procedure ,procedure? "procedure taking grob as
403 argument. This is called after before-line-breaking-callback, but
404 before the actual line breaking itself.  Return value is ignored.")
405      
406      (stacking-dir ,ly:dir? "stack contents of grobs in which direction ?.")
407      (staff-space ,ly:dimension? "Amount of line leading relative to global staffspace.")
408      (staff-position ,number? "vertical position in staff spaces, counted from the middle line.")
409
410      (staffline-clearance ,ly:dimension? "don't get closer than this to stafflines.")
411
412      (stem-attachment-function ,procedure? "Where
413 does the stem attach to the ,notehead? Function takes grob and axis as
414 arguments. It returns a (X . Y) pair, specifying location in terms of
415 note head bounding box.")
416
417      (stem-end-position ,number? "Where does the stem end (the end is opposite to the support-head.")
418
419      (stem-shorten ,list? "shorten stems in forced directions given flag multiplicity:
420 the Nth element of the list gives the amount stem shortening of a note with N flags.
421 ")
422      ;;[TODO: doco]
423      (stem-spacing-correction ,number? "optical correction amount.   ")
424      (stropha ,boolean? "is this neume a ,stropha?.")
425      (style ,symbol? "a string determining what style of  glyph is typeset. Valid choices depend on the function that is reading this property. .")
426      (text-repeat-if-broken ,boolean?
427                             "Repeat text on broken ,text-spanner?")
428      (text ,markup? "Text markup.  See the
429 notation manual for more information.")
430      (thick-thickness ,number? "thickness, measured in linethickness.")
431      (thickness ,number? "thickness, measured in linethickness.")
432      (thin-kern ,number? "space after a hair-line.")
433      (forced-distance ,ly:dimension? "forced distance for an alignment.")
434
435      (threshold ,number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace.")
436      (transparent ,boolean? "This is almost the
437 same as setting print-function to #f, but this retains the
438 dimensions of this grob, which means that you can erase grobs
439 individually. .")
440      (bracket-visibility ,boolean-or-symbol? " This controls the
441 visibility of the tuplet bracket.  Setting it to false will prevent
442 printing of the bracket. Setting the property to #'if-no-beam will
443 make it print only if there is no beam associated with this tuplet
444 bracket.")
445      
446      (number-visibility ,boolean-or-symbol? " Like
447 @code{bracket-visibility}, but for the number.")
448
449      ;; FIXME.
450      (break-visibility ,procedure? "a function that takes the break
451 direction and returns a cons of booleans containing (TRANSPARENT
452 . EMPTY).  The following variables are predefined: @code{all-visible},
453 @code{begin-of-line-visible}, @code{end-of-line-visible},
454 @code{begin-of-line-invisible}, @code{end-of-line-invisible},
455 @code{all-invisible}.
456 ")
457
458      (virga ,boolean? "is this neume a ,virga?.")
459      (when ,ly:moment? "when does this column ,happen?.")
460      (word-space ,ly:dimension? "space to insert between lyrics or
461 words in texts.")
462      (width ,ly:dimension? "width of a grob measured in staff space.")
463      (x-gap ,ly:dimension? "horizontal gap between notehead and tie.")
464      (x-offset ,ly:dimension? "extra horizontal offset for ligature heads.")
465      (y-free ,ly:dimension? "minimal vertical gap between slur and noteheads or stems.")
466      (y-offset ,ly:dimension? "extra vertical offset
467 for ties away from the center line.")
468      (zigzag-length ,ly:dimension? "The length of the
469 lines of a zigzag - relative to zigzag-width. a value of 1
470 gives 60-degree zigzags.")
471      (zigzag-width ,ly:dimension? "the width of one
472 zigzag-squiggle, measured in staff space. The width will be adjusted
473 so that the line can be constructed from a whole number of squiggles.")
474
475
476      (avoid-note-head ,boolean? "if set, the stem of a chord does not pass through all note head, but start at the last note head. Used by tablature.")
477      (staff-padding ,ly:dimension?
478                     "Maintain this much space to the staff.  It's
479 effect is similar to the padding mechanism, but this will keep objects
480 above and below the staff in a row more often, when the heights of the
481 notes vary.
482 ")
483
484      (use-breve-rest ,boolean? "boolean that tells multi-measure-rest
485 to use a breve rest to represent the duration of 1 measure instead of
486 whole rest.  It defaults to false.  It is set to true when the
487 duration of a measure is a breve or longer.")
488
489      )))
490
491
492 ;;;;;;;;;;;;;;;;
493 ;;   INTERNAL
494
495
496 (define (define-internal-grob-property symbol type? description)
497   (define-grob-property symbol type? description)
498   (set-object-property! symbol 'backend-internal #t)
499   symbol
500   )
501
502
503 (define all-internal-grob-properties
504   (map
505    (lambda (x)
506      (apply define-internal-grob-property x))
507    
508    `(
509      (accidental-grobs ,list? "Alis with (NOTENAME . GROBLIST) entries")
510      
511      (all-elements ,grob-list? "list of all grobs in this line. Needed for protecting grobs from GC.")
512      (arpeggio ,ly:grob? "pointer to arpeggio object.") 
513      (beam ,ly:grob? "pointer to the beam, if applicable.")
514      (center-element ,ly:grob? "grob which will be at the center of
515 the group after aligning (when using
516 Align_interface::center_on_element).")
517      (direction-source ,ly:grob? "in case side-relative-direction is
518 set, which grob to get the direction from .")
519      (dot ,ly:grob? "reference to Dots object.")
520      (pedal-text ,ly:grob? "Pointer to the text of a mixed-style piano pedal.")
521      (stem ,ly:grob? "pointer to Stem object.")
522      (tremolo-flag ,ly:grob? "The tremolo object on a stem.")
523      (tie ,ly:grob? "")
524      (staff-symbol ,ly:grob? "the staff symbol grob that we're in.")
525      (rest ,ly:grob? "the staff symbol grob that we're in.")
526      (rest-collision ,ly:grob? "rest collision that a rest is in.")
527      (accidental-grob ,ly:grob? "Accidental for this note.")
528      (bars ,grob-list? "list of barline pointers.")
529      (bounded-by-me ,grob-list? "list of spanners that have this
530 column as start/begin point. Only columns that have grobs or act as bounds are spaced.")
531      (columns ,grob-list? "list of grobs, typically containing paper-columns.")
532      (conditional-elements ,grob-list? "Internal use only")
533      (dependencies ,grob-list? "list of score-grob pointers that indicate who to compute first for certain global passes.")
534      (elements ,grob-list? "list of grobs, type depending on the Grob where this is set in.")
535      (heads ,grob-list? "List of note heads.")
536      (items-worth-living ,grob-list? "list of interesting items. If empty in a particular system, clear that system.")
537      (note-heads ,grob-list? "List of note head grobs")
538      (side-support-elements ,grob-list? "the support, a list of grobs.")
539      (spacing-wishes ,grob-list? "List of note spacing or staff spacing objects.")
540      (stems ,grob-list? "list of stem objects, corresponding to the notes that the arpeggio has to be before.")
541
542
543      (left-neighbors ,grob-list? " List of
544 spacing-wish grobs that are close to the current column.
545
546 The closest spacing-wishes determine the actual distances between the
547 columns.
548 ")
549      (right-neighbors ,grob-list? "see left-neighbors")
550      (left-items ,grob-list? "")
551      (right-items ,grob-list? "")
552      (cause ,scheme? "Any kind of causation objects (i.e. music, or perhaps translator) that was the cause for this grob.  ")
553      (font ,ly:font-metric? "Cached font metric object")
554
555      (positioning-done ,boolean?
556                        "Used to signal that a positioning element
557 did it's job. This ensures that a positioning is only done once.")
558
559
560      (script-molecule ,pair? "Index code for script -- internal, see script.cc.")
561
562
563      (flag-count ,number? "")
564
565      ;; TODO: use interface for this!
566      (chord-tremolo ,boolean? "if set, this beam is a tremolo. ")
567      (chord ,pair? "?")
568      (begin-of-line-visible ,boolean? "?")
569      (quant-score ,number? "Beam quanting score
570 -- can be stored for debugging")
571      (least-squares-dy ,number? 
572                        "ideal beam slope, without damping.")
573      (ligature-primitive-callback ,procedure? "callback that brews ligature head.")
574      (stem-info ,pair? "caching of stem parameters")
575      (note-columns ,pair? "list of NoteColumn grobs.")
576
577      (if-text-padding ,number? "padding in case texts are there.")
578      (grace-space-factor ,number? "space grace at this fraction of the increment.")
579      (position-callbacks ,list? "list of
580 functions set spanner positions.")
581
582 ;;; Junk me, replace it by add-join.
583      (join-left ,boolean? "is this ligature head joined with the previous one by a vertical ,line?")
584
585      (join-left-amount ,number? "")
586
587      (delta-pitch ,number? "the interval between this and the next note, or, more precisely, their vertical distance; this is used in ligatures for calculation of the height of vertical joins flexa shapes")
588      (head-width ,ly:dimension? "width of this ligature head")
589
590      ;; [TODO: change this]
591      (primitive ,integer? "Pointer to a ligature primitive, i.e. an item similar to a note head that is part of a ligature. ")
592      
593      )))
594
595 (define-public all-backend-properties
596   (append
597    all-internal-grob-properties
598    all-user-grob-properties))