Transform
struct · ferroui-base · v0.5.0
struct Transform
Represents a transform on a visual or brush. Abstract base class of the mutable transforms.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Transform>
Returns a strong reference to this object.
value
fn value(self: &Self) -> Matrix
The transform's matrix.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
parse
fn parse(s: &str) -> Result<Ref<Transform>, FormatError>
Parses a matrix string (m11,m12,m21,m22,m31,m32 or a transform
operation list) to a transform.
changed
fn changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Subscribes to changes of the transform. Dropping the returned guard
removes the handler; Subscription::detach keeps it for the life of
the transform.
raise_changed
fn raise_changed(self: &Self)
Raises the changed notification.
to_immutable
fn to_immutable(self: &Self) -> ImmutableTransform
Converts the transform to an immutable transform.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransformImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToStringErasedDestructorIntoEitherDerefUpcast<T>Upcast<Transform>StaticTypeObjectTypeSubclassable<T>FerroObjectImplTransformImplICompositionRenderResourceDisplayIAffectsRender
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.