pub enum Event {
AudioOutputDeviceAdded,
AudioOutputDeviceRemoved,
AudioCaptureDeviceAdded,
AudioCaptureDeviceRemoved,
ControllerAxisMotion {
axis_id: u32,
axis: Vec2<i32>,
},
ControllerButtonPressed {
controller_id: u32,
button: u32,
},
ControllerButtonReleased {
controller_id: u32,
button: u32,
},
ControllerTrackballMotion {
controller_id: u32,
ball_index: u8,
motion: Vec2<i32>,
},
ControllerAdded {
controller_id: u32,
},
ControllerRemoved {
controller_id: u32,
},
ControllerRemapped {
controller_id: u32,
},
DollarGesture {
touch_device_id: u32,
gesture_id: u32,
finger_count: u8,
error: f32,
normalized_center: Vec2<f32>,
},
DragAndDropBegin,
DragAndDropCancel,
DragAndDropFile {
file_path: String,
},
DragAndDropText {
text: String,
},
DragAndDropRawData {
text: Vec<u8>,
},
FingerPressed {
touch_id: u32,
finger_id: u32,
normalized_position: Vec2<f32>,
pressure: f32,
},
FingerReleased {
touch_id: u32,
finger_id: u32,
normalized_position: Vec2<f32>,
pressure: f32,
},
FingerMotion {
touch_id: u32,
finger_id: u32,
normalized_motion: Vec2<f32>,
pressure: f32,
},
KeyPressed {
window_id: Option<u32>,
is_repeat: bool,
vkey: VKey,
key: Key,
},
KeyReleased {
window_id: Option<u32>,
is_repeat: bool,
vkey: VKey,
key: Key,
},
MouseButtonPressed {
window_id: Option<u32>,
mouse: u32,
click: Click,
button: MouseButton,
},
MouseButtonReleased {
window_id: Option<u32>,
mouse: u32,
click: Click,
button: MouseButton,
},
MouseMotion {
window_id: Option<u32>,
mouse: u32,
new_position: Vec2<i32>,
},
MouseScroll {
window_id: Option<u32>,
mouse: u32,
scroll: Vec2<i32>,
},
MultiGesture {
touch_id: u32,
theta: f32,
dist: f32,
normalized_center: Vec2<f32>,
finger_count: u8,
},
WindowShown {
window_id: u32,
},
WindowHidden {
window_id: u32,
},
WindowShouldRedrawItself {
window_id: u32,
},
WindowMoved {
window_id: u32,
position: Extent2<u32>,
},
WindowResized {
window_id: u32,
size: Extent2<u32>,
by_user: bool,
},
WindowMinimized {
window_id: u32,
},
WindowMaximized {
window_id: u32,
},
WindowRestored {
window_id: u32,
},
WindowGainedMouseFocus {
window_id: u32,
},
WindowLostMouseFocus {
window_id: u32,
},
WindowGainedKeyboardFocus {
window_id: u32,
},
WindowLostKeyboardFocus {
window_id: u32,
},
WindowCloseRequested {
window_id: u32,
},
Quit,
AppTerminating,
AppLowMemory,
AppEnteringBackground,
AppEnteredBackground,
AppEnteringForeground,
AppEnteredForeground,
KeymapChanged,
ClipboardChanged,
RenderTargetReset,
DisplayLost,
TextInput,
}
Variants
AudioOutputDeviceAdded
AudioOutputDeviceRemoved
AudioCaptureDeviceAdded
AudioCaptureDeviceRemoved
ControllerAxisMotion
Fields of ControllerAxisMotion
ControllerButtonPressed
Fields of ControllerButtonPressed
ControllerButtonReleased
Fields of ControllerButtonReleased
ControllerTrackballMotion
Fields of ControllerTrackballMotion
ControllerAdded
Fields of ControllerAdded
ControllerRemoved
Fields of ControllerRemoved
ControllerRemapped
Fields of ControllerRemapped
DollarGesture
Fields of DollarGesture
DragAndDropBegin
DragAndDropCancel
DragAndDropFile
Fields of DragAndDropFile
DragAndDropText
Fields of DragAndDropText
DragAndDropRawData
Fields of DragAndDropRawData
FingerPressed
Fields of FingerPressed
FingerReleased
Fields of FingerReleased
FingerMotion
Fields of FingerMotion
KeyPressed
Fields of KeyPressed
KeyReleased
Fields of KeyReleased
MouseButtonPressed
Fields of MouseButtonPressed
MouseButtonReleased
Fields of MouseButtonReleased
MouseMotion
Fields of MouseMotion
MouseScroll
Fields of MouseScroll
MultiGesture
Fields of MultiGesture
WindowShown
Fields of WindowShown
WindowHidden
Fields of WindowHidden
WindowShouldRedrawItself
Fields of WindowShouldRedrawItself
WindowMoved
Fields of WindowMoved
WindowResized
Fields of WindowResized
WindowMinimized
Fields of WindowMinimized
WindowMaximized
Fields of WindowMaximized
WindowRestored
Fields of WindowRestored
WindowGainedMouseFocus
Fields of WindowGainedMouseFocus
WindowLostMouseFocus
Fields of WindowLostMouseFocus
WindowGainedKeyboardFocus
Fields of WindowGainedKeyboardFocus
WindowLostKeyboardFocus
Fields of WindowLostKeyboardFocus
WindowCloseRequested
Fields of WindowCloseRequested
Quit
AppTerminating
AppLowMemory
AppEnteringBackground
AppEnteredBackground
AppEnteringForeground
AppEnteredForeground
KeymapChanged
ClipboardChanged
RenderTargetReset
DisplayLost
TextInput
The text input buffer was updated ! Use get_text_input_buffer().
Trait Implementations
Formats the value using the given formatter.
fn eq(&self, __arg_0: &Event) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
This method tests for !=
.