Struct rich_sdl2_rust::event::window::WindowEvent
source · pub struct WindowEvent {
pub timestamp: u32,
pub window_id: u32,
pub details: WindowEventDetails,
}
Expand description
An event on interacting to the window.
Fields§
§timestamp: u32
When this event occurred.
window_id: u32
The id of the window focused.
details: WindowEventDetails
The kind of the event.
Trait Implementations§
source§impl Clone for WindowEvent
impl Clone for WindowEvent
source§fn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
Returns a copy 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 WindowEvent
impl Debug for WindowEvent
source§impl From<SDL_WindowEvent> for WindowEvent
impl From<SDL_WindowEvent> for WindowEvent
source§fn from(_: SDL_WindowEvent) -> Self
fn from(_: SDL_WindowEvent) -> Self
Converts to this type from the input type.