Gtk.Misc.prototype.set_alignment

function set_alignment(xalign:Number, yalign:Number):void {
    // Gjs wrapper for gtk_misc_set_alignment()
}

Sets the alignment of the widget.

xalign

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

yalign

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