Trait iced_core::widget::operation::text_input::TextInput

source ·
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§

source

fn move_cursor_to_front(&mut self)

Moves the cursor of the text input to the front of the input text.

source

fn move_cursor_to_end(&mut self)

Moves the cursor of the text input to the end of the input text.

source

fn move_cursor_to(&mut self, position: usize)

Moves the cursor of the text input to an arbitrary location.

source

fn select_all(&mut self)

Selects all the content of the text input.

Implementors§