[][src]Trait wayland_server::protocol::wl_seat::RequestHandler

pub trait RequestHandler {
    fn get_pointer(&mut self, object: WlSeat, id: NewResource<WlPointer>) { ... }
fn get_keyboard(&mut self, object: WlSeat, id: NewResource<WlKeyboard>) { ... }
fn get_touch(&mut self, object: WlSeat, id: NewResource<WlTouch>) { ... }
fn release(&mut self, object: WlSeat) { ... } }

An interface for handling requests.

Provided methods

fn get_pointer(&mut self, object: WlSeat, id: NewResource<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(&mut self, object: WlSeat, id: NewResource<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(&mut self, object: WlSeat, id: NewResource<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.

fn release(&mut self, object: WlSeat)

release the seat object

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

This is a destructor, you cannot send requests to this object any longer once this method is called. Only available since version 5 of the interface.

Loading content...

Implementors

Loading content...