pub enum Event {
Key {
keycode: u16,
hold: bool,
},
KeyUp {
keycode: u16,
},
Other(String),
MouseClick {
key: u8,
x: u16,
y: u16,
},
MouseUp {
key: u8,
x: u16,
y: u16,
},
MouseDrag {
key: u8,
x: u16,
y: u16,
},
MouseScroll {
direction: i8,
x: u16,
y: u16,
},
MonitorTouch {
side: Side,
x: u16,
y: u16,
},
}
Variants§
Trait Implementations§
Source§impl Ord for Event
impl Ord for Event
Source§impl PartialOrd for Event
impl PartialOrd for Event
impl Eq for Event
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> MutableInit for T
impl<T> MutableInit for T
Source§fn mutable_init<F>(self, f: F) -> T
fn mutable_init<F>(self, f: F) -> T
a method takes an owned value, changes it in a closure, then return it; Read more