public toggleAt(x as Int, y as Int) as Boolean:
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.
| Parameter | Description |
|---|---|
x | Window-client x coordinate. |
y | Window-client y coordinate. |
True when a pane button was hit and toggled.
if bar.toggleAt(mouseX, mouseY):
print("pane toggled")