[][src]Struct azul_widgets::text_input::TextInput

pub struct TextInput {
    pub on_text_input: Callback,
    pub on_virtual_key_down: Callback,
    pub state: Ref<TextInputState>,
}

Fields

on_text_input: Callbackon_virtual_key_down: Callbackstate: Ref<TextInputState>

Implementations

impl TextInput[src]

pub fn new(state: Ref<TextInputState>) -> Self[src]

pub fn with_state(self, state: Ref<TextInputState>) -> Self[src]

pub fn on_text_input(self, callback: Callback) -> Self[src]

pub fn on_virtual_key_down(self, callback: Callback) -> Self[src]

pub fn dom(self) -> Dom[src]

pub fn default_on_text_input(info: CallbackInfo) -> CallbackReturn[src]

pub fn default_on_virtual_key_down(info: CallbackInfo) -> CallbackReturn[src]

Trait Implementations

impl Clone for TextInput[src]

impl Debug for TextInput[src]

impl Default for TextInput[src]

impl Eq for TextInput[src]

impl Hash for TextInput[src]

impl Into<Dom> for TextInput[src]

impl PartialEq<TextInput> for TextInput[src]

impl StructuralEq for TextInput[src]

impl StructuralPartialEq for TextInput[src]

Auto Trait Implementations

impl !RefUnwindSafe for TextInput

impl !Send for TextInput

impl !Sync for TextInput

impl Unpin for TextInput

impl !UnwindSafe for TextInput

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.