pub trait Visible {
// Required methods
fn is_visible(&self) -> bool;
fn set_visible(&mut self, v: bool);
// Provided methods
fn show(&mut self) { ... }
fn hide(&mut self) { ... }
}Expand description
Trait for a widget to set visibility.
Required Methods§
Sourcefn is_visible(&self) -> bool
fn is_visible(&self) -> bool
If the widget is visible.
Sourcefn set_visible(&mut self, v: bool)
fn set_visible(&mut self, v: bool)
Set the visibility.