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_line ๐Ÿ”’
ccursor_next_word
ccursor_previous_line ๐Ÿ”’
ccursor_previous_word
char_index_from_byte_index
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_linebreak ๐Ÿ”’
is_word_char
next_line_boundary_char_index ๐Ÿ”’
next_word_boundary_char_index ๐Ÿ”’
select_line_at ๐Ÿ”’
select_word_at ๐Ÿ”’
skip_word ๐Ÿ”’
slice_char_range