[][src]Struct oox::shared::drawingml::shapeprops::TransformEffect

pub struct TransformEffect {
    pub scale_x: Option<Percentage>,
    pub scale_y: Option<Percentage>,
    pub translate_x: Option<Coordinate>,
    pub translate_y: Option<Coordinate>,
    pub skew_x: Option<FixedAngle>,
    pub skew_y: Option<FixedAngle>,
}

This element specifies a transform effect. The transform is applied to each point in the shape's geometry using the following matrix:

sx tan(kx) tx x tan(ky) sy ty * y 0 0 1 1

Fields

scale_x: Option<Percentage>

Specifies a percentage by which to horizontally scale the object.

Defaults to 100_000

scale_y: Option<Percentage>

Specifies a percentage by which to vertically scale the object.

Defaults to 100_000

translate_x: Option<Coordinate>

Specifies an amount by which to shift the object along the x-axis.

Defaults to 0

translate_y: Option<Coordinate>

Specifies an amount by which to shift the object along the y-axis.

Defaults to 0

skew_x: Option<FixedAngle>

Specifies the horizontal skew angle, defined as the angle between the top-left corner and bottom-left corner of the object's original bounding box. If positive, the bottom edge of the shape is positioned to the right relative to the top edge.

Defaults to 0

skew_y: Option<FixedAngle>

Specifies the vertical skew angle, defined as the angle between the top-left corner and top-right corner of the object's original bounding box. If positive, the right edge of the object is positioned lower relative to the left edge.

Defaults to 0

Methods

impl TransformEffect[src]

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>[src]

Trait Implementations

impl Clone for TransformEffect[src]

impl Debug for TransformEffect[src]

impl Default for TransformEffect[src]

impl PartialEq<TransformEffect> for TransformEffect[src]

impl StructuralPartialEq for TransformEffect[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.