Skip to main content

OnToggleCallbackType

Type Alias OnToggleCallbackType 

Source
pub type OnToggleCallbackType = Option<Box<dyn FnMut(&mut CheckboxWidget, &[WidgetContainer], &[LayoutContainer], bool)>>;
Expand description

This is the callback type that is used when an on_toggle callback is triggered from this Widget.

Aliased Type§

pub enum OnToggleCallbackType {
    None,
    Some(Box<dyn FnMut(&mut CheckboxWidget, &[WidgetContainer], &[LayoutContainer], bool)>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<dyn FnMut(&mut CheckboxWidget, &[WidgetContainer], &[LayoutContainer], bool)>)

Some value of type T.