pub struct Draggable {
pub target: Place,
pub inertia: bool,
pub bounds: Option<Place>,
pub axis: Option<DragAxis>,
}Expand description
A draggable interaction directive (rpic extension).
Fields§
§target: Place§inertia: boolinertia — throw with momentum (GSAP InertiaPlugin).
bounds: Option<Place>bounds <place> — constrain dragging to another object’s box.
axis: Option<DragAxis>x / y — lock dragging to one axis (None = free).
Trait Implementations§
impl StructuralPartialEq for Draggable
Auto Trait Implementations§
impl Freeze for Draggable
impl RefUnwindSafe for Draggable
impl Send for Draggable
impl Sync for Draggable
impl Unpin for Draggable
impl UnsafeUnpin for Draggable
impl UnwindSafe for Draggable
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