pub struct Clap {
pub x: f64,
pub y: f64,
}
Expand description
A Clap describes either a “click” (mousedown followed by mouseup), OR a
“tap” with one finger (singular fingerdown event).
Claps are a useful alternative to most kinds of Click
or Tap
events,
when you want the same behavior for both to be contained in one place.
Fields§
§x: f64
§y: f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clap
impl RefUnwindSafe for Clap
impl Send for Clap
impl Sync for Clap
impl Unpin for Clap
impl UnwindSafe for Clap
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,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.