pub struct TransformOperations { /* private fields */ }Expand description
Contains a list of TransformOperation that represent primitive
transforms that will be applied in declared order.
Implementations§
Source§impl TransformOperations
impl TransformOperations
Sourcepub fn identity() -> Rc<TransformOperations>
pub fn identity() -> Rc<TransformOperations>
The shared empty operation list.
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Returns whether all operations combined together produce the identity matrix.
Sourcepub fn operations(&self) -> &[TransformOperation]
pub fn operations(&self) -> &[TransformOperation]
The operations, in declared order.
Sourcepub fn parse(s: &str) -> Result<Rc<TransformOperations>, FormatError>
pub fn parse(s: &str) -> Result<Rc<TransformOperations>, FormatError>
Parses a transform string such as scale(1.5) rotate(45deg).
Sourcepub fn create_builder(capacity: usize) -> TransformOperationsBuilder
pub fn create_builder(capacity: usize) -> TransformOperationsBuilder
Creates a builder with the given initial capacity.
Sourcepub fn interpolate(
from: &Rc<TransformOperations>,
to: &Rc<TransformOperations>,
progress: f64,
) -> Rc<TransformOperations>
pub fn interpolate( from: &Rc<TransformOperations>, to: &Rc<TransformOperations>, progress: f64, ) -> Rc<TransformOperations>
Interpolates between two operation lists.
Trait Implementations§
Source§impl Debug for TransformOperations
impl Debug for TransformOperations
Source§impl ITransform for TransformOperations
impl ITransform for TransformOperations
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The implementing value, for downcasts to immutable transform types.
Source§fn as_object(&self) -> Option<&FerroObject>
fn as_object(&self) -> Option<&FerroObject>
The object behind the transform when it is a mutable
Transform.Source§fn as_mutable_transform(&self) -> Option<&dyn IMutableTransform>
fn as_mutable_transform(&self) -> Option<&dyn IMutableTransform>
The transform viewed as
IMutableTransform, when it is one.Source§fn as_composition_render_resource(
&self,
) -> Option<&dyn ICompositionRenderResource>
fn as_composition_render_resource( &self, ) -> Option<&dyn ICompositionRenderResource>
The composition render resource behind the object, if it is a
mutable object with server-side counterparts on the compositors it
is used with.
Source§impl MarkupTyped for TransformOperations
impl MarkupTyped for TransformOperations
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for TransformOperations
impl RefUnwindSafe for TransformOperations
impl Send for TransformOperations
impl Sync for TransformOperations
impl Unpin for TransformOperations
impl UnsafeUnpin for TransformOperations
impl UnwindSafe for TransformOperations
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more