FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransformOperation

    struct · ferroui-base · v0.5.0

    struct TransformOperation
    

    Represents a single primitive transform (like translation, rotation, scale, etc.).

    The default value is a translation by zero whose matrix is all zeros; call bake after setting the type and data.

    View source

    Members

    type_

    type_: OperationType
    

    Source

    matrix

    matrix: crate::Matrix
    

    Source

    data

    data: DataLayout
    

    Source

    is_identity

    fn is_identity(self: &Self) -> bool
    

    Returns whether the operation produces the identity matrix.

    Source

    bake

    fn bake(self: &mut Self)
    

    Bakes this operation to a transform matrix.

    Source

    identity

    fn identity() -> TransformOperation
    

    Returns a new identity operation.

    Source

    try_interpolate

    fn try_interpolate(from: Option<TransformOperation>, to: Option<TransformOperation>, progress: f64, result: &mut TransformOperation) -> bool
    

    Attempts to interpolate between two transform operations. Returns false if the operations cannot be interpolated.

    Source

    Trait implementations

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

    Availability

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