Enum pixel_widgets::event::Event [−][src]
pub enum Event {
Press(Key),
Release(Key),
Modifiers(Modifiers),
Resize(f32, f32),
Motion(f32, f32),
Cursor(f32, f32),
Scroll(f32, f32),
Text(char),
Focus(bool),
Exit,
}
Expand description
A user input event.
Variants
Press(Key)
A button on some input device was pressed.
Tuple Fields of Press
0: Key
Release(Key)
A button on some input device was released.
Tuple Fields of Release
0: Key
Modifiers(Modifiers)
Modifiers were changed.
Tuple Fields of Modifiers
0: Modifiers
The window was resized to the given dimensions.
Some motion input was received (e.g. moving mouse or joystick axis).
The mouse cursor was moved to a location.
The mouse wheel or touchpad scroll gesture sent us some scroll event.
Text(char)
Text input was received, usually via the keyboard.
Tuple Fields of Text
0: char
Focus(bool)
The window was focused or lost focus.
Tuple Fields of Focus
0: bool
The application exited it’s main event loop
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more