Struct event_types::MousePositionEvent
source · pub struct MousePositionEvent {
pub coordinate: Coord,
pub gcoordinate: Coord,
pub scrolling_up: bool,
pub scrolling_down: bool,
pub left_button_hold: bool,
pub right_button_hold: bool,
pub fourth_button_hold: bool,
pub fifth_button_hold: bool,
}
Expand description
An event describing mouse position rather than movement differential from last event.
It contains two position, coodinate
for the relative position in each window, and gcoordinate
for global absolute position of the screen.
Fields§
§coordinate: Coord
the relative position in window
gcoordinate: Coord
the global position in window
scrolling_up: bool
whether the mouse is scrolling up
scrolling_down: bool
whether the mouse is scrolling down
whether the left button holds
whether the right button holds
whether the fourth button holds
whether the fifth button holds
Trait Implementations§
source§impl Clone for MousePositionEvent
impl Clone for MousePositionEvent
source§fn clone(&self) -> MousePositionEvent
fn clone(&self) -> MousePositionEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MousePositionEvent
impl Debug for MousePositionEvent
Auto Trait Implementations§
impl RefUnwindSafe for MousePositionEvent
impl Send for MousePositionEvent
impl Sync for MousePositionEvent
impl Unpin for MousePositionEvent
impl UnwindSafe for MousePositionEvent
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