Misc.setAlignment

void setAlignment(float xalign, float yalign)

Sets the alignment of the widget.

Parameters

xalignthe horizontal alignment, from 0 (left) to 1 (right).
yalignthe vertical alignment, from 0 (top) to 1 (bottom).

Deprecated

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