Struct kiss_ui::text::Label
[−]
[src]
pub struct Label(_);
A static widget that renders text within its parent.
Methods
impl Label
fn new<S: Into<String>>(text: S) -> Label
Create a label with some text.
fn new_empty() -> Label
Create a blank label. The text can be set later.
fn set_text(self, text: &str) -> Self
Update the text of this label.
Panics
If any WidgetStr
instances from self.get_text()
are still reachable.
fn get_text(&self) -> WidgetStr
Get the text of this label.