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
Down
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
serial: u32 | |
time: u32 | |
surface: Proxy<WlSurface> | |
id: i32 | |
x: f64 | |
y: f64 |
Up
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
serial: u32 | |
time: u32 | |
id: i32 |
Motion
update of touch point coordinates
A touch point has changed coordinates.
Fields of Motion
time: u32 | |
id: i32 | |
x: f64 | |
y: f64 |
Frame
end of touch frame event
Indicates the end of a contact point list.
Cancel
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]
impl MessageGroup for Event
const MESSAGES: &'static [MessageDesc]
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
type Map = ProxyMap
fn is_destructor(&self) -> bool
[src]
fn is_destructor(&self) -> bool
Whether this message is a destructor Read more
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
[src]
fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
Retrieve the child Object
associated with this message if any
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
[src]
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
Construct a message from its raw representation
fn into_raw(self, sender_id: u32) -> Message
[src]
fn into_raw(self, sender_id: u32) -> Message
Turn this message into its raw representation