pub struct DragStartEvent {
pub entity: Entity,
pub start: Vec2,
pub position: Vec2,
}Expand description
Emitted once when the pointer moves past the drag-start threshold while pressed on the entity.
Fields§
§entity: EntityThe entity being dragged.
start: Vec2Pointer position where the press began.
position: Vec2Current pointer position when the drag crossed the threshold.
Trait Implementations§
Source§impl Clone for DragStartEvent
impl Clone for DragStartEvent
Source§fn clone(&self) -> DragStartEvent
fn clone(&self) -> DragStartEvent
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 DragStartEvent
impl Debug for DragStartEvent
impl Copy for DragStartEvent
impl Message for DragStartEvent
Auto Trait Implementations§
impl Freeze for DragStartEvent
impl RefUnwindSafe for DragStartEvent
impl Send for DragStartEvent
impl Sync for DragStartEvent
impl Unpin for DragStartEvent
impl UnsafeUnpin for DragStartEvent
impl UnwindSafe for DragStartEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.