Enum b3_core::WindowEvent
source · pub enum WindowEvent {
Showed,
Resized(PhysicalSize<u32>),
Moved(PhysicalPosition<i32>),
Focused(bool),
ScaleFactorChanged(f64),
RedrawRequested,
CloseRequested,
Destroyed,
}Expand description
Window events.
Variants§
Showed
The window has been displayed.
Resized(PhysicalSize<u32>)
The window has been resized.
Moved(PhysicalPosition<i32>)
The window has been moved.
Focused(bool)
The window has gained or lost focus.
ScaleFactorChanged(f64)
The window scale factor has been changed.
RedrawRequested
The window will be redrawn.
CloseRequested
The window has been closed.
Destroyed
The window has been destroyed.
Trait Implementations§
source§impl Debug for WindowEvent
impl Debug 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 PartialOrd for WindowEvent
impl PartialOrd for WindowEvent
source§fn partial_cmp(&self, other: &WindowEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for WindowEvent
Auto Trait Implementations§
impl Freeze for WindowEvent
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