W Wrapl, The Programming Language

Libraries:Gtk:Gtk:Misc

Types

T

Inherits from:

The T widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes.

The horizontal and vertical padding attributes allows extra space to be added around the widget.

The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widgets position.



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:GetAlignment(self @ T, xalign @ Std.Object.T, yalign @ Std.Object.T) : Std.Object.T

Gets the X and Y alignment of the widget within its allocation. See SetAlignment.

misc a T
xalign location to store X alignment of misc, or NULL. [out][allow-none]
yalign location to store Y alignment of misc, or NULL. [out][allow-none]


:GetPadding(self @ T, xpad @ Std.Object.T, ypad @ Std.Object.T) : Std.Object.T

Gets the padding in the X and Y directions of the widget. See SetPadding.

misc a T
xpad location to store padding in the X direction, or NULL. [out][allow-none]
ypad location to store padding in the Y direction, or NULL. [out][allow-none]


:SetAlignment(self @ T, xalign @ Std.Real.T, yalign @ Std.Real.T) : Std.Object.T

Sets the alignment of the widget.

misc a T.
xalign the horizontal alignment, from 0 (left) to 1 (right).
yalign the vertical alignment, from 0 (top) to 1 (bottom).


:SetPadding(self @ T, xpad @ Std.Integer.SmallT, ypad @ Std.Integer.SmallT) : Std.Object.T

Sets the amount of space to add around the widget.

misc a T.
xpad the amount of space to add on the left and right of the widget, in pixels.
ypad the amount of space to add on the top and bottom of the widget, in pixels.