#[repr(C)]pub struct SDL_MouseDeviceEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub which: SDL_MouseID,
}Expand description
Mouse device event structure (event.mdevice.*)
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: SDL_EventType< SDL_EVENT_MOUSE_ADDED or SDL_EVENT_MOUSE_REMOVED
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
which: SDL_MouseID< The mouse instance id
Trait Implementations§
Source§impl Clone for SDL_MouseDeviceEvent
impl Clone for SDL_MouseDeviceEvent
Source§fn clone(&self) -> SDL_MouseDeviceEvent
fn clone(&self) -> SDL_MouseDeviceEvent
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 SDL_MouseDeviceEvent
impl Debug for SDL_MouseDeviceEvent
Source§impl Default for SDL_MouseDeviceEvent
impl Default for SDL_MouseDeviceEvent
Source§impl Hash for SDL_MouseDeviceEvent
impl Hash for SDL_MouseDeviceEvent
impl Copy for SDL_MouseDeviceEvent
Auto Trait Implementations§
impl Freeze for SDL_MouseDeviceEvent
impl RefUnwindSafe for SDL_MouseDeviceEvent
impl Send for SDL_MouseDeviceEvent
impl Sync for SDL_MouseDeviceEvent
impl Unpin for SDL_MouseDeviceEvent
impl UnsafeUnpin for SDL_MouseDeviceEvent
impl UnwindSafe for SDL_MouseDeviceEvent
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