Enum nannou::event::Event
[−]
[src]
pub enum Event { WindowEvent { id: Id, raw: WindowEvent, simple: Option<SimpleWindowEvent>, }, DeviceEvent(DeviceId, DeviceEvent), Update(Update), Awakened, Suspended(bool), }
Variants
WindowEvent
A window-specific event has occurred for the window with the given Id.
This event is portrayed both in its "raw" form (the glutin::WindowEvent) and its simplified, new-user-friendly form SimpleWindowEvent.
Fields of WindowEvent
id: Id | |
raw: WindowEvent | |
simple: Option<SimpleWindowEvent> |
DeviceEvent(DeviceId, DeviceEvent)
A device-specific event has occurred for the device with the given Id.
Update(Update)
A timed update alongside the duration since the last update was emitted.
The first update's delta will be the time since the model
function returned.
Awakened
The application has been awakened.
Suspended(bool)
The application has been suspended or resumed.
The parameter is true if app was suspended, and false if it has been resumed.
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl LoopEvent for Event
[src]
fn from_glutin_event(event: Event, app: &App) -> Option<Self>
[src]
Convert the given glutin::Event
to a nannou Event
.