Struct style::values::generics::transform::TransformOrigin [] [src]

pub struct TransformOrigin<H, V, Depth> {
    pub horizontal: H,
    pub vertical: V,
    pub depth: Depth,
}

A generic transform origin.

Fields

The horizontal origin.

The vertical origin.

The depth.

Methods

impl<H, V, D> TransformOrigin<H, V, D>
[src]

[src]

Returns a new transform origin.

Trait Implementations

impl<H, V, Depth> Animate for TransformOrigin<H, V, Depth> where
    H: Animate,
    V: Animate,
    Depth: Animate
[src]

[src]

Animate a value towards another one, given an animation procedure.

impl<H: Clone, V: Clone, Depth: Clone> Clone for TransformOrigin<H, V, Depth>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<H, V, Depth> ComputeSquaredDistance for TransformOrigin<H, V, Depth> where
    H: ComputeSquaredDistance,
    V: ComputeSquaredDistance,
    Depth: ComputeSquaredDistance
[src]

[src]

Computes the squared distance between two animatable values.

impl<H: Copy, V: Copy, Depth: Copy> Copy for TransformOrigin<H, V, Depth>
[src]

impl<H: Debug, V: Debug, Depth: Debug> Debug for TransformOrigin<H, V, Depth>
[src]

[src]

Formats the value using the given formatter. Read more

impl<H, V, Depth> MallocSizeOf for TransformOrigin<H, V, Depth> where
    H: MallocSizeOf,
    V: MallocSizeOf,
    Depth: MallocSizeOf
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl<H: PartialEq, V: PartialEq, Depth: PartialEq> PartialEq for TransformOrigin<H, V, Depth>
[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<H, V, Depth> ToAnimatedZero for TransformOrigin<H, V, Depth> where
    H: ToAnimatedZero,
    V: ToAnimatedZero,
    Depth: ToAnimatedZero
[src]

[src]

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more

impl<H, V, Depth> ToComputedValue for TransformOrigin<H, V, Depth> where
    H: ToComputedValue,
    V: ToComputedValue,
    Depth: ToComputedValue
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more

impl<H, V, Depth> ToCss for TransformOrigin<H, V, Depth> where
    H: ToCss,
    V: ToCss,
    Depth: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more