pango.tab_array
Module for [TabArray] class
class TabArray
Types 1
classTabArray : gobject.boxed.Boxed
A [pango.tab_array.TabArray] contains an array of tab stops.
[pango.tab_array.TabArray] can be used to set tab stops in a [pango.layout.Layout]. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.
Methods
pango.tab_array.TabArray copy()Copies a [pango.tabarray.TabArray]. Returns: the newly allocated [pango.tabarray.TabArray], which should be freed with [pango.tab_array.TabArray.free].dchar getDecimalPoint(int tabIndex)Gets the Unicode character to use as decimal point.bool getPositionsInPixels()Returns true if the tab positions are in pixels, false if they are in Pango units. Returns: whether positions are in pixels.int getSize()Gets the number of tab stops in tab_array. Returns: the number of tab stops in the array.void getTab(int tabIndex, out pango.types.TabAlign alignment, out int location)Gets the alignment and position of a tab stop.void resize(int newSize)Resizes a tab array.void setDecimalPoint(int tabIndex, dchar decimalPoint)Sets the Unicode character to use as decimal point.void setPositionsInPixels(bool positionsInPixels)Sets whether positions in this array are specified in pixels.void setTab(int tabIndex, pango.types.TabAlign alignment, int location)Sets the alignment and location of a tab stop.void sort()Utility function to ensure that the tab stops are in increasing order.string toString_()Serializes a [pango.tab_array.TabArray] to a string.pango.tab_array.TabArray fromString(string text)Deserializes a [pango.tab_array.TabArray] from a string.