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 duplicate 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§fn from(raw: SDL_MouseMotionEvent) -> Self
fn from(raw: SDL_MouseMotionEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseMotionEvent
impl PartialEq for MouseMotionEvent
impl Eq for MouseMotionEvent
impl StructuralPartialEq for MouseMotionEvent
Auto Trait Implementations§
impl Freeze for MouseMotionEvent
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