#[repr(C)]pub struct SDL_WindowEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub windowID: SDL_WindowID,
pub data1: Sint32,
pub data2: Sint32,
}Expand description
Window state change event data (event.window.*)
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventTypeSDL_EVENT_WINDOW_*
reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowIDThe associated window
data1: Sint32event dependent data
data2: Sint32event dependent data
Trait Implementations§
Source§impl Clone for SDL_WindowEvent
impl Clone for SDL_WindowEvent
Source§fn clone(&self) -> SDL_WindowEvent
fn clone(&self) -> SDL_WindowEvent
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_WindowEvent
impl Debug for SDL_WindowEvent
Source§impl Default for SDL_WindowEvent
impl Default for SDL_WindowEvent
Source§fn default() -> SDL_WindowEvent
fn default() -> SDL_WindowEvent
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_WindowEvent
impl Hash for SDL_WindowEvent
Source§impl PartialEq for SDL_WindowEvent
impl PartialEq for SDL_WindowEvent
impl Copy for SDL_WindowEvent
impl Eq for SDL_WindowEvent
impl StructuralPartialEq for SDL_WindowEvent
Auto Trait Implementations§
impl Freeze for SDL_WindowEvent
impl RefUnwindSafe for SDL_WindowEvent
impl Send for SDL_WindowEvent
impl Sync for SDL_WindowEvent
impl Unpin for SDL_WindowEvent
impl UnwindSafe for SDL_WindowEvent
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