Gtk.Window.prototype.resize
function resize(width:Number, height:Number):void { // Gjs wrapper for gtk_window_resize() }
Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call Gtk.Widget.prototype.set_size_request to set the window's request to a smaller value.
If Gtk.Window.prototype.resize is called before showing a window for the first time, it overrides any default size set with Gtk.set_default_size.
Windows may not be resized smaller than 1 by 1 pixels.
- width
width in pixels to resize the window to
- height
height in pixels to resize the window to