[][src]Trait kas::class::HasBool

pub trait HasBool {
    fn get_bool(&self) -> bool;
fn set_bool(&mut self, state: bool) -> TkAction; }

Functionality for widgets which can be toggled or selected: check boxes, radio buttons, toggle switches.

The value true means checked, selected or toggled on.

Required methods

fn get_bool(&self) -> bool

Get the widget's state

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

Set the widget's state

Loading content...

Implementors

impl<M: 'static> HasBool for CheckBox<M>[src]

impl<M: 'static> HasBool for CheckBoxBare<M>[src]

impl<M: 'static> HasBool for MenuToggle<M>[src]

impl<M: 'static> HasBool for RadioBox<M>[src]

impl<M: 'static> HasBool for RadioBoxBare<M>[src]

impl<W: HasBool + Widget> HasBool for Frame<W>[src]

impl<W: HasBool + Widget> HasBool for MenuFrame<W>[src]

Loading content...