#[non_exhaustive]pub enum PointerSource {
Mouse,
Touch,
Pen,
Eraser,
Other,
}Expand description
Physical source that produced a pointer event.
Possible values distinguish mouse, touch, pen, eraser, and other providers.
§Examples
use ailloli_ui_core::event::PointerSource;
assert_eq!(PointerSource::default(), PointerSource::Mouse);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mouse
Conventional mouse or trackpad pointer; this is the default.
Touch
Direct or indirect touch contact.
Pen
Pen or stylus tip.
Eraser
Pen eraser end.
Other
Provider source not represented by a dedicated variant.
Trait Implementations§
Source§impl Clone for PointerSource
impl Clone for PointerSource
Source§fn clone(&self) -> PointerSource
fn clone(&self) -> PointerSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerSource
impl Debug for PointerSource
Source§impl Default for PointerSource
impl Default for PointerSource
Source§fn default() -> PointerSource
fn default() -> PointerSource
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerSource
impl PartialEq for PointerSource
impl Copy for PointerSource
impl Eq for PointerSource
impl StructuralPartialEq for PointerSource
Auto Trait Implementations§
impl Freeze for PointerSource
impl RefUnwindSafe for PointerSource
impl Send for PointerSource
impl Sync for PointerSource
impl Unpin for PointerSource
impl UnwindSafe for PointerSource
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