FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Transform

    struct · ferroui-base · v0.5.0

    struct Transform
    

    Represents a transform on a visual or brush. Abstract base class of the mutable transforms.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Transform>
    

    Returns a strong reference to this object.

    Source

    value

    fn value(self: &Self) -> Matrix
    

    The transform's matrix.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    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.

    Source

    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.

    Source

    raise_changed

    fn raise_changed(self: &Self)
    

    Raises the changed notification.

    Source

    to_immutable

    fn to_immutable(self: &Self) -> ImmutableTransform
    

    Converts the transform to an immutable transform.

    Source

    Trait implementations

    Availability

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