Skip to main content

Module gesture

Module gesture 

Source
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§

AutoscrollTickEvent
Opaque handle to reusable input data for selection gesture autoscroll tick operations.
Behaviors
Selection behaviors for single-, double-, and triple-click gestures.
DeepPressEvent
Opaque handle to reusable input data for selection gesture deep press operations.
DragEvent
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.
PressEvent
Opaque handle to reusable input data for selection gesture press operations.
ReleaseEvent
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.