Creates an array of initial_size
tab stops.
Tab stops are specified in pixel units if positions_in_pixels
is %TRUE,
otherwise in Pango units. All stops are initially at position 0.
Initial number of tab stops to allocate, can be 0
whether positions are in pixel units
Copies a PangoTabArray
.
Frees a tab array and associated resources.
Gets the Unicode character to use as decimal point.
This is only relevant for tabs with %PANGO_TAB_DECIMAL alignment, which align content at the first occurrence of the decimal point character.
The default value of 0 means that Pango will use the decimal point according to the current locale.
the index of a tab stop
Returns %TRUE if the tab positions are in pixels, %FALSE if they are in Pango units.
Gets the number of tab stops in tab_array
.
Gets the alignment and position of a tab stop.
tab stop index
If non-%NULL, alignments
and locations
are filled with allocated
arrays.
The arrays are of length [methodPango
.TabArray.get_size].
You must free the returned array.
Resizes a tab array.
You must subsequently initialize any tabs that were added as a result of growing the array.
new size of the array
Sets the Unicode character to use as decimal point.
This is only relevant for tabs with %PANGO_TAB_DECIMAL alignment, which align content at the first occurrence of the decimal point character.
By default, Pango uses the decimal point according to the current locale.
the index of a tab stop
the decimal point to use
Sets whether positions in this array are specified in pixels.
whether positions are in pixels
Sets the alignment and location of a tab stop.
the index of a tab stop
tab alignment
tab location in Pango units
Utility function to ensure that the tab stops are in increasing order.
Serializes a PangoTabArray
to a string.
No guarantees are made about the format of the string, it may change between Pango versions.
The intended use of this function is testing and debugging. The format is not meant as a permanent storage format.
Deserializes a PangoTabArray
from a string.
This is the counterpart to [methodPango
.TabArray.to_string].
See that functions for details about the format.
a string
Creates an array of initial_size
tab stops.
Tab stops are specified in pixel units if positions_in_pixels
is %TRUE,
otherwise in Pango units. All stops are initially at position 0.
Initial number of tab stops to allocate, can be 0
whether positions are in pixel units
A
PangoTabArray
contains an array of tab stops.PangoTabArray
can be used to set tab stops in aPangoLayout
. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.