[][src]Struct makepad_widget::TextInput

pub struct TextInput {
    pub text_editor: TextEditor,
    pub text_buffer: TextBuffer,
    pub empty_message: String,
}

Fields

text_editor: TextEditortext_buffer: TextBufferempty_message: String

Methods

impl TextInput[src]

pub fn proto(cx: &mut Cx, opt: TextInputOptions) -> Self[src]

pub fn style_text_input() -> StyleId[src]

pub fn style(cx: &mut Cx, _opt: &StyleOptions)[src]

pub fn handle_text_input(
    &mut self,
    cx: &mut Cx,
    event: &mut Event
) -> TextEditorEvent
[src]

pub fn set_value(&mut self, cx: &mut Cx, text: &str)[src]

pub fn get_value(&self) -> String[src]

pub fn draw_text_input_static(&mut self, cx: &mut Cx, text: &str)[src]

pub fn draw_text_input(&mut self, cx: &mut Cx)[src]

Trait Implementations

impl Clone for TextInput[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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