Enum rich_sdl2_rust::event::window::WindowEventDetails
source · #[non_exhaustive]pub enum WindowEventDetails {
}
Expand description
The details what occurred in WindowEvent
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shown
The window became to be shown.
Hidden
The window became to be hidden.
Exposed
The window was exposed.
Moved(Point)
The windows was moved.
Resized(Size)
The window was resized by manually.
SizeChanged(Size)
The window was resized by programmatically.
Minimized
The window was minimized.
Maximized
The window was maximized.
Restored
The window was restored from max/min.
Enter
The cursor was entered in the window.
Leave
The cursor was left from the window.
FocusGained
The window was focused.
FocusLost
The window lost focused.
Close
The window was closed.
TakeFocus
The window given focus. When this event was occurred, you should call crate::video::window::Window::set_input_focus
on the window.
Trait Implementations§
source§impl Clone for WindowEventDetails
impl Clone for WindowEventDetails
source§fn clone(&self) -> WindowEventDetails
fn clone(&self) -> WindowEventDetails
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 WindowEventDetails
impl Debug for WindowEventDetails
source§impl PartialEq for WindowEventDetails
impl PartialEq for WindowEventDetails
source§fn eq(&self, other: &WindowEventDetails) -> bool
fn eq(&self, other: &WindowEventDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WindowEventDetails
impl Eq for WindowEventDetails
impl StructuralPartialEq for WindowEventDetails
Auto Trait Implementations§
impl RefUnwindSafe for WindowEventDetails
impl Send for WindowEventDetails
impl Sync for WindowEventDetails
impl Unpin for WindowEventDetails
impl UnwindSafe for WindowEventDetails
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