Struct ambient_api::prelude::Checkbox
source · pub struct Checkbox {
pub value: bool,
pub on_change: Arc<CbDebuggable<dyn Fn(bool) + Sync + Send>>,
}
Expand description
A checkbox.
Fields§
§value: bool
Whether or not the checkbox is checked.
on_change: Arc<CbDebuggable<dyn Fn(bool) + Sync + Send>>
Callback for when the checkbox is toggled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Checkbox
impl Send for Checkbox
impl Sync for Checkbox
impl Unpin for Checkbox
impl !UnwindSafe for Checkbox
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.