[−][src]Type Definition rubrail::SliderCb
type SliderCb = Box<dyn Fn(&ItemId, f64)>;
A callback that is called when the value of a slide on a Touch Bar changes
'SliderCb' is expected to be a Boxed closure, and it receives the ItemId
of the slider that changed, and the new value of the slider as a float.
Arguments
- first -
ItemId
of the slider that was changed - second - Current value of the slider