Enum input::ClickMethod
source · #[non_exhaustive]pub enum ClickMethod {
ButtonAreas,
Clickfinger,
}
Expand description
The click method defines when to generate software-emulated buttons, usually on a device that does not have a specific physical button available.
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.
ButtonAreas
Use software-button areas (see Clickfinger behavior) to generate button events.
Clickfinger
The number of fingers decides which button press to generate.
Trait Implementations§
source§impl Clone for ClickMethod
impl Clone for ClickMethod
source§fn clone(&self) -> ClickMethod
fn clone(&self) -> ClickMethod
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 ClickMethod
impl Debug for ClickMethod
source§impl Hash for ClickMethod
impl Hash for ClickMethod
source§impl PartialEq for ClickMethod
impl PartialEq for ClickMethod
source§fn eq(&self, other: &ClickMethod) -> bool
fn eq(&self, other: &ClickMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClickMethod
impl Eq for ClickMethod
impl StructuralEq for ClickMethod
impl StructuralPartialEq for ClickMethod
Auto Trait Implementations§
impl RefUnwindSafe for ClickMethod
impl Send for ClickMethod
impl Sync for ClickMethod
impl Unpin for ClickMethod
impl UnwindSafe for ClickMethod
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