Skip to main content

dispatch_gated_event

Function dispatch_gated_event 

pub fn dispatch_gated_event<W>(
    ctx: &PermissionContext,
    widget: &W,
    dispatch: impl FnOnce(),
) -> bool
where W: Widget + ?Sized,
Expand description

Mutating events should route through this so denied interactions short-circuit before the widget ever observes them.