Name
pango.TabArrayWithPositions -- create tab array
Synopsis
tabs = pango.TabArrayWithPositions(positions_in_pixels[, align1, pos1, ...])
Function
Creates a Pango tab array and allows you to specify the alignment and position of each tab stop. Tab stops are specified in pixel units if positions_in_pixels is True, otherwise in Pango units.

For each tab stop you must provide an alignment and a position. The alignN parameter can be one of the following constants:

#PANGO_TAB_LEFT
The text appears to the right of the tab stop position.
#PANGO_TAB_RIGHT
The text appears to the left of the tab stop position until the available space is filled.
#PANGO_TAB_CENTER
The text is centered at the tab stop position until the available space is filled.
#PANGO_TAB_DECIMAL
Text before the first occurrence of the decimal point character appears to the left of the tab stop position (until the available space is filled), the rest to the right.

This function returns the newly allocated Pango tab array, which should be freed with ptabarray:Free().

Inputs
positions_in_pixels
whether positions are in pixel units
align1
alignment of first tab stop (see above)
pos1
position of first tab stop
...
additional alignment/position pairs
Results
tabs
the newly allocated Pango tab array

Show TOC