Struct rusty_spine::EventData
source · pub struct EventData { /* private fields */ }
Expand description
Static event data imported from Spine.
Implementations§
source§impl EventData
impl EventData
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the event, which is unique across all events in the skeleton.
sourcepub fn float_value(&self) -> f32
pub fn float_value(&self) -> f32
The event’s float value.
sourcepub fn string_value(&self) -> &str
pub fn string_value(&self) -> &str
The event’s string value or an empty string.
sourcepub fn audio_path(&self) -> &str
pub fn audio_path(&self) -> &str
The event’s audio path.
sourcepub const fn c_ptr(&self) -> *mut spEventData
pub const fn c_ptr(&self) -> *mut spEventData
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl NewFromPtr<spEventData> for EventData
impl NewFromPtr<spEventData> for EventData
unsafe fn new_from_ptr(c_event_data: *mut spEventData) -> Self
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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