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§
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)
Sourcefn set_text_color(&self, color: Color)
fn set_text_color(&self, color: Color)
Sets the widget’s color
Sourcefn text_color(&self) -> Color
fn text_color(&self) -> Color
Returns the widget’s label color