pub enum EventData {
Pointer {
x: f32,
y: f32,
button: u8,
pressure: f32,
},
Key {
key: KeyCode,
modifiers: Modifiers,
repeat: bool,
},
TextInput {
text: String,
},
Clipboard {
text: String,
},
Scroll {
delta_x: f32,
delta_y: f32,
},
Resize {
width: u32,
height: u32,
},
None,
}Expand description
Event-specific data
Variants§
Pointer
Key
Fields
TextInput
Text input from keyboard or IME
Clipboard
Clipboard paste data
Scroll
Resize
None
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnsafeUnpin for EventData
impl UnwindSafe for EventData
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