Module selection

Source
Expand description

Selection ranges and paint geometry. Syntax-aware selection ranges and visual selection rectangles.

Enums§

SelectionGranularity
Unit chosen for a pointer-driven selection gesture.

Functions§

select_line_at
Returns the logical line containing a UTF-8 byte offset, excluding \n.
select_token_at
Returns the first selectable syntax-token range containing byte.
select_word_at
Selects a syntax token or ASCII lexical word around a UTF-8 byte offset.
selection_rects_for_run
Builds viewport-space rectangles for a run-local byte selection.