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
Auto Trait Implementations§
impl RefUnwindSafe for WindowEvent
impl Send for WindowEvent
impl Sync for WindowEvent
impl Unpin for WindowEvent
impl UnwindSafe for 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