klyn.gui.windows.WindowPlacement.WindowPlacement
constructor
public WindowPlacement(x as Int = 0, y as Int = 0, width as Int = 800, height as Int = 600, maximized as Boolean = false, centered as Boolean = false)
Description

Creates a placement, without opening a native window.

Parameters
ParameterDescription
xNormal frame screen x coordinate.
yNormal frame screen y coordinate.
widthNormal total width, including the frame, at least 240 pixels.
heightNormal total height, including the frame, at least 160 pixels.
maximizedWhether to open maximized with the selected frame.
centeredWhether to center instead of using x/y on first display.
Throws
  • ValueException if dimensions are smaller than the window minimum.
Example

window.setPlacement(WindowPlacement(100, 80, 1200, 800))