PgTabArray

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 and a position.

Constructors

this
this(PangoTabArray* pangoTabArray, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(int initialSize, bool positionsInPixels)

Creates an array of @initial_size tab stops.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
PgTabArray copy()

Copies a PangoTabArray.

free
void free()

Frees a tab array and associated resources.

getPgTabArrayStruct
PangoTabArray* getPgTabArrayStruct(bool transferOwnership)

Get the main Gtk struct

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.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTab
void getTab(int tabIndex, PangoTabAlign alignment, int location)

Gets the alignment and position of a tab stop.

getTabs
void getTabs(PangoTabAlign* alignments, int[] locations)

If non-%NULL, @alignments and @locations are filled with allocated arrays.

resize
void resize(int newSize)

Resizes a tab array.

setTab
void setTab(int tabIndex, PangoTabAlign alignment, int location)

Sets the alignment and location of a tab stop.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoTabArray
PangoTabArray* pangoTabArray;

the main Gtk struct

Meta