Window
classin packageklyn.gui.windows
public abstract class Window extends Widget:
Base class for graphical windows.
win = MainWindow("Demo")
win.size = (900, 600)
Properties
| Modifier and Type |
Member |
Description |
| public property |
appearanceMode |
Appearance mode: `system`, `light` or `dark`. |
| public property |
size |
Requested size expressed as `(width, height)`. |
| public property |
title |
Window title. |
Properties inherited from Widget: accentColor,
backgroundColor,
borderColor,
bottom,
canFocus,
cornerRadius,
font,
foregroundColor,
hasFocus,
height,
isEnabled,
isHovered,
isManaged,
isVisible,
layoutParams,
margin,
maxHeight,
maxWidth,
minHeight,
minWidth,
parent,
preferredHeight,
preferredWidth,
right,
styleClass,
width,
window,
x,
y
Constructors
| Modifier and Type |
Member |
Description |
| public |
Window |
No summary. |
| public |
Window |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
applyLayout applyLayout() as Void:
|
Synchronizes window bounds with the requested size. |
| public native |
centerIncenterIn(container as Container = null) as Void |
Centers the window inside another container or on screen. |
| public native |
close close() as Void
|
Closes the window. |
| public |
relayout relayout() as Void:
|
Replays the window layout using the current bounds. |
| public |
renderrender(painter as Painter) as Void: |
Native-facing rendering hook. |
| public native |
run |
Starts the native event loop for this window. |
| public override |
setBoundssetBounds(x as Int, y as Int, width as Int, height as Int) as Void: |
No summary. |
| public native |
show show() as Void
|
Shows the window. |
| public |
theme |
Returns the active KSS theme for this window. |