Trait kas_core::classes::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§