pub fn dispatch(
events: &[InputEvent],
layout: &Layout,
snapshot: &ParamSnapshot<'_>,
state: &mut InteractionState,
) -> Vec<ParamEdit>Expand description
Route a batch of input events through the widget tree, updating
state in place (hover, drag origins, dropdown open/closed, …) and
returning the sequence of parameter edits they imply.
state.knob_regions must be up to date for the current layout; callers
typically call state.build_regions_any(layout) once after a layout
change. snapshot provides read access to live parameter values.
This does NOT mutate any parameter store. Callers replay the returned
ParamEdits against their host interface.