Struct egui::input_state::Click
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)