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