FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Track

    struct · ferroui-designer-animation · v0.5.0

    struct Track
    

    View source

    Members

    target

    target: u64
    

    Source

    property

    property: String
    

    Source

    keyframes

    keyframes: Vec<Keyframe>
    

    Source

    base_value

    base_value: Option<crate::AnimationValue>
    

    The value before animation. Required when importing a runtime track with implicit endpoint values when FillMode does not hold that endpoint. Authored tracks without it hold their closest explicit keyframe.

    Source

    muted

    muted: bool
    

    Source

    new

    fn new(target: u64, property: impl Into<String>) -> Self
    

    Source

    record

    fn record(self: &mut Self, time: f64, value: AnimationValue) -> Result<()>
    

    Source

    remove_keyframe

    fn remove_keyframe(self: &mut Self, time: f64) -> Result<Keyframe>
    

    Source

    move_keyframe

    fn move_keyframe(self: &mut Self, from: f64, to: f64) -> Result<()>
    

    Source

    set_easing

    fn set_easing(self: &mut Self, time: f64, easing: Easing) -> Result<()>
    

    Source

    validate

    fn validate(self: &Self, duration: f64) -> Result<()>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>

    Availability

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