Back to API Reference
Interface

ISelectionHandles

abstract
Implements:ITouchHandles

Selection-handle capability on touch platforms: two draggable endpoints the user moves to adjust selection boundaries. The entity owns its presentation; the editable only drives it.

Remarks

Show is called when a selection is established, UpdatePositions while it remains visible, and Hide when the selection collapses or focus is lost.

Implementations(1)

Types that implement ISelectionHandles.

public abstract void Show()

Shows both selection endpoints.

public abstract void Hide()

Hides both selection endpoints.

public abstract void UpdatePositions()

Updates both endpoints from the current owner state.

public Action<Vector2> AnchorDragged

Occurs when the user is dragging the anchor handle. The parameter is the drag position in screen coordinates, to be hit-tested into the new anchor codepoint.

public Action<Vector2> FocusDragged

Occurs when the user is dragging the focus handle. The parameter is the drag position in screen coordinates, to be hit-tested into the new focus codepoint.

public Action SelectionHandleDragStarted

Occurs when a selection-handle drag begins (either handle) — a cue to hide transient UI such as the context menu for the duration of the drag.

public Action SelectionHandleDragEnded

Occurs when a selection-handle drag ends (either handle).