pub struct PointerRelease {
pub x: f32,
pub y: f32,
pub button: MouseButton,
pub pointer: PointerKind,
pub finger: Option<u64>,
pub modifiers: KeyModifiers,
pub captured: bool,
pub lost: Option<bool>,
}Expand description
Data from a pointer release event (mouse button up, touch end).
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.
lost: Option<bool>Whether a touch release happened outside the widget’s bounds
(touch lost event). Absent for mouse / pen releases.
Trait Implementations§
Source§impl Clone for PointerRelease
impl Clone for PointerRelease
Source§fn clone(&self) -> PointerRelease
fn clone(&self) -> PointerRelease
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 PointerRelease
impl RefUnwindSafe for PointerRelease
impl Send for PointerRelease
impl Sync for PointerRelease
impl Unpin for PointerRelease
impl UnsafeUnpin for PointerRelease
impl UnwindSafe for PointerRelease
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