pub struct PointerEvent {
pub phase: PointerPhase,
pub position: Point,
pub button: PointerButton,
}Expand description
One pointer event: three fields — phase, position, button — and no pointer-kind axis.
position is logical pixels in the receiving widget’s local space.
Fields§
§phase: PointerPhase§position: PointTrait 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.