[−][src]Struct basalt::interface::checkbox::CheckBox
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,