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
[src]

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
[src]

impl Send for WlSeat
[src]

impl Proxy for WlSeat
[src]

fn ptr(&self) -> *mut wl_proxy

fn interface() -> *mut wl_interface

fn interface_name() -> &'static str

The internal name of this interface, as advertized by the registry if it is a global.

fn version() -> u32

The maximum version of this interface handled by the library.

fn id(&self) -> ProxyId

Get the id of this proxy

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

Creates a proxy from a fresh ptr

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

Creates a proxy from a ptr that is managed elsewhere Read more

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

Set the event iterator associated to this proxy

impl Debug for WlSeat
[src]

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

Formats the value using the given formatter.

impl Drop for WlSeat
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more