Add clear function
This commit is contained in:
parent
17a12024bb
commit
8599d7bb0e
1 changed files with 4 additions and 0 deletions
|
@ -344,6 +344,10 @@ impl Button {
|
||||||
self.button_info.set_icon(button, self.visible())
|
self.button_info.set_icon(button, self.visible())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn clear_button_info(&self) -> Result<()> {
|
||||||
|
self.button_info.clear_icon(self.visible())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn text(&self) -> Result<Option<String>> {
|
pub fn text(&self) -> Result<Option<String>> {
|
||||||
self.textable.text()
|
self.textable.text()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue