Enum pix_engine::event::WindowEvent
source · #[non_exhaustive]pub enum WindowEvent {
}
Expand description
Window Event.
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
Window is being shown.
Exposed
Window is being exposed.
Hidden
Window is being hidden.
Moved(i32, i32)
Window moved to new position (x, y)
Resized(i32, i32)
Window resized to new dimensions `(width, height
SizeChanged(i32, i32)
Window size changed to new dimensions `(width, height
Minimized
Window minimized.
Maximized
Window maximized.
Restored
Window restored.
Enter
Users mouse entered the window.
Leave
Users mouse left the window.
FocusGained
Window gained user focus.
FocusLost
Window lost user focus.
Close
Window closed.
Unhandled
An unknown/unsupported window 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 Default for WindowEvent
impl Default for WindowEvent
source§impl<'de> Deserialize<'de> for WindowEvent
impl<'de> Deserialize<'de> for WindowEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for WindowEvent
impl Hash for WindowEvent
source§impl PartialEq for WindowEvent
impl PartialEq for WindowEvent
source§fn eq(&self, other: &WindowEvent) -> bool
fn eq(&self, other: &WindowEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WindowEvent
impl Serialize for WindowEvent
impl Copy for WindowEvent
impl Eq for WindowEvent
impl StructuralEq for WindowEvent
impl StructuralPartialEq 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more