[][src]Struct basalt::interface::checkbox::CheckBox

pub struct CheckBox {
    pub basalt: Arc<Basalt>,
    pub inner_box: Arc<Bin>,
    pub outer_box: Arc<Bin>,
    // some fields omitted
}

Fields

basalt: Arc<Basalt>inner_box: Arc<Bin>outer_box: Arc<Bin>

Methods

impl CheckBox[src]

pub fn is_checked(&self) -> bool[src]

pub fn set(&self, check: bool)[src]

pub fn check(&self)[src]

pub fn uncheck(&self)[src]

pub fn toggle(&self)[src]

pub fn on_change(&self, func: Arc<dyn Fn(bool) + Send + Sync>)[src]

pub fn new(basalt: Arc<Basalt>) -> Arc<Self>[src]

Trait Implementations

impl KeepAlive for CheckBox[src]

Simple checkbox. Provides a change hook and the ability to get the state. When checked, the inner box is set to being visible and vise versa.

Auto Trait Implementations

impl Unpin for CheckBox

impl Sync for CheckBox

impl Send for CheckBox

impl !UnwindSafe for CheckBox

impl !RefUnwindSafe for CheckBox

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Content for T[src]

impl<T> SafeBorrow<T> for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> SetParameter for T