FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SizeChangedEventArgs

    struct · ferroui-controls · v0.5.0

    struct SizeChangedEventArgs
    

    Provides data specific to a SizeChanged event.

    View source

    Members

    with_event

    fn with_event<T: ?Sized>(routed_event: &RoutedEvent<T>) -> Self
    

    Creates args for a routed event.

    Source

    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.

    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.

    Source

    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.

    Source

    new_size

    fn new_size(self: &Self) -> Size
    

    The new size (or bounds) of the object.

    Source

    previous_size

    fn previous_size(self: &Self) -> Size
    

    The previous size (or bounds) of the object.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • MarkupTyped
    • Clone
    • Default
    • Deref
    • IRoutedEventArgs

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.