pub enum WindowEvent {
Showed,
Resized(PhysicalSize<u32>),
Moved(PhysicalPosition<i32>),
Focused(bool),
ScaleFactorChanged(f64),
RedrawRequested,
CloseRequested,
Destroyed,
Mouse(MouseEvent),
}
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.
Mouse(MouseEvent)
Mouse event (see MouseEvent).
Trait Implementations§
Source§impl Debug for WindowEvent
impl Debug for WindowEvent
Source§impl PartialEq for WindowEvent
impl PartialEq for WindowEvent
Source§impl PartialOrd for WindowEvent
impl PartialOrd for WindowEvent
impl 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