FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScalarTransition

    struct · ferroui-base · v0.5.0

    struct ScalarTransition
    

    Microsoft.UI.Xaml.ScalarTransition: the animation of a change of a scalar facade of an element (UIElement.OpacityTransition, UIElement.RotationTransition).

    Deviation (winui-composition.md): WinUI's transition is a class whose Duration can be changed after it was assigned to an element; here it is a value, copied when it is assigned, so a changed duration is assigned again.

    View source

    Members

    DEFAULT_DURATION

    const DEFAULT_DURATION: Duration
    

    The default duration of a transition: 300 milliseconds.

    Source

    new

    const fn new() -> ScalarTransition
    

    A transition of the default duration (300 milliseconds).

    Source

    with_duration

    const fn with_duration(duration: Duration) -> ScalarTransition
    

    A transition of duration.

    Source

    duration

    fn duration(self: &Self) -> Duration
    

    Duration: how long the animation of a change takes. 300 milliseconds by default.

    Source

    set_duration

    fn set_duration(self: &mut Self, value: Duration)
    

    Sets duration.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Default

    Availability

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