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