DockBar
classin packageklyn.gui.windows
public class DockBar extends 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 = 42
Button thickness in pixels.
public property side
side as String
Side represented by this bar.
public readonly property size
size as ULong:
Number of pane buttons.
Inherited Properties
propertyInherited Properties from Widget: accentColor, backgroundColor, borderColor, bottom, canFocus, cornerRadius, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isTabStop, isVisible, layoutParams, margin, maxHeight, maxWidth, minHeight, minWidth, parent, preferredHeight, preferredWidth, right, sizePolicy, styleClass, width, window, x, y
Inherited Events
eventInherited 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.
Inherited Methods
methodInherited Methods from Widget: blur, containsPoint, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintOverlay, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds