PgTabArray

A #PangoTabArray struct contains an array of tab stops. 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. Tab stops are specified in pixel units if @positions_in_pixels is %TRUE, otherwise in Pango units. All stops are initially at position 0.

Members

Functions

copy
PgTabArray copy()

Copies a #PangoTabArray

free
void free()

Frees a tab array and associated resources.

getPgTabArrayStruct
PangoTabArray* getPgTabArrayStruct()

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 of length pango_tab_array_get_size(). You must free the returned array.

resize
void resize(int newSize)

Resizes a tab array. You must subsequently initialize any tabs that were added as a result of growing the array.

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

Sets the alignment and location of a tab stop. @alignment must always be #PANGO_TAB_LEFT in the current implementation.

Static functions

getType
GType getType()

Variables

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

the main Gtk struct

Meta