Skip to main content

OnValueChangedCallbackType

Type Alias OnValueChangedCallbackType 

Source
pub type OnValueChangedCallbackType = Option<Box<dyn FnMut(&mut SliderWidget, &[WidgetContainer], &[LayoutContainer], u32)>>;
Expand description

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

Aliased Type§

pub enum OnValueChangedCallbackType {
    None,
    Some(Box<dyn FnMut(&mut SliderWidget, &[WidgetContainer], &[LayoutContainer], u32)>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<dyn FnMut(&mut SliderWidget, &[WidgetContainer], &[LayoutContainer], u32)>)

Some value of type T.