[][src]Struct native_windows_gui::TextInputT

pub struct TextInputT<S1: Clone + Into<String>, S2: Clone + Into<String>, ID: Hash + Clone> {
    pub text: S1,
    pub position: (i32, i32),
    pub size: (u32, u32),
    pub visible: bool,
    pub disabled: bool,
    pub readonly: bool,
    pub password: bool,
    pub placeholder: Option<S2>,
    pub limit: u32,
    pub parent: ID,
    pub font: Option<ID>,
}

A template that creates a single line textinput control

Events:
Event::Destroyed, Event::Focus, Event::Char, Event::KeyDown, Event::KeyUp, Event::MouseDown, Event::MouseUp, Event::ValueChanged, Event::Moved, Event::Resized, Event::Raw

Members:
text: The text of the textinput
position: The start position of the textinput
size: The start size of the textinput
visible: If the textinput should be visible to the user
disabled: If the user can or can't click on the textinput
readonly: If the user can copty the text but can't edit the textinput content
password: If the textinput should hide its content
placeholder: Some text that is displayed when the actual value is empty
limit: The maximum number of characters that the control can hold
parent: The textinput parent
font: The textinput font. If None, use the system default

Fields

text: S1position: (i32, i32)size: (u32, u32)visible: booldisabled: boolreadonly: boolpassword: boolplaceholder: Option<S2>limit: u32parent: IDfont: Option<ID>

Trait Implementations

impl<S1: Clone + Into<String>, S2: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for TextInputT<S1, S2, ID>[src]

impl<S1: Clone + Clone + Into<String>, S2: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for TextInputT<S1, S2, ID>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<S1, S2, ID> Send for TextInputT<S1, S2, ID> where
    ID: Send,
    S1: Send,
    S2: Send

impl<S1, S2, ID> Sync for TextInputT<S1, S2, ID> where
    ID: Sync,
    S1: Sync,
    S2: Sync

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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

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