Enum style::animation::Animation [] [src]

pub enum Animation {
    Transition(OpaqueNodef64AnimationFramebool),
    Keyframes(OpaqueNodeAtomKeyframesAnimationState),
}

State relating to an animation.

Variants

A transition is just a single frame triggered at a time, with a reflow.

the f64 field is the start time as returned by time::precise_time_s().

The bool field is werther this animation should no longer run.

A keyframes animation is identified by a name, and can have a node-dependent state (i.e. iteration count, etc.).

Methods

impl Animation
[src]

[src]

Mark this animation as expired.

[src]

Whether this animation is expired.

[src]

The opaque node that owns the animation.

[src]

Whether this animation is paused. A transition can never be paused.

[src]

Whether this animation is a transition.

Trait Implementations

impl Clone for Animation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Animation
[src]

[src]

Formats the value using the given formatter. Read more