[][src]Struct druid::widget::TextBox

pub struct TextBox { /* fields omitted */ }

A widget that allows user text input.

Implementations

impl TextBox[src]

pub const PERFORM_EDIT: Selector<EditAction>[src]

Perform an EditAction. The payload must be an EditAction.

pub fn new() -> TextBox[src]

Create a new TextBox widget

pub fn with_placeholder(self, placeholder: impl Into<String>) -> Self[src]

Builder-style method to set the TextBox's placeholder text.

Trait Implementations

impl Clone for TextBox[src]

impl Debug for TextBox[src]

impl Default for TextBox[src]

impl Widget<String> for TextBox[src]

Auto Trait Implementations

impl RefUnwindSafe for TextBox

impl Send for TextBox

impl Sync for TextBox

impl Unpin for TextBox

impl UnwindSafe for TextBox

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> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.