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]

[src]

Constructs a new transform.

[src]

Constructs a new translate transform.

[src]

Constructs a new scale transform.

[src]

Constructs a new rotate transform.

[src]

Constructs a new rotate transform at the specified position.

[src]

Constructs a new skew transform along then X axis.

[src]

Constructs a new skew transform along then Y axis.

[src]

Translates the current transform.

[src]

Scales the current transform.

[src]

Rotates the current transform.

[src]

Rotates the current transform at the specified position.

[src]

Skews the current transform along the X axis.

[src]

Skews the current transform along the Y axis.

[src]

Appends transform to the current transform.

[src]

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

[src]

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

[src]

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

[src]

Returns true if the transform contains translate part.

[src]

Returns true if the transform contains scale part.

[src]

Returns true if the transform scale is proportional.

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

[src]

Returns true if the transform contains skew part.

[src]

Returns true if the transform contains rotate part.

[src]

Returns transform's translate part.

[src]

Returns transform's scale part.

[src]

Returns transform's skew part.

[src]

Returns transform's rotate part.

[src]

Applies transform to selected coordinates.

[src]

Applies transform to selected coordinates.

Trait Implementations

impl From<Transform> for AttributeValue
[src]

[src]

Performs the conversion.

impl Display for Transform
[src]

[src]

Formats the value using the given formatter. Read more

impl WriteBuffer for Transform
[src]

[src]

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

[src]

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

[src]

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

impl FromSpan for Transform
[src]

[src]

Parses data from a StrSpan.

impl FuzzyEq<Transform> for Transform
[src]

[src]

Returns true if values are approximately equal.

[src]

Returns true if values are not approximately equal.

impl Copy for Transform
[src]

impl FromStr for Transform
[src]

The associated error which can be returned from parsing.

[src]

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

impl PartialEq<Transform> for Transform
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Transform
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Transform
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Transform
[src]

[src]

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

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform