#[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.*)
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventType§reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
which: SDL_MouseIDThe 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§fn default() -> SDL_MouseDeviceEvent
fn default() -> SDL_MouseDeviceEvent
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_MouseDeviceEvent
impl Hash for SDL_MouseDeviceEvent
Source§impl PartialEq for SDL_MouseDeviceEvent
impl PartialEq for SDL_MouseDeviceEvent
impl Copy for SDL_MouseDeviceEvent
impl Eq for SDL_MouseDeviceEvent
impl StructuralPartialEq 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 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