Enum rusty_spine::AnimationEvent
source · pub enum AnimationEvent<'a> {
Start {
track_entry: TrackEntry,
},
Interrupt {
track_entry: TrackEntry,
},
End {
track_entry: TrackEntry,
},
Complete {
track_entry: TrackEntry,
},
Dispose {
track_entry: TrackEntry,
},
Event {
track_entry: TrackEntry,
name: &'a str,
time: f32,
int: i32,
float: f32,
string: &'a str,
audio_path: &'a str,
volume: f32,
balance: f32,
event: Event,
},
}
Expand description
A wrapper for Event
that makes events slightly nicer to work with in Rust.
To receive events, see AnimationState::set_listener
.
Variants§
Start
Fields
§
track_entry: TrackEntry
The track this event originated from.
Interrupt
Fields
§
track_entry: TrackEntry
The track this event originated from.
End
Fields
§
track_entry: TrackEntry
The track this event originated from.
Complete
Fields
§
track_entry: TrackEntry
The track this event originated from.
Dispose
Fields
§
track_entry: TrackEntry
The track this event originated from.
Event
Fields
§
track_entry: TrackEntry
The track this event originated from.
Auto Trait Implementations§
impl<'a> Freeze for AnimationEvent<'a>
impl<'a> RefUnwindSafe for AnimationEvent<'a>
impl<'a> Send for AnimationEvent<'a>
impl<'a> Sync for AnimationEvent<'a>
impl<'a> Unpin for AnimationEvent<'a>
impl<'a> UnwindSafe for AnimationEvent<'a>
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