Struct rich_sdl2_rust::event::mouse::MouseMotionEvent
source · pub struct MouseMotionEvent {
pub timestamp: u32,
pub window_id: u32,
pub mouse_id: u32,
pub button: Option<MouseButton>,
pub pos: Point,
pub move_amount: Point,
}
Expand description
An event that the mouse was moved.
Fields§
§timestamp: u32
When this event occurred.
window_id: u32
The id of the window focused.
mouse_id: u32
The id of the moved.
The button state of the mouse.
pos: Point
The mouse position.
move_amount: Point
The moved amount of the mouse.
Trait Implementations§
source§impl Clone for MouseMotionEvent
impl Clone for MouseMotionEvent
source§fn clone(&self) -> MouseMotionEvent
fn clone(&self) -> MouseMotionEvent
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 MouseMotionEvent
impl Debug for MouseMotionEvent
source§impl From<SDL_MouseMotionEvent> for MouseMotionEvent
impl From<SDL_MouseMotionEvent> for MouseMotionEvent
source§impl PartialEq for MouseMotionEvent
impl PartialEq for MouseMotionEvent
source§fn eq(&self, other: &MouseMotionEvent) -> bool
fn eq(&self, other: &MouseMotionEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MouseMotionEvent
impl StructuralPartialEq for MouseMotionEvent
Auto Trait Implementations§
impl RefUnwindSafe for MouseMotionEvent
impl Send for MouseMotionEvent
impl Sync for MouseMotionEvent
impl Unpin for MouseMotionEvent
impl UnwindSafe for MouseMotionEvent
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