Trait aventurine::AventurineEvent
[−]
[src]
pub trait AventurineEvent { fn get_window_event(&self) -> Option<WindowEvent>; fn with_window_event(_: usize, _: WindowEvent) -> Self; }
The E
type passed to topaz::Universe
must implement this trait in order to use
Aventurine with the Universe
.
Required Methods
fn get_window_event(&self) -> Option<WindowEvent>
Get the WindowEvent
associated with the event.
fn with_window_event(_: usize, _: WindowEvent) -> Self
Create an event with an associated WindowEvent
.