Trait Visible

Source
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§

Source

fn is_visible(&self) -> bool

If the widget is visible.

Source

fn set_visible(&mut self, v: bool)

Set the visibility.

Provided Methods§

Source

fn show(&mut self)

Show the widget.

Source

fn hide(&mut self)

Hide the widget.

Implementors§