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§