pub(crate) struct Click {
pub pos: Pos2,
pub count: u32,
pub modifiers: Modifiers,
}
Expand description
A pointer (mouse or touch) click.
Fields§
§pos: Pos2
§count: u32
1 or 2 (double-click) or 3 (triple-click)
modifiers: Modifiers
Allows you to check for e.g. shift-click
Implementations§
Trait Implementations§
impl StructuralPartialEq for Click
Auto Trait Implementations§
impl Freeze for Click
impl RefUnwindSafe for Click
impl Send for Click
impl Sync for Click
impl Unpin for Click
impl UnwindSafe for Click
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