pub struct DragResult {
pub changed: bool,
pub clicked: bool,
pub hovered: bool,
pub held: bool,
}Expand description
Result of a drag interaction
Fields§
§changed: boolTrue if the underlying value changed this frame
clicked: boolTrue if it was clicked this frame
hovered: boolTrue if hovered this frame
held: boolTrue if held/active this frame
Trait Implementations§
Source§impl Clone for DragResult
impl Clone for DragResult
Source§fn clone(&self) -> DragResult
fn clone(&self) -> DragResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DragResult
impl Debug for DragResult
Source§impl Default for DragResult
impl Default for DragResult
Source§fn default() -> DragResult
fn default() -> DragResult
Returns the “default value” for a type. Read more
impl Copy for DragResult
Auto Trait Implementations§
impl Freeze for DragResult
impl RefUnwindSafe for DragResult
impl Send for DragResult
impl Sync for DragResult
impl Unpin for DragResult
impl UnwindSafe for DragResult
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