TabArray

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.

Constructors

this
this(int initialSize, bool positionsInPixels)

Creates an array of initial_size tab stops.

Members

Functions

copy
pango.tab_array.TabArray copy()

Copies a pango.tab_array.TabArray.

getDecimalPoint
dchar getDecimalPoint(int tabIndex)

Gets the Unicode character to use as decimal point.

getPositionsInPixels
bool getPositionsInPixels()

Returns true if the tab positions are in pixels, false if they are in Pango units.

getSize
int getSize()

Gets the number of tab stops in tab_array.

getTab
void getTab(int tabIndex, pango.types.TabAlign alignment, int location)

Gets the alignment and position of a tab stop.

resize
void resize(int newSize)

Resizes a tab array.

setDecimalPoint
void setDecimalPoint(int tabIndex, dchar decimalPoint)

Sets the Unicode character to use as decimal point.

setPositionsInPixels
void setPositionsInPixels(bool positionsInPixels)

Sets whether positions in this array are specified in pixels.

setTab
void setTab(int tabIndex, pango.types.TabAlign alignment, int location)

Sets the alignment and location of a tab stop.

sort
void sort()

Utility function to ensure that the tab stops are in increasing order.

toString_
string toString_()

Serializes a pango.tab_array.TabArray to a string.

Static functions

fromString
pango.tab_array.TabArray fromString(string text)

Deserializes a pango.tab_array.TabArray from a string.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.