[−][src]Struct neutrino::widgets::textinput::TextInputState
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
impl Send for TextInputState
impl Unpin for TextInputState
impl Sync for TextInputState
impl UnwindSafe for TextInputState
impl RefUnwindSafe for TextInputState
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,