public class WindowTitleBar extends Container
Window-owned host for interactive title-bar content.
A Klyn frame integrates the content beside its caption controls. A native frame integrates it when the platform supports that operation; otherwise the same host is placed below the OS title and above the window menu. WindowFrame and its selected value are never changed by this host.
window = MainWindow("Documents")
window.titleBar.content = Button("New document")
window.show()| Modifier and Type | Member | Description |
|---|---|---|
| public property | contentcontent as Widget |
Custom widget, or null to restore the ordinary window title. |
| public readonly property | isIntegratedisIntegrated as Boolean |
Whether custom content occupies the actual title band. |
| public property | minimumDragWidthminimumDragWidth as Int |
Logical width of the free drag area beside integrated content. |
| public property | showTitleshowTitle as Boolean |
Whether the window title remains beside integrated custom content. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | WindowTitleBar | Creates an empty host. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | _place | Internal frame-layout hook; positions the host and its single child. |
| public override | addadd(widget as Widget) as Void |
Sets the single hosted widget through the Container API. |
| public override | clearclear() as Void |
Clears content through the Container API and updates window geometry. |
| public override | isTitleBarDragRegion | Identifies the unused host background as a window drag region. |
| public override | paintpaint(painter as Painter) as Void |
Clips content before the reserved drag area, including oversized widgets. |
| public override | preferredSizeIncludesContentZoompreferredSizeIncludesContentZoom() as Boolean |
Reports that preferred heights already include the active scale. |
| public override | remove | Removes the hosted widget and restores the normal title band. |
| public override | resolvePreferredHeightresolvePreferredHeight() as Int |
Resolves the host height from its content and the active scale. |
| public override | setBounds | Keeps hosted content within its allocated frame or fallback row. |