DockBar
class in package klyn.gui.windows

    public class DockBar extends Widget:

Widget
└ DockBar

Fixed side bar that exposes collapsed `DockPane` buttons.

    workspace = DockWorkspace()
    workspace.addPane(DockPane("Chat", chat, DockSide.RIGHT))

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | buttonSize `buttonSize as Int = 52` | Button thickness in pixels before content zoom.
public readonly property | childCount `childCount as ULong:` | Number of pane buttons managed by this dock bar.
public property | iconSize `iconSize as Int = 34` | Icon size in pixels before content zoom.
public property | side `side as String` | Side represented by this bar.

Inherited Properties
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 Widget: keyPressed, keyReleased, mouseMoved, mousePressed, mouseReleased, mouseWheel, paintRequested, resized
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DockBar `DockBar(side as String = DockSide.LEFT):` | Creates a bar for one side.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | addPane `addPane(pane as DockPane) as Void:` | Adds a pane button to the bar.
public override | paint `paint(painter as Painter) as Void:` | No summary.
public | toggleAt `toggleAt(x as Int, y as Int) as Boolean:` | Toggles the pane button located at `x`, `y`.
public | updateHoverAt `updateHoverAt(x as Int, y as Int) as Boolean:` | Updates the hovered pane button from window-client coordinates.

Inherited Methods
method Inherited Methods from Widget: blur, containsPoint, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintClipped, paintOverlay, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds