InputExt

Trait InputExt 

Source
pub trait InputExt: WidgetExt {
Show 14 methods // Provided methods fn value(&self) -> String { ... } fn set_value(&self, s: &str) { ... } fn placeholder(&self) -> String { ... } fn set_placeholder(&self, s: &str) { ... } fn readonly(&self) -> bool { ... } fn set_readonly(&self, val: bool) { ... } fn set_text_color(&self, color: Color) { ... } fn text_color(&self) -> Color { ... } fn set_text_size(&self, size: u8) { ... } fn text_size(&self) -> u8 { ... } fn set_text_font(&self, font: &str) { ... } fn text_font(&self) -> String { ... } fn set_text_align(&self, align: TextAlign) { ... } fn set_direction(&self, dir: Direction) { ... }
}

Provided Methods§

Source

fn value(&self) -> String

Source

fn set_value(&self, s: &str)

Source

fn placeholder(&self) -> String

Source

fn set_placeholder(&self, s: &str)

Source

fn readonly(&self) -> bool

Source

fn set_readonly(&self, val: bool)

Source

fn set_text_color(&self, color: Color)

Sets the widget’s color

Source

fn text_color(&self) -> Color

Returns the widget’s label color

Source

fn set_text_size(&self, size: u8)

Source

fn text_size(&self) -> u8

Source

fn set_text_font(&self, font: &str)

Source

fn text_font(&self) -> String

Source

fn set_text_align(&self, align: TextAlign)

Source

fn set_direction(&self, dir: Direction)

Implementors§