pub struct PointerEvent {
pub phase: PointerPhase,
pub position: Point,
pub button: PointerButton,
}Expand description
A single pointer event in the coordinate space of the widget receiving it.
position is logical (density-independent) pixels, already translated
into the receiving widget’s local space by the container chain that routed it
(see crate::widget::ChildPod::event_child).
Fields§
§phase: PointerPhaseThe gesture phase.
position: PointThe pointer location, in the receiving widget’s local logical space.
Which button the event carries (Primary for touch/pen).
Trait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
impl Copy for PointerEvent
Source§impl Debug for PointerEvent
impl Debug for PointerEvent
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnsafeUnpin for PointerEvent
impl UnwindSafe for PointerEvent
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.