Expand description
Selection gestures provide a reusable state machine for turning UI pointer interactions into selection snapshots.
A caller creates one Gesture per active gesture stream, reuses typed
gesture event objects for synthetic press, drag,
release, autoscroll tick,
and deep-press events, and applies each event with
their respective apply method (e.g. PressEvent::apply). The returned
Selection is a snapshot; the embedder decides whether to render it,
format/copy it, or install it as the terminal’s active selection.
Structs§
- Autoscroll
Tick Event - Opaque handle to reusable input data for selection gesture autoscroll tick operations.
- Behaviors
- Selection behaviors for single-, double-, and triple-click gestures.
- Deep
Press Event - Opaque handle to reusable input data for selection gesture deep press operations.
- Drag
Event - Opaque handle to reusable input data for selection gesture drag operations.
- Geometry
- Display geometry used to interpret selection gesture drag events.
- Gesture
- Opaque handle to state for interpreting terminal selection gestures.
- Press
Event - Opaque handle to reusable input data for selection gesture press operations.
- Release
Event - Opaque handle to reusable input data for selection gesture release operations.
Enums§
- Autoscroll
- Current autoscroll direction for an active selection drag gesture.
- Behavior
- Selection behavior chosen for a gesture’s click sequence.