pub struct Interaction {
pub shape: usize,
pub inertia: bool,
pub bounds: Option<usize>,
pub axis: Option<&'static str>,
}Expand description
A draggable interaction (rpic extension): the host makes shape s{shape}
grabbable via GSAP Draggable. Interaction, not a timeline effect, so it
rides its own interactions manifest, not animations.
Fields§
§shape: usize§inertia: boolThrow with momentum (GSAP InertiaPlugin).
bounds: Option<usize>Constrain dragging to another shape’s box (s{bounds}).
axis: Option<&'static str>Axis lock: "x" or "y"; None drags freely.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Interaction
impl Debug for Interaction
Source§impl PartialEq for Interaction
impl PartialEq for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interaction
impl UnwindSafe for Interaction
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