pub struct PointerEvent {
pub x: u16,
pub y: u16,
pub button: PointerButton,
pub down: bool,
}
Expand description
A mouse pointer event
Fields§
§x: u16
horizontal position from top left angle of the window
y: u16
vertical position from top left angle of the window
Which button is pressed
down: bool
true if it’s a down press action
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnwindSafe for PointerEvent
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