Struct style::animation::PropertyAnimation
[−]
[src]
pub struct PropertyAnimation { /* fields omitted */ }
Represents an animation for a given property.
Methods
impl PropertyAnimation
[src]
pub fn property_name(&self) -> &'static str
[src]
Returns the given property name.
pub fn from_transition(
transition_index: usize,
old_style: &ComputedValues,
new_style: &mut ComputedValues
) -> Vec<PropertyAnimation>
[src]
transition_index: usize,
old_style: &ComputedValues,
new_style: &mut ComputedValues
) -> Vec<PropertyAnimation>
Creates a new property animation for the given transition index and old
and new styles. Any number of animations may be returned, from zero (if
the property did not animate) to one (for a single transition property)
to arbitrarily many (for all
).
pub fn update(&self, style: &mut ComputedValues, time: f64)
[src]
Update the given animation at a given point of progress.
pub fn has_the_same_end_value_as(&self, other: &Self) -> bool
[src]
Whether this animation has the same end value as another one.
Trait Implementations
impl Clone for PropertyAnimation
[src]
fn clone(&self) -> PropertyAnimation
[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