[−][src]Trait kas::class::HasText
Functionality for widgets with visible text.
This applies to both labels and the text content of interactive widgets.
The only widgets supporting both labels and interactive content have
boolean values (e.g. checkboxes); these may support both HasText
and
HasBool
.
Required methods
fn get_text(&self) -> &str
Get the widget's text.
fn set_cow_string(&mut self, text: CowString) -> TkAction
Set the widget's text (CowString
)
This method is for implementation. It is recommended to use
HasText::set_text
instead.
Provided methods
fn set_text<T: Into<CowString>>(&mut self, text: T) -> TkAction where
Self: Sized,
Self: Sized,
Set the widget's text.