DockDragController
Handles drag-and-drop interactions for docking tabs within DockingRoot, computing drop previews, live tear-offs, and docking intents.
Overview
DockDragController manages pointer drag gestures across docking tabs.
It computes hit tests against dock nodes, detects tear-offs when dragging outside dock bounds, evaluates cross-docking zones, and produces DockDropIntent previews.
Related links
- DockDropIntent: Resolved docking drop intention capturing the target area, preview bounds, and source/target pane identifiers.
- DockingRoot: Root visual widget for the IDE docking system hosting dock tree nodes, tab strips, split handles, drop previews, and tear-off floating window integrations.
API
DockDragController::active()
Returns true if a drag gesture is currently active or pressed.
Returns boolean: True if a drag gesture is currently underway..
DockDragController::dragThreshold()
Returns the drag activation threshold in pixels.
Returns float: The movement threshold in pixels before drag starts..
DockDragController::dragThreshold(float)
Sets the minimum movement threshold in pixels before drag initiates.
| Parameter | Type | Description |
|---|---|---|
dragThreshold |
float |
Drag threshold in pixels before initiating tab drag. |
Returns DockDragController: This controller for method chaining..
DockDragController::dragging()
Returns true if the drag gesture has exceeded the threshold and is actively dragging.
Returns boolean: True if dragging beyond the movement threshold..
DockDragController::paneId()
Returns the identifier of the dock pane currently being dragged.
Returns String: The identifier of the pane being dragged..
DockDragController::pointerId()
Returns the active pointer identifier.
Returns int: The active pointer identifier..
DockDragController::previewIntent()
Returns the current drop preview intent.
Returns DockDropIntent: The current resolved drop intent..