DockBar
classin packageklyn.gui.windows
public class DockBar extends Widget
└ DockBar

Fixed side bar that exposes collapsed DockPane buttons. Expanded buttons use their pane's background and text colors; keyboard focus is indicated by the accent outline rather than an accent fill. Expanded buttons without focus share the selected pane's scrollbar-gray contour. Horizontal buttons are aligned with their pane's leading edge.

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
propertyInherited Properties from Widget: accentColor, acceptFileDrops, backgroundColor, borderColor, bottom, canFocus, cornerRadius, cursor, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isPressed, 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
eventInherited Events from Widget: filesDropped, focusGained, focusLost, 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 removePane
removePane(pane as DockPane) as Boolean
Removes a pane button from this bar.
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
methodInherited Methods from Widget: applyThemeMetrics, blur, containsPoint, emitFilesDropped, emitFocusGained, emitFocusLost, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintClipped, paintForeground, paintOverlay, preferredSizeIncludesContentZoom, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds