pub enum PointerKind {
Mouse,
Touch,
Pen,
Eraser,
Brush,
Airbrush,
}Expand description
Type of pointing device / stylus tool emitting pointer events.
Variants§
Implementations§
Source§impl PointerKind
impl PointerKind
Sourcepub const fn as_w3c_str(self) -> &'static str
pub const fn as_w3c_str(self) -> &'static str
Returns the W3C PointerEvent pointerType string ("mouse", "touch", or "pen").
Trait Implementations§
Source§impl Clone for PointerKind
impl Clone for PointerKind
impl Copy for PointerKind
Source§impl Debug for PointerKind
impl Debug for PointerKind
impl Eq for PointerKind
Source§impl Hash for PointerKind
impl Hash for PointerKind
Source§impl PartialEq for PointerKind
impl PartialEq for PointerKind
impl StructuralPartialEq for PointerKind
Auto Trait Implementations§
impl Forget for PointerKind
impl Freeze for PointerKind
impl Move for PointerKind
impl RefUnwindSafe for PointerKind
impl Send for PointerKind
impl Sync for PointerKind
impl Unpin for PointerKind
impl UnsafeUnpin for PointerKind
impl UnwindSafe for PointerKind
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<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
Compare self to
key and return true if they are equal.