Enum show_image::event::Event
source · pub enum Event {
NewEvents,
WindowEvent(WindowEvent),
DeviceEvent(DeviceEvent),
Suspended,
Resumed,
MainEventsCleared,
RedrawEventsCleared,
AllWindowsClosed,
}
Expand description
Global event.
This also includes window events for all windows.
Variants§
NewEvents
New events are available for processing.
This indicates the start of a new event-processing cycle.
WindowEvent(WindowEvent)
A window event.
DeviceEvent(DeviceEvent)
A device event.
Suspended
The application has been suspended.
Resumed
The application has been resumed.
MainEventsCleared
All input events have been processed and redraw processing is about to begin.
RedrawEventsCleared
All open redraw requests have been processed.
AllWindowsClosed
All windows were closed.
This event can be received multiple times if you open a new window after all windows were closed.
Trait Implementations§
source§impl From<DeviceEvent> for Event
impl From<DeviceEvent> for Event
source§fn from(other: DeviceEvent) -> Self
fn from(other: DeviceEvent) -> Self
Converts to this type from the input type.
source§impl From<WindowEvent> for Event
impl From<WindowEvent> for Event
source§fn from(other: WindowEvent) -> Self
fn from(other: WindowEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more