Struct rusty_spine::PointAttachment
source · [−]pub struct PointAttachment { /* private fields */ }
Expand description
A lightweight, single point attachment with a position and rotation.
Implementations
sourceimpl PointAttachment
impl PointAttachment
pub fn compute_world_position(&self, bone: &Bone) -> (f32, f32)
pub fn compute_world_rotation(&self, bone: &Bone) -> f32
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
pub fn color(&self) -> Color
pub fn rotation(&self) -> f32
pub fn set_rotation(&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 c_ptr(&self) -> *mut spPointAttachment
Trait Implementations
sourceimpl Debug for PointAttachment
impl Debug for PointAttachment
sourceimpl NewFromPtr<spPointAttachment> for PointAttachment
impl NewFromPtr<spPointAttachment> for PointAttachment
unsafe fn new_from_ptr(c_point_attachment: *const spPointAttachment) -> Self
Auto Trait Implementations
impl RefUnwindSafe for PointAttachment
impl Send for PointAttachment
impl Sync for PointAttachment
impl Unpin for PointAttachment
impl UnwindSafe for PointAttachment
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