PgTabArray

Functions in this section are used to deal with PangoTabArray objects that can be used to set tab stop positions in a PangoLayout.

Constructors

this
this(PangoTabArray* pangoTabArray)

Sets our main struct and passes it to the parent class

this
this(int initialSize, int 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()
Undocumented in source. Be warned that the author may not have intended to support it.
getPositionsInPixels
int 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.

Variables

pangoTabArray
PangoTabArray* pangoTabArray;

the main Gtk struct

Inherited Members

From Boxed

boxedCopy
void* boxedCopy(GType boxedType, void* srcBoxed)

Provide a copy of a boxed structure src_boxed which is of type boxed_type.

boxedFree
void boxedFree(GType boxedType, void* boxed)

Free the boxed structure boxed which is of type boxed_type.

boxedTypeRegisterStatic
GType boxedTypeRegisterStatic(string name, GBoxedCopyFunc boxedCopy, GBoxedFreeFunc boxedFree)

This function creates a new G_TYPE_BOXED derived type id for a new boxed type with name name. Boxed type handling functions have to be provided to copy and free opaque boxed structures of this type.

pointerTypeRegisterStatic
GType pointerTypeRegisterStatic(string name)

Creates a new G_TYPE_POINTER derived type id for a new pointer type with name name.

Meta