[][src]Enum wayland_protocols::unstable::pointer_gestures::v1::client::zwp_pointer_gesture_swipe_v1::Event

pub enum Event {
    Begin {
        serial: u32,
        time: u32,
        surface: WlSurface,
        fingers: u32,
    },
    Update {
        time: u32,
        dx: f64,
        dy: f64,
    },
    End {
        serial: u32,
        time: u32,
        cancelled: i32,
    },
    // some variants omitted
}

Variants

Begin

multi-finger swipe begin

This event is sent when a multi-finger swipe gesture is detected on the device.

Fields of Begin

serial: u32time: u32surface: WlSurfacefingers: u32
Update

multi-finger swipe motion

This event is sent when a multi-finger swipe gesture changes the position of the logical center.

The dx and dy coordinates are relative coordinates of the logical center of the gesture compared to the previous event.

Fields of Update

time: u32dx: f64dy: f64
End

multi-finger swipe end

This event is sent when a multi-finger swipe gesture ceases to be valid. This may happen when one or more fingers are lifted or the gesture is cancelled.

When a gesture is cancelled, the client should undo state changes caused by this gesture. What causes a gesture to be cancelled is implementation-dependent.

Fields of End

serial: u32time: u32cancelled: i32

Trait Implementations

impl MessageGroup for Event[src]

type Map = ProxyMap

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

Auto Trait Implementations

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl !RefUnwindSafe for Event

impl !UnwindSafe for Event

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Downcast for T where
    T: Any