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, or has had the pointer capability in the past. It is a protocol violation to issue this request on a seat that has never had 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, or has had the keyboard capability in the past. It is a protocol violation to issue this request on a seat that has never had 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, or has had the touch capability in the past. It is a protocol violation to issue this request on a seat that has never had the touch capability.

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

fn set_event_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