Enum wayland_client::protocol::wl_touch::Event[][src]

pub enum Event {
    Down {
        serial: u32,
        time: u32,
        surface: Proxy<WlSurface>,
        id: i32,
        x: f64,
        y: f64,
    },
    Up {
        serial: u32,
        time: u32,
        id: i32,
    },
    Motion {
        time: u32,
        id: i32,
        x: f64,
        y: f64,
    },
    Frame,
    Cancel,
}

Variants

touch down event and beginning of a touch sequence

A new touch point has appeared on the surface. This touch point is assigned a unique ID. Future events from this touch point reference this ID. The ID ceases to be valid after a touch up event and may be reused in the future.

Fields of Down

end of a touch event sequence

The touch point has disappeared. No further events will be sent for this touch point and the touch point's ID is released and may be reused in a future touch down event.

Fields of Up

update of touch point coordinates

A touch point has changed coordinates.

Fields of Motion

end of touch frame event

Indicates the end of a contact point list.

touch session cancelled

Sent if the compositor decides the touch stream is a global gesture. No further events are sent to the clients from that particular gesture. Touch cancellation applies to all touch points currently active on this client's surface. The client is responsible for finalizing the touch points, future touch points on this surface may reuse the touch point ID.

Trait Implementations

impl MessageGroup for Event
[src]

MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "down",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Object,
                           super::ArgumentType::Int,
                           super::ArgumentType::Fixed,
                           super::ArgumentType::Fixed],},
  super::MessageDesc{name: "up",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Int],},
  super::MessageDesc{name: "motion",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Int,
                           super::ArgumentType::Fixed,
                           super::ArgumentType::Fixed],},
  super::MessageDesc{name: "frame", since: 1, signature: &[],},
  super::MessageDesc{name: "cancel", since: 1, signature: &[],}]

Wire representation of this MessageGroup

Whether this message is a destructor Read more

Retrieve the child Object associated with this message if any

Construct a message from its raw representation

Turn this message into its raw representation

Auto Trait Implementations

impl Send for Event

impl Sync for Event