A <PangoTabArray> contains an array of tab stops.
<PangoTabArray> can be used to set tab stops in a
<PangoLayout>. Each tab stop has an alignment, a
position, and optionally a character to use as decimal point.
Copies a <PangoTabArray>.
Passed: a <PangoTabArray>.
<PangoTabArray> to copy
Returned: a <PangoTabArray>.
the newly allocated <PangoTabArray>, which should
be freed with tab-array:free.
Frees a tab array and associated resources.
Passed: a <PangoTabArray>.
Deserializes a <PangoTabArray> from a string.
This is the counterpart to tab-array:to-string. See that functions for details about
the format.
Passed: a string.
a string
Returned: a <PangoTabArray>, or #f.
a new <PangoTabArray>
Gets the Unicode character to use as decimal point.
This is only relevant for tabs with 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.
Passed: a <PangoTabArray>.
Passed: a 32-bit integer.
the index of a tab stop
Returned: a character.
Returns #t if the tab positions are in pixels, #f if they
are in Pango units.
Passed: a <PangoTabArray>.
Returned: a boolean.
whether positions are in pixels.
Gets the number of tab stops in self.
Passed: a <PangoTabArray>.
Returned: a 32-bit integer.
the number of tab stops in the array.
Gets the alignment and position of a tab stop.
Passed: a <PangoTabArray>.
Passed: a 32-bit integer.
tab stop index
Returned: a <PangoTabAlign>.
location to store alignment
Returned: a 32-bit integer.
location to store tab position
If non-#f, alignments and locations are filled with
allocated arrays.
The arrays are of length tab-array:get-size. You must free the returned array.
Passed: a <PangoTabArray>.
Returned: a <PangoTabAlign>.
location to store an array of tab stop alignments
Returned: a foreign pointer.
location to store an array of tab positions
Creates an array of initial-size tab stops.
Tab stops are specified in pixel units if positions-in-pixels is
#t, otherwise in Pango units. All stops are initially at
position 0.
Passed: a 32-bit integer.
Initial number of tab stops to allocate, can be 0
Passed: a boolean.
whether positions are in pixel units
Returned: a <PangoTabArray>.
the newly allocated <PangoTabArray>, which should
be freed with tab-array:free.
Resizes a tab array.
You must subsequently initialize any tabs that were added as a result of growing the array.
Passed: a <PangoTabArray>.
Passed: a 32-bit integer.
new size of the array
Sets the Unicode character to use as decimal point.
This is only relevant for tabs with 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.
Passed: a <PangoTabArray>.
Passed: a 32-bit integer.
the index of a tab stop
Passed: a character.
the decimal point to use
Sets whether positions in this array are specified in pixels.
Passed: a <PangoTabArray>.
Passed: a boolean.
whether positions are in pixels
Sets the alignment and location of a tab stop.
Passed: a <PangoTabArray>.
Passed: a 32-bit integer.
the index of a tab stop
Passed: a <PangoTabAlign>, or one of its symbols.
tab alignment
Passed: a 32-bit integer.
tab location in Pango units
Utility function to ensure that the tab stops are in increasing order.
Passed: a <PangoTabArray>.
Serializes a <PangoTabArray> 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
Passed: a <PangoTabArray>.
Returned: a string.
a newly allocated string