Struct wayland_server::protocol::wl_touch::WlTouch
[−]
[src]
pub struct WlTouch { /* fields omitted */ }
Methods
impl WlTouch
[src]
fn down(
&self,
serial: u32,
time: u32,
surface: &WlSurface,
id: i32,
x: f64,
y: f64
) -> EventResult<()>
[src]
&self,
serial: u32,
time: u32,
surface: &WlSurface,
id: i32,
x: f64,
y: f64
) -> EventResult<()>
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.
fn up(&self, serial: u32, time: u32, id: i32) -> EventResult<()>
[src]
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.
fn motion(&self, time: u32, id: i32, x: f64, y: f64) -> EventResult<()>
[src]
update of touch point coordinates
A touch point has changed coordinates.
fn frame(&self) -> EventResult<()>
[src]
end of touch frame event
Indicates the end of a contact point list.
fn cancel(&self) -> EventResult<()>
[src]
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 Send for WlTouch
[src]
impl Sync for WlTouch
[src]
impl Resource for WlTouch
[src]
fn ptr(&self) -> *mut wl_resource
[src]
Pointer to the underlying wayland proxy object
unsafe fn from_ptr_new(ptr: *mut wl_resource) -> WlTouch
[src]
Create an instance from a wayland pointer Read more
unsafe fn from_ptr_initialized(ptr: *mut wl_resource) -> WlTouch
[src]
Create an instance from a wayland pointer Read more
fn interface_ptr() -> *const wl_interface
[src]
Pointer to the interface representation
fn interface_name() -> &'static str
[src]
Internal wayland name of this interface
fn supported_version() -> u32
[src]
Max version of this interface supported
fn version(&self) -> i32
[src]
Current version of the interface this resource is instantiated with
fn status(&self) -> Liveness
[src]
Check if the resource behind this handle is actually still alive
fn equals(&self, other: &WlTouch) -> bool
[src]
Check of two handles are actually the same wayland object Read more
fn set_user_data(&self, ptr: *mut ())
[src]
Set a pointer associated as user data on this resource Read more
fn get_user_data(&self) -> *mut ()
[src]
Get the pointer associated as user data on this resource Read more
unsafe fn clone_unchecked(&self) -> WlTouch
[src]
Unsafely clone this resource handle Read more
fn post_error(&self, error_code: u32, msg: String)
[src]
Posts a protocol error to this resource Read more
fn clone(&self) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Clone this resource handle Read more
fn same_client_as<R: Resource>(&self, other: &R) -> bool
[src]
Checks wether this resource and the other are from the same client Read more
impl<ID: 'static> Implementable<ID> for WlTouch
[src]
type Implementation = Implementation<ID>
The type containing the implementation for the event callbacks
unsafe fn __dispatch_msg(
&self,
client: &Client,
opcode: u32,
args: *const wl_argument
) -> Result<(), ()>
[src]
&self,
client: &Client,
opcode: u32,
args: *const wl_argument
) -> Result<(), ()>