Module text_cursor_state

Source
Expand description

Text cursor changes/interaction, without modifying the text.

Structs§

TextCursorState
The state of a text cursor selection.

Functions§

byte_index_from_char_index
ccursor_next_word
ccursor_previous_word
cursor_rect
The thin rectangle of one end of the selection, e.g. the primary cursor, in local galley coordinates.
find_line_start
Accepts and returns character offset (NOT byte offset!).
is_word_char
slice_char_range