pub enum Event {
    Begin {
        serial: u32,
        time: u32,
        surface: Proxy<WlSurface>,
        fingers: u32,
    },
    Update {
        time: u32,
        dx: f64,
        dy: f64,
    },
    End {
        serial: u32,
        time: u32,
        cancelled: i32,
    },
}

Variants§

§

Begin

Fields

§serial: u32
§time: u32
§surface: Proxy<WlSurface>
§fingers: u32

multi-finger swipe begin

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

§

Update

Fields

§time: u32
§dx: f64
§dy: f64

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.

§

End

Fields

§serial: u32
§time: u32
§cancelled: i32

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.

Trait Implementations§

Wire representation of this MessageGroup
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
Whether this message is a destructor Read more
The opcode of this message
Retrieve the child Object associated with this message if any
Construct a message from its raw representation
Turn this message into its raw representation
Construct a message of this group from its C representation
Build a C representation of this message Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.