Gtk.Window.prototype.set_position

function set_position(position:Gtk.WindowPosition):void {
    // Gjs wrapper for gtk_window_set_position()
}

Sets a position constraint for this window. If the old or new constraint is Gtk.WindowPosition.center_always, this will also cause the window to be repositioned to satisfy the new constraint.

position

a position constraint.