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.
Members
identity
fn identity() -> Rc<TransformOperations>
The shared empty operation list.
is_identity
fn is_identity(self: &Self) -> bool
Returns whether all operations combined together produce the identity matrix.
operations
fn operations(self: &Self) -> &[TransformOperation]
The operations, in declared order.
value
fn value(self: &Self) -> Matrix
The combined matrix of all operations.
parse
fn parse(s: &str) -> Result<Rc<TransformOperations>, FormatError>
Parses a transform string such as scale(1.5) rotate(45deg).
create_builder
fn create_builder(capacity: usize) -> TransformOperationsBuilder
Creates a builder with the given initial capacity.
interpolate
fn interpolate(from: &Rc<TransformOperations>, to: &Rc<TransformOperations>, progress: f64) -> Rc<TransformOperations>
Interpolates between two operation lists.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAnyValueClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDebugPartialEqITransformMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.