pub struct WindowResizedEventArgs { /* private fields */ }Expand description
Provides data for the window resized event.
Implementations§
Source§impl WindowResizedEventArgs
impl WindowResizedEventArgs
Sourcepub fn new(client_size: Size, reason: WindowResizeReason) -> Self
pub fn new(client_size: Size, reason: WindowResizeReason) -> Self
Creates the event args. Only the windowing classes raise the event.
Sourcepub fn client_size(&self) -> Size
pub fn client_size(&self) -> Size
The new client size of the window in device-independent pixels.
Sourcepub fn reason(&self) -> WindowResizeReason
pub fn reason(&self) -> WindowResizeReason
The reason for the resize.
Trait Implementations§
Source§impl Clone for WindowResizedEventArgs
impl Clone for WindowResizedEventArgs
impl Copy for WindowResizedEventArgs
Source§impl Debug for WindowResizedEventArgs
impl Debug for WindowResizedEventArgs
Source§impl PartialEq for WindowResizedEventArgs
impl PartialEq for WindowResizedEventArgs
impl StructuralPartialEq for WindowResizedEventArgs
Auto Trait Implementations§
impl Freeze for WindowResizedEventArgs
impl RefUnwindSafe for WindowResizedEventArgs
impl Send for WindowResizedEventArgs
impl Sync for WindowResizedEventArgs
impl Unpin for WindowResizedEventArgs
impl UnsafeUnpin for WindowResizedEventArgs
impl UnwindSafe for WindowResizedEventArgs
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