WindowPlacement
classin packageklyn.gui.windows
public class WindowPlacement
WindowPlacement

Snapshot of a window's normal geometry and requested display mode.

Positions are screen coordinates of the frame's top-left corner, including negative coordinates on secondary monitors. Width and height are complete dimensions in pixels, retained while maximized or minimized. Minimization is deliberately transient: a saved placement always reopens visibly.

Example
placement = window.getPlacement()
window.setPlacement(placement)
Properties
Modifier and Type Member Description
public readonly property centered
centered as Boolean
Center the normal window on first display.
public readonly property height
height as Int
Normal total height, including the frame.
public readonly property maximized
maximized as Boolean
Maximized mode, preserving the normal bounds.
public readonly property width
width as Int
Normal total width, including the frame.
public readonly property x
x as Int
Normal frame x coordinate.
public readonl y
y property y as Int
Normal frame y coordinate.
Constructors
Modifier and Type Member Description
public WindowPlacement
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)
Creates a placement, without opening a native window.