[][src]Struct azul_widgets::text_input::TextInputState

pub struct TextInputState {
    pub text: String,
    pub selection: Option<Selection>,
    pub cursor_pos: usize,
}

Fields

text: Stringselection: Option<Selection>cursor_pos: usize

Implementations

impl TextInputState[src]

pub fn new<S: Into<String>>(input: S) -> Self[src]

pub fn with_cursor_pos(self, cursor_pos: usize) -> Self[src]

pub fn with_selection(self, selection: Option<Selection>) -> Self[src]

pub fn handle_on_text_input(
    &mut self,
    keyboard_state: &KeyboardState
) -> CallbackReturn
[src]

pub fn handle_on_virtual_key_down(
    &mut self,
    keyboard_state: &KeyboardState
) -> CallbackReturn
[src]

pub fn delete_selection(
    &mut self,
    selection: Range<usize>,
    new_text: Option<char>
)
[src]

Trait Implementations

impl Clone for TextInputState[src]

impl Debug for TextInputState[src]

impl Default for TextInputState[src]

impl Eq for TextInputState[src]

impl Hash for TextInputState[src]

impl PartialEq<TextInputState> for TextInputState[src]

impl StructuralEq for TextInputState[src]

impl StructuralPartialEq for TextInputState[src]

Auto Trait Implementations

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.