pub struct AnimationStartedEvent { /* private fields */ }
Available on crate features
experimental
and Animation
and Runtime
and DOM
only.Expand description
Event for animation that has been started.
Implementations§
Methods from Deref<Target = Animation>§
Sourcepub fn paused_state(&self) -> bool
pub fn paused_state(&self) -> bool
Animation
’s internal paused state.
Sourcepub fn play_state(&self) -> &str
pub fn play_state(&self) -> &str
Animation
’s play state.
Sourcepub fn playback_rate(&self) -> f64
pub fn playback_rate(&self) -> f64
Animation
’s playback rate.
Sourcepub fn start_time(&self) -> f64
pub fn start_time(&self) -> f64
Animation
’s start time.
Sourcepub fn current_time(&self) -> f64
pub fn current_time(&self) -> f64
Animation
’s current time.
Sourcepub fn type(&self) -> &AnimationType
pub fn type(&self) -> &AnimationType
Animation type of Animation
.
Sourcepub fn source(&self) -> Option<&AnimationEffect>
pub fn source(&self) -> Option<&AnimationEffect>
Animation
’s source animation node.
Trait Implementations§
Source§impl Clone for AnimationStartedEvent
impl Clone for AnimationStartedEvent
Source§fn clone(&self) -> AnimationStartedEvent
fn clone(&self) -> AnimationStartedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnimationStartedEvent
impl Debug for AnimationStartedEvent
Source§impl Deref for AnimationStartedEvent
impl Deref for AnimationStartedEvent
Source§impl<'de> Deserialize<'de> for AnimationStartedEvent
impl<'de> Deserialize<'de> for AnimationStartedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnimationStartedEvent
impl RefUnwindSafe for AnimationStartedEvent
impl Send for AnimationStartedEvent
impl Sync for AnimationStartedEvent
impl Unpin for AnimationStartedEvent
impl UnwindSafe for AnimationStartedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more