pub enum Event {
PointerMove {
position: Point,
},
PointerDown {
position: Point,
button: PointerButton,
},
PointerUp {
position: Point,
button: PointerButton,
},
PointerLeave,
Wheel {
position: Point,
delta: Point,
},
KeyDown {
key: Key,
modifiers: Modifiers,
},
KeyUp {
key: Key,
modifiers: Modifiers,
},
Text(String),
}Expand description
Something the user did.
Variants§
PointerMove
PointerDown
PointerUp
PointerLeave
The pointer left the window.
Wheel
KeyDown
KeyUp
Text(String)
Text produced by a key press, after the platform’s input method has
had its say. This is what text fields insert; KeyDown is for
shortcuts and navigation.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin 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