pub enum Event {
MouseEvent(MouseEvent),
KeyboardEvent(KeyboardEvent),
ResizeEvent(u32, u32),
FocusEvent(bool),
JoystickEvent(JoystickEvent),
}Expand description
An enum containing more specific enums.
Variants§
MouseEvent(MouseEvent)
Event is a mouse event
KeyboardEvent(KeyboardEvent)
Event is a keyboard event
ResizeEvent(u32, u32)
The size of the window changed, contains the new size
FocusEvent(bool)
The window got or lost focus. The bool is set to true if the tab has the focus after the modification.
JoystickEvent(JoystickEvent)
Joysticks are unsupported
Trait Implementations§
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