pub struct Event {
pub kind: EventKind,
pub code: u8,
pub x: u16,
pub y: u16,
}Fields§
§kind: EventKind§code: u8Keyboard button ID or mouse button ID.
x: u16Mouse position X, or 0 in case of keyboard event.
y: u16Mouse position Y, or 0 in case of keyboard event.
Trait Implementations§
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