pub struct Touchscreen(/* private fields */);Implementations§
Source§impl Touchscreen
impl Touchscreen
Sourcepub fn destroyed(&self, serial: u32)
pub fn destroyed(&self, serial: u32)
This touch has been removed and a client should release all associated resources.
This ei_touchscreen object will be destroyed by the EIS implementation immmediately after after this event is sent and as such the client must not attempt to use it after that point.
Sourcepub fn down(&self, touchid: u32, x: f32, y: f32)
pub fn down(&self, touchid: u32, x: f32, y: f32)
See the ei_touchscreen.down request for details.
It is a protocol violation to send this request for a client of an ei_handshake.context_type other than receiver.
It is a protocol violation to send a touch down in the same frame as a touch motion or touch up.
Sourcepub fn motion(&self, touchid: u32, x: f32, y: f32)
pub fn motion(&self, touchid: u32, x: f32, y: f32)
See the ei_touchscreen.motion request for details.
It is a protocol violation to send this request for a client of an ei_handshake.context_type other than receiver.
It is a protocol violation to send a touch motion in the same frame as a touch down or touch up.
Sourcepub fn up(&self, touchid: u32)
pub fn up(&self, touchid: u32)
See the ei_touchscreen.up request for details.
It is a protocol violation to send this request for a client of an ei_handshake.context_type other than receiver.
If a touch is released via ei_touchscreen.up, no ei_touchscreen.cancel event is sent for this same touch. Likewise, a touch released with ei_touchscreen.cancel must not be released via ei_touchscreen.up.
It is a protocol violation to send a touch up in the same frame as a touch motion or touch down.
Sourcepub fn cancel(&self, touchid: u32)
pub fn cancel(&self, touchid: u32)
See the ei_touchscreen.cancel request for details.
It is a protocol violation to send this event for a client of an ei_handshake.context_type other than receiver.
If a touch is cancelled via ei_touchscreen.cancel, no ei_touchscreen.up event is sent for this same touch. Likewise, a touch released with ei_touchscreen.up must not be cancelled via ei_touchscreen.cancel.
It is a protocol violation to send a touch cancel event in the same frame as a touch motion or touch down.
Trait Implementations§
Source§impl Clone for Touchscreen
impl Clone for Touchscreen
Source§fn clone(&self) -> Touchscreen
fn clone(&self) -> Touchscreen
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more