pub struct Event {
pub typ: u8,
pub btn: u8,
pub mods: u8,
pub win: u8,
pub x: i32,
pub y: i32,
pub data: u32,
}Expand description
one platform event (the EV_* record): type, button, modifiers, window index (0 = the main window), position (px; E_RESIZE: size), data
Fields§
§typ: u8§btn: u8§mods: u8§win: u8§x: i32§y: i32§data: u32Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
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