#[non_exhaustive]pub enum ActivationKind {
Normal,
FocusOnly,
}Expand description
Whether a pointer gesture is allowed to activate action controls.
Possible values are normal activation and focus-only activation.
§Examples
use ailloli_ui_core::event::ActivationKind;
assert_eq!(ActivationKind::default(), ActivationKind::Normal);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.
Normal
Gesture may focus and activate controls; this is the default.
FocusOnly
The platform used this gesture only to activate/focus the application.
Trait Implementations§
Source§impl Clone for ActivationKind
impl Clone for ActivationKind
Source§fn clone(&self) -> ActivationKind
fn clone(&self) -> ActivationKind
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 ActivationKind
impl Debug for ActivationKind
Source§impl Default for ActivationKind
impl Default for ActivationKind
Source§fn default() -> ActivationKind
fn default() -> ActivationKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for ActivationKind
impl PartialEq for ActivationKind
impl Copy for ActivationKind
impl Eq for ActivationKind
impl StructuralPartialEq for ActivationKind
Auto Trait Implementations§
impl Freeze for ActivationKind
impl RefUnwindSafe for ActivationKind
impl Send for ActivationKind
impl Sync for ActivationKind
impl Unpin for ActivationKind
impl UnwindSafe for ActivationKind
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