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.

Inherited Properties
property Inherited Properties from Window: appearanceMode, frame, title
property Inherited Properties from Widget: accentColor, backgroundColor, borderColor, bottom, canFocus, cornerRadius, cursor, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isTabStop, isVisible, layoutParams, margin, maxHeight, maxWidth, minHeight, minWidth, parent, preferredHeight, preferredWidth, resolvedStyleCache, resolvedStyleCacheAppearanceMode, resolvedStyleCacheFont, resolvedStyleCacheRevision, resolvedStyleCacheStateKey, resolvedStyleCacheStyleClass, resolvedStyleCacheZoomRevision, right, size, sizePolicy, styleClass, toolTip, width, window, x, y
Inherited Events
event Inherited Events from Window: closed
event Inherited Events from Widget: keyPressed, keyReleased, mouseMoved, mousePressed, mouseReleased, mouseWheel, paintRequested, resized
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 | applyTheme `applyTheme(mode as String = null) as Void:` | Applies the active KSS theme to the complete window tree.
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.

Inherited Methods
method Inherited Methods from Window: adjustContentZoom, adjustFontZoom, applyContentZoom, applyLayout, applyNativeFrame, applyTheme, capture, capture, centerIn, close, copyToClipboard, emitClosed, readFromClipboard, relayout, render, repaint, repaintWidget, resetContentZoom, resetFontZoom, run, show, simulateMouseClick, simulateMousePressed, simulateMouseReleased, syncContentZoomSize, theme
method Inherited Methods from Widget: blur, containsPoint, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintClipped, paintOverlay, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds