Raxol
v0.3.0
Search documentation of Raxol
Settings
Raxol.UI.Components.Input.MultiLineInput.TextHelper
(Raxol v0.3.0)
View Source
Helper functions for text and line manipulation in MultiLineInput.
Summary
Functions
calculate_new_position(row, col, inserted_text)
clamp(value, min, max)
delete_selection(state)
handle_backspace_no_selection(state)
handle_delete_no_selection(state)
insert_char(state, char_or_codepoint)
pos_to_index(text_lines, arg)
replace_text_range(lines_list, start_pos_tuple, end_pos_tuple, replacement)
split_and_wrap(text, width, wrap_fun)
split_into_lines(text, width, wrap_mode)
Functions
calculate_new_position(row, col, inserted_text)
clamp(value, min, max)
delete_selection(state)
handle_backspace_no_selection(state)
handle_delete_no_selection(state)
insert_char(state, char_or_codepoint)
pos_to_index(text_lines, arg)
replace_text_range(lines_list, start_pos_tuple, end_pos_tuple, replacement)
split_and_wrap(text, width, wrap_fun)
split_into_lines(text, width, wrap_mode)