11.89Class GtkMisc

Base class for widgets with alignments and padding.

Class GtkMisc

The GtkMisc 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.

Methods
get_alignmentGets the X and Y alignment of the widget within its allocation.
get_paddingGets the padding in the X and Y directions of the widget.
set_alignmentSets the alignment of the widget.
set_paddingSets the amount of space to add around the widget.

Methods

get_alignment

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

GtkMisc.get_alignment()
Return[float x, float y]

get_padding

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

GtkMisc.get_padding()
Return[int x, int y]

set_alignment

Sets the alignment of the widget.

GtkMisc.set_alignment( xalign, yalign )
xalign the horizontal alignment, from 0 (left) to 1 (right). (float)
yalign the vertical alignment, from 0 (top) to 1 (bottom). (float)

set_padding

Sets the amount of space to add around the widget.

GtkMisc.set_padding( xpad, ypad )
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.
Made with http://www.falconpl.org