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§

source§

impl TextInput for cosmic::widget::text_input::State

source§

impl<P> TextInput for cosmic::iced_widget::text_input::State<P>
where P: Paragraph,