[][src]Enum paddle::PointerEventType

#[repr(u8)]pub enum PointerEventType {
    PrimaryClick,
    SecondaryClick,
    DoubleClick,
    Up,
    Down,
    Move,
    Enter,
    Leave,
}

Rust representation for mouse and touch event types.

Several different browser events are mapped to this unified pointer representation. For example, all three of mousemove, touchmove, and pointermove are mapped to PointerEventType::Move. If the browser generates multiple events mapped to the same PointerEventType, Paddle makes an effort to detect this and only forward one of them.

Variants

PrimaryClick

Left-click or short tap

SecondaryClick

Right-click or long touch

DoubleClick

Double-click or double-tap

Up

Release mouse or touch

Down

Press mouse or touch

Move

Pointer is moved to a new coordinate

Enter

Pointer is moved from outside the frame to inside the frame

Leave

Pointer is moved from inside the frame to outside the frame

Trait Implementations

impl Clone for PointerEventType[src]

impl Copy for PointerEventType[src]

impl Debug for PointerEventType[src]

impl Eq for PointerEventType[src]

impl Hash for PointerEventType[src]

impl PartialEq<PointerEventType> for PointerEventType[src]

impl StructuralEq for PointerEventType[src]

impl StructuralPartialEq for PointerEventType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Activity for T where
    T: Any
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,