pub struct SkeletonData { /* private fields */ }Implementations§
Source§impl SkeletonData
impl SkeletonData
pub fn animations<'a>(&'a self) -> Vec<Animation<'a>>
pub fn bones<'a>(&'a self) -> Vec<BoneData<'a>>
pub fn strings(&self) -> Vec<&str>
pub fn position(&self) -> (f32, f32)
pub fn dimensions(&self) -> (f32, f32)
pub fn set_position(&mut self, position: (f32, f32))
pub fn set_dimensions(&mut self, dimensions: (f32, f32))
Sourcepub fn from_binary_file<P>(path: P, atlas: Atlas) -> Result<Self, SpineError>
pub fn from_binary_file<P>(path: P, atlas: Atlas) -> Result<Self, SpineError>
Loads a SkeletonData instance from the provided binary file path.
§Errors
Returns a SpineError::FailLoadSkeleton instance, with a text message detailing why loading failed.
Auto Trait Implementations§
impl !Send for SkeletonData
impl !Sync for SkeletonData
impl Freeze for SkeletonData
impl RefUnwindSafe for SkeletonData
impl Unpin for SkeletonData
impl UnsafeUnpin for SkeletonData
impl UnwindSafe for SkeletonData
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