Struct rusty_spine::PathConstraint
source · pub struct PathConstraint { /* private fields */ }
Expand description
Implementations§
source§impl PathConstraint
impl PathConstraint
pub fn set_to_setup_pose(&self)
sourcepub fn data(&self) -> CTmpRef<'_, Self, PathConstraintData>
pub fn data(&self) -> CTmpRef<'_, Self, PathConstraintData>
The path constraint’s setup pose data.
pub fn data_mut(&mut self) -> CTmpMut<'_, Self, PathConstraintData>
pub fn active(&self) -> bool
sourcepub fn mix_rotate(&self) -> f32
pub fn mix_rotate(&self) -> f32
A percentage (0-1) that controls the mix between the constrained and unconstrained rotation.
pub fn set_mix_rotate(&mut self, value: f32)
sourcepub fn mix_x(&self) -> f32
pub fn mix_x(&self) -> f32
A percentage (0-1) that controls the mix between the constrained and unconstrained translation X.
pub fn set_mix_x(&mut self, value: f32)
sourcepub fn mix_y(&self) -> f32
pub fn mix_y(&self) -> f32
A percentage (0-1) that controls the mix between the constrained and unconstrained translation Y.
pub fn set_mix_y(&mut self, value: f32)
pub fn set_position(&mut self, value: f32)
pub fn set_spacing(&mut self, value: f32)
pub fn bones_count(&self) -> usize
sourcepub fn bones(&self) -> CTmpPtrIterator<'_, PathConstraint, Bone, spBone> ⓘ
pub fn bones(&self) -> CTmpPtrIterator<'_, PathConstraint, Bone, spBone> ⓘ
The bones that will be modified by this path constraint.
pub fn bone_at_index(&self, index: usize) -> Option<CTmpRef<'_, Self, Bone>>
sourcepub fn target(&self) -> CTmpRef<'_, Self, Slot>
pub fn target(&self) -> CTmpRef<'_, Self, Slot>
The slot whose path attachment will be used to constrained the bones.
pub fn target_mut(&mut self) -> CTmpMut<'_, Self, Slot>
sourcepub const fn c_ptr(&self) -> *mut spPathConstraint
pub const fn c_ptr(&self) -> *mut spPathConstraint
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for PathConstraint
impl Debug for PathConstraint
source§impl NewFromPtr<spPathConstraint> for PathConstraint
impl NewFromPtr<spPathConstraint> for PathConstraint
unsafe fn new_from_ptr(c_slot: *mut spPathConstraint) -> Self
Auto Trait Implementations§
impl Freeze for PathConstraint
impl RefUnwindSafe for PathConstraint
impl Send for PathConstraint
impl Sync for PathConstraint
impl Unpin for PathConstraint
impl UnwindSafe for PathConstraint
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