pub enum PointerChange {
Cancel,
Add,
Remove,
Hover,
Down,
Move,
Up,
PanZoomStart,
PanZoomUpdate,
PanZoomEnd,
}Expand description
How the pointer has changed since the last report.
Variants§
Cancel
The input from the pointer is no longer directed towards this receiver.
Add
The device has started tracking the pointer.
For example, the pointer might be hovering above the device, having not yet made contact with the surface of the device.
Remove
The device is no longer tracking the pointer.
For example, the pointer might have drifted out of the device’s hover detection range or might have been disconnected from the system entirely.
Hover
The pointer has moved with respect to the device while not in contact with the device.
Down
The pointer has made contact with the device.
Move
The pointer has moved with respect to the device while in contact with the device.
Up
The pointer has stopped making contact with the device.
PanZoomStart
A pan/zoom has started on this pointer.
This type of event will always have kind PointerDeviceKind::Trackpad.
PanZoomUpdate
The pan/zoom on this pointer has updated.
This type of event will always have kind PointerDeviceKind::Trackpad.
PanZoomEnd
The pan/zoom on this pointer has ended.
This type of event will always have kind PointerDeviceKind::Trackpad.
Trait Implementations§
Source§impl Clone for PointerChange
impl Clone for PointerChange
impl Copy for PointerChange
Source§impl Debug for PointerChange
impl Debug for PointerChange
impl Eq for PointerChange
Source§impl Hash for PointerChange
impl Hash for PointerChange
Source§impl PartialEq for PointerChange
impl PartialEq for PointerChange
impl StructuralPartialEq for PointerChange
Auto Trait Implementations§
impl Freeze for PointerChange
impl RefUnwindSafe for PointerChange
impl Send for PointerChange
impl Sync for PointerChange
impl Unpin for PointerChange
impl UnsafeUnpin for PointerChange
impl UnwindSafe for PointerChange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.