pango.tab_array

Module for [TabArray] class

class TabArray

Types 1

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
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
TabArray self() nothrowReturns `this`, for use in `with` statements.
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].
dchar getDecimalPoint(int tabIndex) nothrowGets the Unicode character to use as decimal point.
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 resize(int newSize) nothrowResizes a tab array.
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.
void sort() nothrowUtility function to ensure that the tab stops are in increasing order.
string toString_() nothrowSerializes a [pango.tab_array.TabArray] to a string.
pango.tab_array.TabArray fromString(string text) static nothrowDeserializes a [pango.tab_array.TabArray] from a string.
Constructors
this(void * ptr, Flag!"Take" take)
this(int initialSize, bool positionsInPixels)Creates an array of initial_size tab stops.