FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransformOperations

    struct · ferroui-base · v0.5.0

    struct TransformOperations
    

    Contains a list of TransformOperation that represent primitive transforms that will be applied in declared order.

    View source

    Members

    identity

    fn identity() -> Rc<TransformOperations>
    

    The shared empty operation list.

    Source

    is_identity

    fn is_identity(self: &Self) -> bool
    

    Returns whether all operations combined together produce the identity matrix.

    Source

    operations

    fn operations(self: &Self) -> &[TransformOperation]
    

    The operations, in declared order.

    Source

    value

    fn value(self: &Self) -> Matrix
    

    The combined matrix of all operations.

    Source

    parse

    fn parse(s: &str) -> Result<Rc<TransformOperations>, FormatError>
    

    Parses a transform string such as scale(1.5) rotate(45deg).

    Source

    create_builder

    fn create_builder(capacity: usize) -> TransformOperationsBuilder
    

    Creates a builder with the given initial capacity.

    Source

    interpolate

    fn interpolate(from: &Rc<TransformOperations>, to: &Rc<TransformOperations>, progress: f64) -> Rc<TransformOperations>
    

    Interpolates between two operation lists.

    Source

    Trait implementations

    Availability

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