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
Downtouch 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 |
Upend 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 |
Motionupdate of touch point coordinates
A touch point has changed coordinates.
Fields of Motion
time: u32 | |
id: i32 | |
x: f64 | |
y: f64 |
Frameend of touch frame event
Indicates the end of a contact point list.
Canceltouch 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]
fn is_destructor(&self) -> bool[src]
Whether this message is a destructor Read more
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>[src]
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>
Construct a message of this group from its C representation
fn as_raw_c_in<F, T>(self, f: F) -> T where
F: FnOnce(u32, &mut [wl_argument]) -> T, [src]
F: FnOnce(u32, &mut [wl_argument]) -> T,
Build a C representation of this message Read more