#[repr(i32)]pub enum WindowCloseReason {
Undefined = 0,
WindowClosing = 1,
OwnerWindowClosing = 2,
ApplicationShutdown = 3,
OSShutdown = 4,
}Expand description
Specifies the reason that a window was closed.
Variants§
Undefined = 0
The cause of the closure was not provided by the underlying platform.
WindowClosing = 1
The window itself was requested to close.
OwnerWindowClosing = 2
The window is closing due to a parent/owner window closing.
ApplicationShutdown = 3
The window is closing due to the application shutting down.
OSShutdown = 4
The window is closing due to the operating system shutting down.
Trait Implementations§
Source§impl Clone for WindowCloseReason
impl Clone for WindowCloseReason
impl Copy for WindowCloseReason
Source§impl Debug for WindowCloseReason
impl Debug for WindowCloseReason
Source§impl Default for WindowCloseReason
impl Default for WindowCloseReason
impl Eq for WindowCloseReason
Source§impl Hash for WindowCloseReason
impl Hash for WindowCloseReason
Source§impl MarkupTyped for WindowCloseReason
impl MarkupTyped for WindowCloseReason
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for WindowCloseReason
impl PartialEq for WindowCloseReason
impl StructuralPartialEq for WindowCloseReason
Auto Trait Implementations§
impl Freeze for WindowCloseReason
impl RefUnwindSafe for WindowCloseReason
impl Send for WindowCloseReason
impl Sync for WindowCloseReason
impl Unpin for WindowCloseReason
impl UnsafeUnpin for WindowCloseReason
impl UnwindSafe for WindowCloseReason
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more