SizeChangedEventArgs
struct · ferroui-controls · v0.5.0
struct SizeChangedEventArgs
Provides data specific to a SizeChanged event.
Members
with_event
fn with_event<T: ?Sized>(routed_event: &RoutedEvent<T>) -> Self
Creates args for a routed event.
with_event_and_source
fn with_event_and_source<T: ?Sized>(routed_event: &RoutedEvent<T>, source: impl Into<Nullable<FerroObject>>) -> Self
Creates args for a routed event with a source.
new
fn new<T: ?Sized>(routed_event: &RoutedEvent<T>, source: impl Into<Nullable<FerroObject>>, previous_size: Size, new_size: Size) -> Self
Creates args for a routed event with a source and the previous and new sizes.
height_changed
fn height_changed(self: &Self) -> bool
Whether the height of the new size is considered different to the previous size height.
This will take into account layout epsilon and will not be true if both heights are considered equivalent for layout purposes. Remember there can be small variations in the calculations between layout cycles due to rounding and precision even when the size has not otherwise changed.
new_size
fn new_size(self: &Self) -> Size
The new size (or bounds) of the object.
previous_size
fn previous_size(self: &Self) -> Size
The previous size (or bounds) of the object.
width_changed
fn width_changed(self: &Self) -> bool
Whether the width of the new size is considered different to the previous size width.
See height_changed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedClassDefaultsErasedDestructorIntoEitherMarkupTypedCloneDefaultDerefIRoutedEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.