pub enum InteractionEventKind {
Show 14 variants
MouseEnter,
MouseLeave,
MouseMove,
MouseOver,
MouseOut,
MouseDown,
MouseUp,
Click,
DoubleClick,
ContextMenu,
TouchStart,
TouchMove,
TouchEnd,
TouchCancel,
}Expand description
Canonical interaction event kind.
Variants§
MouseEnter
Cursor entered a target.
MouseLeave
Cursor left a target.
MouseMove
Cursor moved within the viewport.
MouseOver
Cursor moved over a target.
MouseOut
Cursor moved out of a target.
MouseDown
Pointer or mouse button pressed.
MouseUp
Pointer or mouse button released.
Click
Click or tap activation.
DoubleClick
Double-click activation.
ContextMenu
Secondary-click / context-menu activation.
TouchStart
Touch sequence started.
TouchMove
Touch sequence moved.
TouchEnd
Touch sequence ended.
TouchCancel
Touch sequence was canceled.
Implementations§
Source§impl InteractionEventKind
impl InteractionEventKind
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Return the canonical string name used by web-map interaction APIs.
Sourcepub const fn canonical(self) -> Self
pub const fn canonical(self) -> Self
Return the canonical internal event kind used for hover transitions.
mouseover and mouseout map to the stricter mouseenter and
mouseleave forms so later runtime code can normalize alias handling.
Sourcepub const fn is_hover_event(self) -> bool
pub const fn is_hover_event(self) -> bool
Whether this event kind represents hover-related pointer movement.
Trait Implementations§
Source§impl Clone for InteractionEventKind
impl Clone for InteractionEventKind
Source§fn clone(&self) -> InteractionEventKind
fn clone(&self) -> InteractionEventKind
Returns a duplicate 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 InteractionEventKind
impl Debug for InteractionEventKind
Source§impl Hash for InteractionEventKind
impl Hash for InteractionEventKind
Source§impl PartialEq for InteractionEventKind
impl PartialEq for InteractionEventKind
impl Copy for InteractionEventKind
impl Eq for InteractionEventKind
impl StructuralPartialEq for InteractionEventKind
Auto Trait Implementations§
impl Freeze for InteractionEventKind
impl RefUnwindSafe for InteractionEventKind
impl Send for InteractionEventKind
impl Sync for InteractionEventKind
impl Unpin for InteractionEventKind
impl UnsafeUnpin for InteractionEventKind
impl UnwindSafe for InteractionEventKind
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