Skip to main content

dispatch_native_platform_event

Function dispatch_native_platform_event 

Source
pub fn dispatch_native_platform_event<E>(
    event: &PlatformEvent,
    runtime: &mut AppRuntime,
    compositor: &mut SwapchainCompositor,
    presenter: &mut SoftwareSurfacePresenter,
    event_handler: &mut E,
) -> (bool, bool, bool)
where E: FnMut(&PlatformEvent, &mut AppRuntime) -> bool,
Expand description

Dispatches a native platform event into the AppRuntime, updating geometry, focus, input, and styling. Returns (needs_rebuild, needs_redraw, should_exit).