#[repr(u32)]pub enum PointerEventPhase {
Add = 0,
Hover = 1,
Down = 2,
Move = 3,
Up = 4,
Remove = 5,
Cancel = 6,
}
Variants§
Add = 0
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.
Hover = 1
The pointer has moved with respect to the device while not in contact with the device.
Down = 2
The pointer has made contact with the device.
For MOUSE
devices, this is triggered when the primary button is pressed
down to emulate a touch on the screen.
Move = 3
The pointer has moved with respect to the device while in contact with the device.
Up = 4
The pointer has stopped making contact with the device.
For MOUSE
devices, this is triggered when the primary button is
released.
Remove = 5
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.
Cancel = 6
The input from the pointer is no longer directed towards this receiver.
Implementations§
Source§impl PointerEventPhase
impl PointerEventPhase
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for PointerEventPhase
impl Clone for PointerEventPhase
Source§fn clone(&self) -> PointerEventPhase
fn clone(&self) -> PointerEventPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PointerEventPhase
impl Debug for PointerEventPhase
Source§impl<D: ResourceDialect> Decode<PointerEventPhase, D> for PointerEventPhase
impl<D: ResourceDialect> Decode<PointerEventPhase, D> for PointerEventPhase
Source§impl<D: ResourceDialect> Encode<PointerEventPhase, D> for PointerEventPhase
impl<D: ResourceDialect> Encode<PointerEventPhase, D> for PointerEventPhase
Source§impl Hash for PointerEventPhase
impl Hash for PointerEventPhase
Source§impl Ord for PointerEventPhase
impl Ord for PointerEventPhase
Source§fn cmp(&self, other: &PointerEventPhase) -> Ordering
fn cmp(&self, other: &PointerEventPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PointerEventPhase
impl PartialEq for PointerEventPhase
Source§impl PartialOrd for PointerEventPhase
impl PartialOrd for PointerEventPhase
Source§impl TypeMarker for PointerEventPhase
impl TypeMarker for PointerEventPhase
Source§type Owned = PointerEventPhase
type Owned = PointerEventPhase
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for PointerEventPhase
impl ValueTypeMarker for PointerEventPhase
Source§type Borrowed<'a> = PointerEventPhase
type Borrowed<'a> = PointerEventPhase
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for PointerEventPhase
impl Eq for PointerEventPhase
impl StructuralPartialEq for PointerEventPhase
Auto Trait Implementations§
impl Freeze for PointerEventPhase
impl RefUnwindSafe for PointerEventPhase
impl Send for PointerEventPhase
impl Sync for PointerEventPhase
impl Unpin for PointerEventPhase
impl UnwindSafe for PointerEventPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)