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.
Unsupported
An unknown/unsupported window event.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more