Type Definition rubrail::SliderCb [] [src]

type SliderCb = Box<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