pub struct DragInfo {
pub claimed: bool,
pub moved: bool,
pub ended: bool,
pub dx: f32,
pub dy: f32,
}Expand description
Ergebnis eines Mausgriffs (Ui::drag).
Fields§
§claimed: boolDiese ID hält die Maus (vom Druck- bis zum Loslass-Frame).
moved: boolSeit dem Druck mindestens min_px Weg zurückgelegt.
ended: boolFeuert genau einmal im Loslass-Frame.
dx: f32Zeiger-Weg dieses Frames in x/y (0 im Claim-Frame).
dy: f32Trait Implementations§
impl Copy for DragInfo
impl StructuralPartialEq for DragInfo
Auto Trait Implementations§
impl Freeze for DragInfo
impl RefUnwindSafe for DragInfo
impl Send for DragInfo
impl Sync for DragInfo
impl Unpin for DragInfo
impl UnsafeUnpin for DragInfo
impl UnwindSafe for DragInfo
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