Libraries:Gtk:Pango:TabArray
Types
T
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
New(initial_size @ Std.Integer.SmallT, positions_in_pixels @ Std.Symbol.T) : Gtk.Pango.TabArray.T
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.
initial_size | Initial number of tab stops to allocate, can be 0 |
positions_in_pixels | whether positions are in pixel units |
Returns | the newly allocated T, which should be freed with Free. |
NewWithPositions(size @ Std.Integer.SmallT, positions_in_pixels @ Std.Symbol.T, first_alignment @ Gtk.Pango.TabAlign.T, first_position @ Std.Integer.SmallT, ... @ Std.Object.T) : Gtk.Pango.TabArray.T
This is a convenience function that creates a T and allows you to specify the alignment and position of each tab stop. You must provide an alignment and position for size tab stops.
size | number of tab stops in the array |
positions_in_pixels | whether positions are in pixel units |
first_alignment | alignment of first tab stop |
first_position | position of first tab stop |
Returns | the newly allocated T, which should be freed with Free. |
Methods
:"="(_ @ T, _ @ T)
:Copy(self @ T) : Gtk.Pango.TabArray.T
:Free(self @ T) : Std.Object.T
:GetPositionsInPixels(self @ T) : Std.Symbol.T
Returns TRUE if the tab positions are in pixels, FALSE if they are in Pango units.
tab_array | a T |
Returns | whether positions are in pixels. |
:GetSize(self @ T) : Std.Integer.SmallT
Gets the number of tab stops in tab_array.
tab_array | a T |
Returns | the number of tab stops in the array. |
:GetTab(self @ T, tab_index @ Std.Integer.SmallT, alignment @ Std.Object.T, location @ Std.Object.T) : Std.Object.T
Gets the alignment and position of a tab stop.
tab_array | a T |
tab_index | tab stop index |
alignment | location to store alignment, or NULL. [out][allow-none] |
location | location to store tab position, or NULL. [out][allow-none] |
:GetTabs(self @ T, alignments @ Std.Object.T, locations @ Std.Object.T) : Std.Object.T
If non-NULL, alignments and locations are filled with allocated arrays of length GetSize. You must free the returned array.
tab_array | a T |
alignments | location to store an array of tab stop alignments, or NULL. [out][allow-none] |
locations | location to store an array of tab positions, or NULL. [out][allow-none] |
:Resize(self @ T, new_size @ Std.Integer.SmallT) : Std.Object.T
Resizes a tab array. You must subsequently initialize any tabs that were added as a result of growing the array.
tab_array | a T |
new_size | new size of the array |
:SetTab(self @ T, tab_index @ Std.Integer.SmallT, alignment @ Gtk.Pango.TabAlign.T, location @ Std.Integer.SmallT) : Std.Object.T
Sets the alignment and location of a tab stop. alignment must always be Gtk.Pango.TabAlign.Left in the current implementation.
tab_array | a T |
tab_index | the index of a tab stop |
alignment | tab alignment |
location | tab location in Pango units |