[][src]Struct neutrino::widgets::textinput::TextInputState

pub struct TextInputState { /* fields omitted */ }

The state of a TextInput

Fields

value: String
input_type: InputType,
placeholder: String
size: u32
disabled: bool
stretched: bool
style: String

Methods

impl TextInputState[src]

pub fn value(&self) -> &str[src]

Get the value

pub fn input_type(&self) -> &InputType[src]

Get the input_type

pub fn placeholder(&self) -> &str[src]

Get the placeholder

pub fn size(&self) -> u32[src]

Get the size

pub fn disabled(&self) -> bool[src]

Get the disabled flag

pub fn stretched(&self) -> bool[src]

Get the stretched flag

pub fn style(&self) -> &str[src]

Get the style

pub fn set_value(&mut self, value: &str)[src]

Set the value

pub fn set_input_type(&mut self, input_type: InputType)[src]

Set the input_type

pub fn set_placeholder(&mut self, placeholder: &str)[src]

Set the placeholder

pub fn set_size(&mut self, size: u32)[src]

Set the size

pub fn set_disabled(&mut self, disabled: bool)[src]

Set the disabled flag

pub fn set_stretched(&mut self, stretched: bool)[src]

Set the stretched flag

pub fn set_style(&mut self, style: &str)[src]

Set the style

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,