Misc.setAlignment

Sets the alignment of the widget.

More...
class Misc
void
setAlignment
(
float xalign
,
float yalign
)

Parameters

xalign float

the horizontal alignment, from 0 (left) to 1 (right).

yalign float

the vertical alignment, from 0 (top) to 1 (bottom).

Detailed Description

Deprecated: Use #GtkWidget's alignment (#GtkWidget:halign and #GtkWidget:valign) and margin properties or #GtkLabel's #GtkLabel:xalign and #GtkLabel:yalign properties.

Meta