MainWindow
class in package klyn.gui.windows

    public class MainWindow extends Window:

Widget
└ Window
└ MainWindow

Main application window.

    win = MainWindow("Demo")
    win.centralWidget.layout = VBoxLayout(spacing=12)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | centralWidget `centralWidget as Container = Container()` | No summary.
public property | menuBar `menuBar as MenuBar = null` | No summary.

Properties inherited from Window: appearanceMode, size, 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, sizePolicy, styleClass, width, window, x, y
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | MainWindow `MainWindow(title as String = ""):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | applyLayout `applyLayout() as Void:` | No summary.
public override | paint `paint(painter as Painter) as Void:` | Paints the main window background and its central widget tree using the active KSS theme.
public override | relayout `relayout() as Void:` | No summary.
public override | render `render(painter as Painter) as Void:` | No summary.
public override | setBounds `setBounds(x as Int, y as Int, width as Int, height as Int) as Void:` | No summary.

Methods inherited from Window: applyLayout, capture, capture, centerIn, close, relayout, render, repaint, run, show, theme
Methods inherited from Widget: blur, containsPoint, paint, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds