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() nothrowCopies a [pango.tab_array.TabArray]. Returns: the newly allocated [pango.tab_array.TabArray], which should be freed with [pango.tab_array.TabArray.free].bool getPositionsInPixels() nothrowReturns true if the tab positions are in pixels, false if they are in Pango units. Returns: whether positions are in pixels.int getSize() nothrowGets 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) nothrowGets the alignment and position of a tab stop.void setDecimalPoint(int tabIndex, dchar decimalPoint) nothrowSets the Unicode character to use as decimal point.void setPositionsInPixels(bool positionsInPixels) nothrowSets whether positions in this array are specified in pixels.void setTab(int tabIndex, pango.types.TabAlign alignment, int location) nothrowSets the alignment and location of a tab stop.pango.tab_array.TabArray fromString(string text) static nothrowDeserializes a [pango.tab_array.TabArray] from a string.