Struct rusty_spine::BoneData
source · [−]pub struct BoneData { /* private fields */ }
Expand description
Static bone data imported from Spine.
Implementations
sourceimpl BoneData
impl BoneData
pub fn c_ptr(&self) -> *mut spBoneData
pub fn name(&self) -> &str
pub fn index(&self) -> i32
pub fn length(&self) -> f32
pub fn set_length(&mut self, value: f32)
pub fn x(&self) -> f32
pub fn set_x(&mut self, value: f32)
pub fn y(&self) -> f32
pub fn set_y(&mut self, value: f32)
pub fn rotation(&self) -> f32
pub fn set_rotation(&mut self, value: f32)
pub fn scale_x(&self) -> f32
pub fn set_scale_x(&mut self, value: f32)
pub fn scale_y(&self) -> f32
pub fn set_scale_y(&mut self, value: f32)
pub fn shear_x(&self) -> f32
pub fn set_shear_x(&mut self, value: f32)
pub fn shear_y(&self) -> f32
pub fn set_shear_y(&mut self, value: f32)
pub fn color(&self) -> Color
pub fn color_mut(&mut self) -> &mut Color
pub fn skin_required(&self) -> bool
pub fn set_skin_required(&mut self, value: bool)
pub fn transform_mode(&self) -> TransformMode
pub fn set_transform_mode(&self, value: TransformMode)
pub fn parent(&self) -> Option<CTmpRef<'_, Self, BoneData>>
pub fn parent_mut(&mut self) -> Option<CTmpMut<'_, Self, BoneData>>
sourceimpl BoneData
impl BoneData
pub fn position(&self) -> Vector2<f32>
pub fn set_position(&mut self, position: impl Into<Vector2<f32>>)
pub fn scale(&self) -> Vector2<f32>
pub fn set_scale(&mut self, scale: impl Into<Vector2<f32>>)
pub fn shear(&self) -> Vector2<f32>
pub fn set_shear(&mut self, shear: impl Into<Vector2<f32>>)
Trait Implementations
sourceimpl NewFromPtr<spBoneData> for BoneData
impl NewFromPtr<spBoneData> for BoneData
unsafe fn new_from_ptr(c_bone_data: *const spBoneData) -> Self
Auto Trait Implementations
impl RefUnwindSafe for BoneData
impl Send for BoneData
impl Sync for BoneData
impl Unpin for BoneData
impl UnwindSafe for BoneData
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