public class MainWindow extends Window
Main application window.
Window dimensions include the complete frame. The central container fills the available client area below the menu bar, excluding the frame. Built-in themes impose no window padding. Use an explicit container margin for outer spacing, or container padding to inset its children. The optional spaced-content container style supplies a theme-scaled 10-pixel margin.
win = MainWindow("Demo")
win.centralWidget.layout = VBoxLayout(spacing=12)
win.centralWidget.styleClass = "spaced-content"
win.applyTheme()| Modifier and Type | Member | Description |
|---|---|---|
| public property | centralWidget | No summary. |
| public property | menuBarmenuBar as MenuBar = null |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | MainWindowMainWindow(title as String = "") |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | applyLayoutapplyLayout() as Void |
No summary. |
| public override | applyThemeapplyTheme(mode as String = null) as Void |
Applies the active KSS theme to the complete window tree. |
| public override | paintpaint(painter as Painter) as Void |
Paints the main window background and its central widget tree using the active KSS theme. |
| public override | relayoutrelayout() as Void |
No summary. |
| public override | renderrender(painter as Painter) as Void |
No summary. |
| public override | setBounds | No summary. |