Trait sdl2::event::EventWatchCallback

source ·
pub trait EventWatchCallback {
    // Required method
    fn callback(&mut self, event: Event);
}
Expand description

A callback trait for [EventSubsystem::add_event_watch].

Required Methods§

source

fn callback(&mut self, event: Event)

Implementors§