Copies a Pango.TabArray.
the newly allocated Pango.TabArray, which should be freed with Pango.TabArray.free.
Frees a tab array and associated resources.
Gets the Unicode character to use as decimal point.
This is only relevant for tabs with Pango.TabAlign.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.
whether positions are in pixels.
Gets the number of tab stops in tab_array.
the number of tab stops in the array.
If non-null, alignments and locations are filled with allocated
arrays.
The arrays are of length Pango.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.TabAlign.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
Utility function to ensure that the tab stops are in increasing order.
Serializes a Pango.TabArray to a string.
In the resulting string, serialized tabs are separated by newlines or commas.
Individual tabs are serialized to a string of the form
[ALIGNMENT:]POSITION[:DECIMAL_POINT]
Where ALIGNMENT is one of left, right, center or decimal, and POSITION is the position of the tab, optionally followed by the unit px. If ALIGNMENT is omitted, it defaults to left. If ALIGNMENT is decimal, the DECIMAL_POINT character may be specified as a Unicode codepoint.
Note that all tabs in the array must use the same unit.
A typical example:
100px 200px center:300px right:400px
a newly allocated string
Staticfrom_Deserializes a Pango.TabArray from a string.
This is the counterpart to Pango.TabArray.to_string. See that functions for details about the format.
a string
Staticnew
A Pango.TabArray contains an array of tab stops.
Pango.TabArray can be used to set tab stops in a Pango.Layout. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.