Trait kas::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§

source§

impl<A, W> HasBool for MapAny<A, W>
where W: Widget<Data = ()> + HasBool,

source§

impl<W> HasBool for Reserve<W>
where W: Widget + HasBool,

source§

impl<W> HasBool for Button<W>
where W: Widget + HasBool,

source§

impl<W> HasBool for Frame<W>
where W: Widget + HasBool,

source§

impl<W> HasBool for NavFrame<W>
where W: Widget + HasBool,

source§

impl<W> HasBool for ScrollBarRegion<W>
where W: Widget + HasBool,

source§

impl<W> HasBool for ScrollBars<W>
where W: Scrollable + Widget + HasBool,

source§

impl<W> HasBool for ScrollRegion<W>
where W: Widget + HasBool,