Skip to main content

OnClickedCallbackType

Type Alias OnClickedCallbackType 

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

This is the callback type that is used when an on_click callback is triggered from this Widget. Returns a flag indicating the selected state - toggled on or off.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.