pub trait TextInput {
// Required methods
fn move_cursor_to_front(&mut self);
fn move_cursor_to_end(&mut self);
fn move_cursor_to(&mut self, position: usize);
fn select_all(&mut self);
}
Expand description
The internal state of a widget that has text input.
Required Methods§
Sourcefn move_cursor_to_front(&mut self)
fn move_cursor_to_front(&mut self)
Moves the cursor of the text input to the front of the input text.
Sourcefn move_cursor_to_end(&mut self)
fn move_cursor_to_end(&mut self)
Moves the cursor of the text input to the end of the input text.
Sourcefn move_cursor_to(&mut self, position: usize)
fn move_cursor_to(&mut self, position: usize)
Moves the cursor of the text input to an arbitrary location.
Sourcefn select_all(&mut self)
fn select_all(&mut self)
Selects all the content of the text input.