pub struct SkeletonData { /* private fields */ }
Expand description
Static skeleton data imported from Spine.
Implementations§
Source§impl SkeletonData
impl SkeletonData
pub fn find_bone( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, BoneData>>
pub fn find_slot( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, SlotData>>
pub fn find_skin(&self, name: &str) -> Option<CTmpRef<'_, SkeletonData, Skin>>
pub fn find_animation( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, Animation>>
pub fn find_ik_constraint( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, IkConstraintData>>
pub fn find_path_constraint( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, PathConstraintData>>
pub fn find_physics_constraint( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, PhysicsConstraintData>>
pub fn find_transform_constraint( &self, name: &str, ) -> Option<CTmpRef<'_, SkeletonData, TransformConstraintData>>
Sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
The Spine version used to export the skeleton data, or None
.
Sourcepub fn hash(&self) -> &str
pub fn hash(&self) -> &str
The skeleton data hash. This value will change if any of the skeleton data has changed.
Sourcepub fn images_path(&self) -> Option<&str>
pub fn images_path(&self) -> Option<&str>
The path to the images directory as defined in Spine, or None
if nonessential data
was not exported.
Sourcepub fn audio_path(&self) -> Option<&str>
pub fn audio_path(&self) -> Option<&str>
The path to the audio directory as defined in Spine, or None
if nonessential data
was not exported.
Sourcepub fn x(&self) -> f32
pub fn x(&self) -> f32
The X coordinate of the skeleton’s axis aligned bounding box in the setup pose.
Sourcepub fn y(&self) -> f32
pub fn y(&self) -> f32
The Y coordinate of the skeleton’s axis aligned bounding box in the setup pose.
Sourcepub fn width(&self) -> f32
pub fn width(&self) -> f32
The width of the skeleton’s axis aligned bounding box in the setup pose.
Sourcepub fn height(&self) -> f32
pub fn height(&self) -> f32
The height of the skeleton’s axis aligned bounding box in the setup pose.
pub fn bones_count(&self) -> usize
pub fn slots_count(&self) -> usize
pub fn skins_count(&self) -> usize
pub fn events_count(&self) -> usize
pub fn animations_count(&self) -> usize
Sourcepub fn ik_contraints_count(&self) -> usize
pub fn ik_contraints_count(&self) -> usize
The number of IK constraints in this skeleton.
Sourcepub fn path_contraints_count(&self) -> usize
pub fn path_contraints_count(&self) -> usize
The number of path constraints in this skeleton.
Sourcepub fn physics_contraints_count(&self) -> usize
pub fn physics_contraints_count(&self) -> usize
The number of physics constraints in this skeleton.
Sourcepub fn transform_contraints_count(&self) -> usize
pub fn transform_contraints_count(&self) -> usize
The number of transform constraints in this skeleton.
pub fn bones(&self) -> CTmpPtrIterator<'_, SkeletonData, BoneData, spBoneData> ⓘ
pub fn bone_at_index(&self, index: usize) -> Option<CTmpRef<'_, Self, BoneData>>
pub fn slots(&self) -> CTmpPtrIterator<'_, SkeletonData, SlotData, spSlotData> ⓘ
pub fn slot_at_index(&self, index: usize) -> Option<CTmpRef<'_, Self, SlotData>>
pub fn skins(&self) -> CTmpPtrIterator<'_, SkeletonData, Skin, spSkin> ⓘ
pub fn skin_at_index(&self, index: usize) -> Option<CTmpRef<'_, Self, Skin>>
pub fn default_skin(&self) -> CTmpRef<'_, Self, Skin>
pub fn animations( &self, ) -> CTmpPtrIterator<'_, SkeletonData, Animation, spAnimation> ⓘ
pub fn animation_at_index( &self, index: usize, ) -> Option<CTmpRef<'_, Self, Animation>>
pub fn ik_constraints( &self, ) -> CTmpPtrIterator<'_, SkeletonData, IkConstraintData, spIkConstraintData> ⓘ
pub fn ik_contraint_at_index( &self, index: usize, ) -> Option<CTmpRef<'_, Self, IkConstraintData>>
pub fn path_constraints( &self, ) -> CTmpPtrIterator<'_, SkeletonData, PathConstraintData, spPathConstraintData> ⓘ
pub fn path_contraint_at_index( &self, index: usize, ) -> Option<CTmpRef<'_, Self, PathConstraintData>>
pub fn physics_constraints( &self, ) -> CTmpPtrIterator<'_, SkeletonData, PhysicsConstraintData, spPhysicsConstraintData> ⓘ
pub fn physics_contraint_at_index( &self, index: usize, ) -> Option<CTmpRef<'_, Self, PhysicsConstraintData>>
pub fn transform_constraints( &self, ) -> CTmpPtrIterator<'_, SkeletonData, TransformConstraintData, spTransformConstraintData> ⓘ
pub fn transform_contraint_at_index( &self, index: usize, ) -> Option<CTmpRef<'_, Self, TransformConstraintData>>
Sourcepub const fn c_ptr(&self) -> *mut spSkeletonData
pub const fn c_ptr(&self) -> *mut spSkeletonData
Get a pointer to the underlying spine-c
type.
Source§impl SkeletonData
Functions available if using the mint
feature.
impl SkeletonData
Functions available if using the mint
feature.