Struct rusty_spine::BoneData
source · pub struct BoneData { /* private fields */ }
Expand description
Static bone data imported from Spine.
Implementations§
source§impl BoneData
impl BoneData
sourcepub const fn c_ptr(&self) -> *mut spBoneData
pub const fn c_ptr(&self) -> *mut spBoneData
Get a pointer to the underlying spine-c
type.
pub fn name(&self) -> &str
pub fn index(&self) -> usize
pub fn length(&self) -> f32
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn rotation(&self) -> f32
pub fn scale_x(&self) -> f32
pub fn scale_y(&self) -> f32
pub fn shear_x(&self) -> f32
pub fn shear_y(&self) -> f32
pub fn color(&self) -> Color
pub fn skin_required(&self) -> bool
sourcepub fn transform_mode(&self) -> TransformMode
pub fn transform_mode(&self) -> TransformMode
The transform mode for how parent world transforms affect this bone.
pub fn parent(&self) -> Option<CTmpRef<'_, Self, BoneData>>
Trait Implementations§
source§impl NewFromPtr<spBoneData> for BoneData
impl NewFromPtr<spBoneData> for BoneData
unsafe fn new_from_ptr(c_bone_data: *mut spBoneData) -> Self
Auto Trait Implementations§
impl Freeze for BoneData
impl RefUnwindSafe for BoneData
impl Send for BoneData
impl Sync for BoneData
impl Unpin for BoneData
impl UnwindSafe for BoneData
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