Struct iced_native::widget::text_input::State[][src]

pub struct State { /* fields omitted */ }

The state of a TextInput.

Implementations

impl State[src]

pub fn new() -> Self[src]

Creates a new State, representing an unfocused TextInput.

pub fn focused() -> Self[src]

Creates a new State, representing a focused TextInput.

pub fn is_focused(&self) -> bool[src]

Returns whether the TextInput is currently focused or not.

pub fn cursor(&self) -> Cursor[src]

Returns the Cursor of the TextInput.

pub fn focus(&mut self)[src]

Focuses the TextInput.

pub fn unfocus(&mut self)[src]

Unfocuses the TextInput.

pub fn move_cursor_to_front(&mut self)[src]

Moves the Cursor of the TextInput to the front of the input text.

pub fn move_cursor_to_end(&mut self)[src]

Moves the Cursor of the TextInput to the end of the input text.

pub fn move_cursor_to(&mut self, position: usize)[src]

Moves the Cursor of the TextInput to an arbitrary location.

Trait Implementations

impl Clone for State[src]

impl Debug for State[src]

impl Default for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,