pub struct Response<T> {
pub active: bool,
pub activated: bool,
pub deactivated: bool,
pub released: bool,
pub position: Point<T>,
pub delta: Point<T>,
}Expand description
the response of Interact
activated implies active unless deactivated, and released implies deactivated
Fields§
§active: boola contact is being dragged
activated: bool§deactivated: bool§released: boolthe drag ended by letting go rather than by cancellation or its widget disappearing
position: Point<T>§delta: Point<T>movement since the previous update, or since the press when activated
Trait Implementations§
impl<T: Copy> Copy for Response<T>
impl<T: PartialEq> StructuralPartialEq for Response<T>
Auto Trait Implementations§
impl<T> Forget for Response<T>
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> Move for Response<T>
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnsafeUnpin for Response<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Response<T>where
T: UnwindSafe,
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