pub struct PointerPress {
pub x: f32,
pub y: f32,
pub button: MouseButton,
pub pointer: PointerKind,
pub finger: Option<u64>,
pub modifiers: KeyModifiers,
pub captured: bool,
}Expand description
Data from a pointer press event (mouse button down, touch start).
Fields§
§x: f32X coordinate.
y: f32Y coordinate.
Pointer button.
pointer: PointerKindPointer kind (Mouse, Touch, Pen).
finger: Option<u64>Finger index for multi-touch events.
modifiers: KeyModifiersActive modifier keys.
captured: boolWhether the event was consumed by a widget before reaching the global subscription layer.
Trait Implementations§
Source§impl Clone for PointerPress
impl Clone for PointerPress
Source§fn clone(&self) -> PointerPress
fn clone(&self) -> PointerPress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PointerPress
impl RefUnwindSafe for PointerPress
impl Send for PointerPress
impl Sync for PointerPress
impl Unpin for PointerPress
impl UnsafeUnpin for PointerPress
impl UnwindSafe for PointerPress
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