#[repr(i32)]pub enum WindowResizeReason {
Unspecified = 0,
User = 1,
Application = 2,
Layout = 3,
DpiChange = 4,
}Expand description
Specifies the reason for a window resize.
Variants§
Unspecified = 0
The resize reason is unknown or unspecified.
User = 1
The resize was due to the user resizing the window, for example by dragging the window frame.
Application = 2
The resize was initiated by the application, for example by setting one of the sizing-related properties on the window.
Layout = 3
The resize was initiated by the layout system.
DpiChange = 4
The resize was due to a change in DPI.
Trait Implementations§
Source§impl Clone for WindowResizeReason
impl Clone for WindowResizeReason
impl Copy for WindowResizeReason
Source§impl Debug for WindowResizeReason
impl Debug for WindowResizeReason
Source§impl Default for WindowResizeReason
impl Default for WindowResizeReason
impl Eq for WindowResizeReason
Source§impl Hash for WindowResizeReason
impl Hash for WindowResizeReason
Source§impl MarkupTyped for WindowResizeReason
impl MarkupTyped for WindowResizeReason
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for WindowResizeReason
impl PartialEq for WindowResizeReason
impl StructuralPartialEq for WindowResizeReason
Auto Trait Implementations§
impl Freeze for WindowResizeReason
impl RefUnwindSafe for WindowResizeReason
impl Send for WindowResizeReason
impl Sync for WindowResizeReason
impl Unpin for WindowResizeReason
impl UnsafeUnpin for WindowResizeReason
impl UnwindSafe for WindowResizeReason
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