TransitionOperations
struct · ferroui-xaml-behaviors-animations · v0.5.0
struct TransitionOperations
Provides reusable operations for a styled element's transition collection.
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.
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.
clear
fn clear(target: Option<&StyledElement>) -> bool
Clears all transitions from an element. Returns true when an existing collection was
cleared; otherwise, false.
replace
fn replace(target: &StyledElement, transitions: Option<Transitions>) -> Option<Transitions>
Replaces an element's transitions and returns the previous collection.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.