#[repr(i32)]pub enum WindowClosingBehavior {
OwnerAndChildWindows = 0,
OwnerWindowOnly = 1,
}Expand description
Describes how the Window::closing event behaves in the presence of
child windows.
Variants§
OwnerAndChildWindows = 0
When the owner window is closed, the child windows’ closing event will be raised, followed by the owner window’s closing events. A child canceling the close will result in the owner window’s close being cancelled.
OwnerWindowOnly = 1
When the owner window is closed, only the owner window’s closing event will be raised.
Trait Implementations§
Source§impl Clone for WindowClosingBehavior
impl Clone for WindowClosingBehavior
impl Copy for WindowClosingBehavior
Source§impl Debug for WindowClosingBehavior
impl Debug for WindowClosingBehavior
Source§impl Default for WindowClosingBehavior
impl Default for WindowClosingBehavior
impl Eq for WindowClosingBehavior
Source§impl Hash for WindowClosingBehavior
impl Hash for WindowClosingBehavior
Source§impl MarkupTyped for WindowClosingBehavior
impl MarkupTyped for WindowClosingBehavior
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for WindowClosingBehavior
impl PartialEq for WindowClosingBehavior
impl StructuralPartialEq for WindowClosingBehavior
Auto Trait Implementations§
impl Freeze for WindowClosingBehavior
impl RefUnwindSafe for WindowClosingBehavior
impl Send for WindowClosingBehavior
impl Sync for WindowClosingBehavior
impl Unpin for WindowClosingBehavior
impl UnsafeUnpin for WindowClosingBehavior
impl UnwindSafe for WindowClosingBehavior
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