Skip to main content

WindowHandler

Trait WindowHandler 

Source
pub trait WindowHandler {
    // Required methods
    fn on_frame(&mut self, window: &mut Window<'_>);
    fn on_event(&mut self, window: &mut Window<'_>, event: Event) -> EventStatus;
}

Required Methods§

Source

fn on_frame(&mut self, window: &mut Window<'_>)

Source

fn on_event(&mut self, window: &mut Window<'_>, event: Event) -> EventStatus

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<State, U> WindowHandler for EguiWindow<State, U>
where State: 'static + Send, U: FnMut(&mut Ui, &mut Queue<'_>, &mut State) + 'static + Send,