FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransitionOperations

    struct · ferroui-xaml-behaviors-animations · v0.5.0

    struct TransitionOperations
    

    Provides reusable operations for a styled element's transition collection.

    View source

    Members

    add

    fn add(target: Option<&StyledElement>, transition: Option<&Ref<TransitionBase>>) -> bool
    

    Adds a transition to an element, creating its collection when necessary. Returns true when the transition was added; otherwise, false.

    Source

    remove

    fn remove(target: Option<&StyledElement>, transition: Option<&Ref<TransitionBase>>) -> bool
    

    Removes a transition from an element. Returns true when the transition was removed; otherwise, false.

    Source

    clear

    fn clear(target: Option<&StyledElement>) -> bool
    

    Clears all transitions from an element. Returns true when an existing collection was cleared; otherwise, false.

    Source

    replace

    fn replace(target: &StyledElement, transitions: Option<Transitions>) -> Option<Transitions>
    

    Replaces an element's transitions and returns the previous collection.

    Source

    observe

    fn observe(target: &StyledElement, observer: impl Fn(Option<Transitions>) -> () + 'static) -> Rc<dyn IDisposable>
    

    Observes replacements of an element's transition collection: observer is invoked with the current and subsequent transition collections. Returns a subscription that stops observation when disposed.

    The ArgumentNullException of the reference for a missing target or observer has no counterpart: both are required by the types of the parameters.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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