public abstract class Window extends Widget:
Base class for graphical windows.
win = MainWindow("Demo")
win.size = (900, 600)| Modifier and Type | Member | Description |
|---|---|---|
| public property | appearanceModeappearanceMode as String |
Appearance mode: `system`, `light` or `dark`. |
| public property | size | Requested size expressed as `(width, height)`. |
| public property | titletitle as String |
Window title. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | applyLayoutapplyLayout() as Void: |
Synchronizes window bounds with the requested size. |
| public | capturecapture(path as Path) as Void throws IOException: |
Captures the current window client area into a BMP image. |
| public native | capturecapture(filename as String) as Void throws IOException |
Captures the current window client area into a BMP image. |
| public native | centerIncenterIn(container as Container = null) as Void |
Centers the window inside another container or on screen. |
| public native | closeclose() as Void |
Closes the window. |
| public | relayoutrelayout() as Void: |
Replays the window layout using the current bounds. |
| public | renderrender(painter as Painter) as Void: |
Native-facing rendering hook. |
| public native | repaintrepaint() as Void |
Repaints the native window client area without forcing a relayout. |
| public native | runrun() as Int |
Starts the native event loop for this window. |
| public override | setBounds | No summary. |
| public native | showshow() as Void |
Shows the window. |
| public | themetheme() as KssTheme: |
Returns the active KSS theme for this window. |