Struct wayland_client::wayland::seat::WlSeat [] [src]

pub struct WlSeat {
    // some fields omitted
}

group of input devices

A seat is a group of keyboards, pointer and touch devices. This object is published as a global during start up, or when such a device is hot plugged. A seat typically has a pointer and maintains a keyboard focus and a pointer focus.

Methods

impl WlSeat

fn get_pointer(&self) -> WlPointer

return pointer object

The ID provided will be initialized to the wl_pointer interface for this seat.

This request only takes effect if the seat has the pointer capability.

fn get_keyboard(&self) -> WlKeyboard

return keyboard object

The ID provided will be initialized to the wl_keyboard interface for this seat.

This request only takes effect if the seat has the keyboard capability.

fn get_touch(&self) -> WlTouch

return touch object

The ID provided will be initialized to the wl_touch interface for this seat.

This request only takes effect if the seat has the touch capability.

fn release(self)

release the seat object

Using this request client can tell the server that it is not going to use the seat object anymore.

Requires interface version >= 5.

Trait Implementations

impl Sync for WlSeat

impl Send for WlSeat

impl Proxy for WlSeat

fn ptr(&self) -> *mut wl_proxy

fn interface() -> *mut wl_interface

fn interface_name() -> &'static str

fn version() -> u32

fn id(&self) -> ProxyId

unsafe fn from_ptr(ptr: *mut wl_proxy) -> WlSeat

unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> WlSeat

fn set_evt_iterator(&mut self, evt: &EventIterator)

impl Debug for WlSeat

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl Drop for WlSeat

fn drop(&mut self)