Enum nannou::event::Event [−][src]
pub enum Event { WindowEvent { id: Id, raw: WindowEvent, simple: Option<SimpleWindowEvent>, }, DeviceEvent(DeviceId, DeviceEvent), Update(Update), Awakened, Suspended(bool), }
The default application Event type.
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]
impl Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl LoopEvent for Event
[src]
impl LoopEvent for Event
fn from_glutin_event(event: Event, app: &App) -> Option<Self>
[src]
fn from_glutin_event(event: Event, app: &App) -> Option<Self>
Convert the given glutin::Event
to a nannou Event
.
impl From<Update> for Event
[src]
impl From<Update> for Event