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
sourceimpl Clone for WindowEvent
impl Clone for WindowEvent
sourcefn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WindowEvent
impl Debug for WindowEvent
sourceimpl Default for WindowEvent
impl Default for WindowEvent
sourceimpl<'de> Deserialize<'de> for WindowEvent
impl<'de> Deserialize<'de> for WindowEvent
sourcefn 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
sourceimpl Hash for WindowEvent
impl Hash for WindowEvent
sourceimpl PartialEq<WindowEvent> for WindowEvent
impl PartialEq<WindowEvent> for WindowEvent
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &WindowEvent) -> bool
fn ne(&self, other: &WindowEvent) -> bool
This method tests for !=.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more