klyn.gui.windows.Window.setBounds
method
public override setBounds(x as Int, y as Int, width as Int, height as Int) as Void
Description

Updates the logical bounds and, when created, the complete native size.

Changing size after show() resizes the visible window without moving it or taking focus. The coordinates remain widget-local; use centerIn() to reposition the native window.

Parameters
ParameterDescription
xLocal horizontal origin.
yLocal vertical origin.
widthRequested total width, including the frame, subject to constraints.
heightRequested total height, including the frame, subject to constraints.
Example
win.show()
win.size = (1024, 768)