Struct rusty_spine::SkeletonData
source · [−]pub struct SkeletonData { /* private fields */ }
Expand description
Static skeleton data imported from Spine.
Implementations
sourceimpl SkeletonData
impl SkeletonData
pub fn version(&self) -> &str
pub fn hash(&self) -> &str
pub fn images_path(&self) -> &str
pub fn audio_path(&self) -> &str
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn bones_count(&self) -> i32
pub fn slots_count(&self) -> i32
pub fn skins_count(&self) -> i32
pub fn events_count(&self) -> i32
pub fn animations_count(&self) -> i32
pub fn ik_constraints_count(&self) -> i32
pub fn transform_constraints_count(&self) -> i32
pub fn path_constraints_count(&self) -> i32
pub fn bones(&self) -> CTmpPtrIterator<'_, SkeletonData, BoneData, spBoneData>ⓘNotable traits for CTmpPtrIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpPtrIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
pub fn bones_mut(
&mut self
) -> CTmpMutIterator<'_, SkeletonData, BoneData, spBoneData>ⓘNotable traits for CTmpMutIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpMutIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
pub fn bone_at_index(&self, index: i32) -> Option<CTmpRef<'_, Self, BoneData>>
pub fn bone_at_index_mut(
&mut self,
index: i32
) -> Option<CTmpMut<'_, Self, BoneData>>
pub fn slots(&self) -> CTmpPtrIterator<'_, SkeletonData, SlotData, spSlotData>ⓘNotable traits for CTmpPtrIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpPtrIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
pub fn slots_mut(
&mut self
) -> CTmpMutIterator<'_, SkeletonData, SlotData, spSlotData>ⓘNotable traits for CTmpMutIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpMutIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
pub fn slot_at_index(&self, index: i32) -> Option<CTmpRef<'_, Self, SlotData>>
pub fn slot_at_index_mut(
&mut self,
index: i32
) -> Option<CTmpMut<'_, Self, SlotData>>
pub fn skins(&self) -> CTmpPtrIterator<'_, SkeletonData, Skin, spSkin>ⓘNotable traits for CTmpPtrIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpPtrIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
pub fn skins_mut(&mut self) -> CTmpMutIterator<'_, SkeletonData, Skin, spSkin>ⓘNotable traits for CTmpMutIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpMutIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
pub fn skin_at_index(&self, index: i32) -> Option<CTmpRef<'_, Self, Skin>>
pub fn skin_at_index_mut(
&mut self,
index: i32
) -> Option<CTmpMut<'_, Self, Skin>>
pub fn default_skin(&self) -> CTmpRef<'_, Self, Skin>
pub fn default_skin_mut(&mut self) -> CTmpMut<'_, Self, Skin>
pub fn animations(
&self
) -> CTmpPtrIterator<'_, SkeletonData, Animation, spAnimation>ⓘNotable traits for CTmpPtrIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpPtrIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpRef<'a, P, T>;
pub fn animations_mut(
&mut self
) -> CTmpMutIterator<'_, SkeletonData, Animation, spAnimation>ⓘNotable traits for CTmpMutIterator<'a, P, T, C>impl<'a, P, T, C> Iterator for CTmpMutIterator<'a, P, T, C>where
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
T: NewFromPtr<C>, type Item = CTmpMut<'a, P, T>;
pub fn animation_at_index(
&self,
index: i32
) -> Option<CTmpRef<'_, Self, Animation>>
pub fn animation_at_index_mut(
&mut self,
index: i32
) -> Option<CTmpMut<'_, Self, Animation>>
pub fn c_ptr(&self) -> *mut spSkeletonData
Trait Implementations
sourceimpl Debug for SkeletonData
impl Debug for SkeletonData
sourceimpl Drop for SkeletonData
impl Drop for SkeletonData
sourceimpl NewFromPtr<spSkeletonData> for SkeletonData
impl NewFromPtr<spSkeletonData> for SkeletonData
unsafe fn new_from_ptr(c_skeleton_data: *const spSkeletonData) -> Self
Auto Trait Implementations
impl RefUnwindSafe for SkeletonData
impl Send for SkeletonData
impl Sync for SkeletonData
impl Unpin for SkeletonData
impl UnwindSafe for SkeletonData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more