Trait HasBool

Source
pub trait HasBool {
    // Required methods
    fn get_bool(&self) -> bool;
    fn set_bool(&mut self, state: bool) -> Action;
}
Expand description

Read / write a boolean value

The value true means checked, selected or toggled on.

Required Methods§

Source

fn get_bool(&self) -> bool

Get the widget’s state

Source

fn set_bool(&mut self, state: bool) -> Action

Set the widget’s state

Implementors§