Next: , Previous: BarLine, Up: All layout objects



BarNumber

BarNumber objects are created by: Bar_number_engraver

Standard settings:

print-function (procedure):
Text_item::print

Function taking grob as argument, returning a Stencil object.

breakable (boolean):
#t

Can this object appear at a line break, like clefs and bar lines?

break-visibility (procedure):
begin-of-line-visible

A function that takes the break direction and returns a cons of booleans containing (transparent . empty). The following variables are predefined: all-visible, begin-of-line-visible, end-of-line-visible, begin-of-line-invisible, end-of-line-invisible, all-invisible.

padding (dimension, in staff space):
1.0

Add this much extra space between objects that are next to each other.

direction (direction):
1

Up or down, left or right?

font-family (symbol):
'roman

The font family is the broadest category for selecting text fonts. Options include: sans, roman

font-size (number):
-2

The font size, compared the `normal' size. 0 is style-sheet's normal size, -1 is smaller, +1 is bigger. Each step of 1 is approximately 12% larger, 6 steps are exactly a factor 2 larger. Fractional values are allowed.

Y-offset-callbacks (list):
'(#<primitive-procedure Side_position_interface::aligned_side>)

see X-offset-callbacks.

X-offset-callbacks (list):
'(#<primitive-procedure Self_alignment_interface::aligned_on_self>)

A list of functions determining this objects' position relative to its parent. The last one in the list is called first. The functions take a grob and axis argument.

self-alignment-X (number):
1

Specify alignment of an object. The value -1 means left aligned, 0 centered, and 1 right-aligned in X direction. Values in between may also be specified.

extra-offset (pair of numbers):
'(1.3 . 0)

A pair representing an offset. This offset is added just before outputting the symbol, so the typesetting engine is completely oblivious to it.

This object supports the following interfaces: break-aligned-interface, item-interface, font-interface, self-alignment-interface, text-interface, side-position-interface and grob-interface

Read comments on this page, or add one.

This page is for LilyPond-2.2.6 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.