Struct usvg::Transform[][src]

pub struct Transform {
    pub a: f64,
    pub b: f64,
    pub c: f64,
    pub d: f64,
    pub e: f64,
    pub f: f64,
}

Representation of the <transform> type.

Fields

Methods

impl Transform
[src]

Constructs a new transform.

Constructs a new translate transform.

Constructs a new scale transform.

Constructs a new rotate transform.

Constructs a new rotate transform at the specified position.

Constructs a new skew transform along then X axis.

Constructs a new skew transform along then Y axis.

Translates the current transform.

Scales the current transform.

Rotates the current transform.

Rotates the current transform at the specified position.

Skews the current transform along the X axis.

Skews the current transform along the Y axis.

Appends transform to the current transform.

Returns true if the transform is default, aka (1 0 0 1 0 0).

Returns true if the transform contains only translate part, aka (1 0 0 1 x y).

Returns true if the transform contains only scale part, aka (sx 0 0 sy 0 0).

Returns true if the transform contains translate part.

Returns true if the transform contains scale part.

Returns true if the transform scale is proportional.

The proportional scale is when <sx> equal to <sy>.

Returns true if the transform contains skew part.

Returns true if the transform contains rotate part.

Returns transform's translate part.

Returns transform's scale part.

Returns transform's skew part.

Returns transform's rotate part.

Applies transform to selected coordinates.

Applies transform to selected coordinates.

Trait Implementations

impl From<Transform> for AttributeValue
[src]

Performs the conversion.

impl WriteBuffer for Transform
[src]

Writes data to the Vec<u8> buffer using specified WriteOptions.

Writes data to the Vec<u8> buffer using default WriteOptions.

Returns an object that implements fmt::Display using provided write options.

impl FuzzyEq<Transform> for Transform
[src]

Returns true if values are approximately equal.

Returns true if values are not approximately equal.

impl FromSpan for Transform
[src]

Parses data from a StrSpan.

impl Display for Transform
[src]

Formats the value using the given formatter. Read more

impl Clone for Transform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Transform
[src]

Returns the "default value" for a type. Read more

impl FromStr for Transform
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Debug for Transform
[src]

Formats the value using the given formatter. Read more

impl Copy for Transform
[src]

impl PartialEq<Transform> for Transform
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform