#[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.*)
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: SDL_EventType< SDL_EVENT_WINDOW_*
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowID< The associated window
data1: Sint32< event dependent data
data2: Sint32< event 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§impl Hash for SDL_WindowEvent
impl Hash for SDL_WindowEvent
impl Copy 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 UnsafeUnpin 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