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
horizontal: H
The horizontal origin.
vertical: V
The vertical origin.
depth: Depth
The depth.
Methods
impl<H, V, D> TransformOrigin<H, V, D>
[src]
Trait Implementations
impl<H, V, Depth> Animate for TransformOrigin<H, V, Depth> where
H: Animate,
V: Animate,
Depth: Animate,
[src]
H: Animate,
V: Animate,
Depth: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[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]
fn clone(&self) -> TransformOrigin<H, V, Depth>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
H: ComputeSquaredDistance,
V: ComputeSquaredDistance,
Depth: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
H: MallocSizeOf,
V: MallocSizeOf,
Depth: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[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]
fn eq(&self, __arg_0: &TransformOrigin<H, V, Depth>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TransformOrigin<H, V, Depth>) -> bool
[src]
This method tests for !=
.
impl<H, V, Depth> ToAnimatedZero for TransformOrigin<H, V, Depth> where
H: ToAnimatedZero,
V: ToAnimatedZero,
Depth: ToAnimatedZero,
[src]
H: ToAnimatedZero,
V: ToAnimatedZero,
Depth: ToAnimatedZero,
fn to_animated_zero(&self) -> Result<Self, ()>
[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]
H: ToComputedValue,
V: ToComputedValue,
Depth: ToComputedValue,
type ComputedValue = TransformOrigin<<H as ToComputedValue>::ComputedValue, <V as ToComputedValue>::ComputedValue, <Depth as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[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]
H: ToCss,
V: ToCss,
Depth: ToCss,