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.
Members
NumberColorPointVectorSizeRectCornerRadiusRelativePointRelativeScalarThicknessDiscretekindvalidateinterpolateto_xamlparse
Number
Number(f64)
Color
Color { a: f64, r: f64, g: f64, b: f64 }
Point
Point { x: f64, y: f64 }
Vector
Vector { x: f64, y: f64 }
Size
Size { width: f64, height: f64 }
Rect
Rect { x: f64, y: f64, width: f64, height: f64 }
CornerRadius
CornerRadius { top_left: f64, top_right: f64, bottom_right: f64, bottom_left: f64 }
RelativePoint
RelativePoint { x: f64, y: f64, unit: RelativeUnit }
RelativeScalar
RelativeScalar { scalar: f64, unit: RelativeUnit }
Thickness
Thickness { left: f64, top: f64, right: f64, bottom: f64 }
Discrete
Discrete(String)
kind
fn kind(self: &Self) -> ValueKind
validate
fn validate(self: &Self) -> Result<()>
interpolate
fn interpolate(self: &Self, to: &Self, progress: f64) -> Result<Self>
to_xaml
fn to_xaml(self: &Self) -> String
parse
fn parse(source: &str, kind: ValueKind) -> Result<Self>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.