klyn.gui.windows.DockBar.toggleAt
method
public toggleAt(x as Int, y as Int) as Boolean:
Description

Toggles the pane button located at x, y.

This method is intentionally public so DockWorkspace can route clicks to dock bars even when a native backend hit-tests the workspace instead of the bar itself.

Parameters
ParameterDescription
xWindow-client x coordinate.
yWindow-client y coordinate.
Returns

True when a pane button was hit and toggled.

Example
if bar.toggleAt(mouseX, mouseY):
print("pane toggled")