FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnimationValue

    enum · ferroui-designer-animation · v0.5.0

    enum AnimationValue
    

    Typed values preserve the difference between a point and a two-component thickness. Colors use normalized [0,1] sRGB channels. Interpolation converts RGB to linear light, matching FerroUI's ColorAnimator; alpha stays linear.

    View source

    Members

    Number

    Number(f64)
    

    Source

    Color

    Color { a: f64, r: f64, g: f64, b: f64 }
    

    Source

    Point

    Point { x: f64, y: f64 }
    

    Source

    Vector

    Vector { x: f64, y: f64 }
    

    Source

    Size

    Size { width: f64, height: f64 }
    

    Source

    Rect

    Rect { x: f64, y: f64, width: f64, height: f64 }
    

    Source

    CornerRadius

    CornerRadius { top_left: f64, top_right: f64, bottom_right: f64, bottom_left: f64 }
    

    Source

    RelativePoint

    RelativePoint { x: f64, y: f64, unit: RelativeUnit }
    

    Source

    RelativeScalar

    RelativeScalar { scalar: f64, unit: RelativeUnit }
    

    Source

    Thickness

    Thickness { left: f64, top: f64, right: f64, bottom: f64 }
    

    Source

    Discrete

    Discrete(String)
    

    Source

    kind

    fn kind(self: &Self) -> ValueKind
    

    Source

    validate

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

    Source

    interpolate

    fn interpolate(self: &Self, to: &Self, progress: f64) -> Result<Self>
    

    Source

    to_xaml

    fn to_xaml(self: &Self) -> String
    

    Source

    parse

    fn parse(source: &str, kind: ValueKind) -> Result<Self>
    

    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.