pub struct EventObject { /* private fields */ }Expand description
Animation event trigger
Event objects fire events at specific animation frames, used to trigger sounds, spawn effects, etc. synchronized with animations.
Implementations§
Source§impl EventObject
impl EventObject
Sourcepub fn node(&self) -> Ref<'_, Node>
pub fn node(&self) -> Ref<'_, Node>
Base node data Borrows the field in place — no copy, no allocation.
pub fn node_mut(&mut self) -> RefMut<'_, Node>
Sourcepub fn global_sequence_id(&self) -> u32
pub fn global_sequence_id(&self) -> u32
Global sequence if looping
pub fn set_global_sequence_id(&mut self, value: u32)
Sourcepub fn event_track_times(&self) -> &[u32]
pub fn event_track_times(&self) -> &[u32]
Frame numbers when events fire
Zero-copy view of the underlying std::vector.
Sourcepub fn event_track_times_mut(&mut self) -> &mut [u32]
pub fn event_track_times_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_event_track_times(&mut self, values: &[u32])
pub fn resize_event_track_times(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for EventObject
impl Debug for EventObject
Source§impl Default for EventObject
impl Default for EventObject
Source§impl Drop for EventObject
impl Drop for EventObject
impl Send for EventObject
Auto Trait Implementations§
impl !Sync for EventObject
impl Freeze for EventObject
impl RefUnwindSafe for EventObject
impl Unpin for EventObject
impl UnsafeUnpin for EventObject
impl UnwindSafe for EventObject
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