Trait wayland_client::protocol::wl_seat::RequestsTrait
source · pub trait RequestsTrait {
fn get_pointer<F>(&self, implementor: F) -> Result<Proxy<WlPointer>, ()>
where
F: FnOnce(NewProxy<WlPointer>) -> Proxy<WlPointer>;
fn get_keyboard<F>(&self, implementor: F) -> Result<Proxy<WlKeyboard>, ()>
where
F: FnOnce(NewProxy<WlKeyboard>) -> Proxy<WlKeyboard>;
fn get_touch<F>(&self, implementor: F) -> Result<Proxy<WlTouch>, ()>
where
F: FnOnce(NewProxy<WlTouch>) -> Proxy<WlTouch>;
fn release(&self);
}
Required Methods
sourcefn get_pointer<F>(&self, implementor: F) -> Result<Proxy<WlPointer>, ()>where
F: FnOnce(NewProxy<WlPointer>) -> Proxy<WlPointer>,
fn get_pointer<F>(&self, implementor: F) -> Result<Proxy<WlPointer>, ()>where
F: FnOnce(NewProxy<WlPointer>) -> Proxy<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.
sourcefn get_keyboard<F>(&self, implementor: F) -> Result<Proxy<WlKeyboard>, ()>where
F: FnOnce(NewProxy<WlKeyboard>) -> Proxy<WlKeyboard>,
fn get_keyboard<F>(&self, implementor: F) -> Result<Proxy<WlKeyboard>, ()>where
F: FnOnce(NewProxy<WlKeyboard>) -> Proxy<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.
sourcefn get_touch<F>(&self, implementor: F) -> Result<Proxy<WlTouch>, ()>where
F: FnOnce(NewProxy<WlTouch>) -> Proxy<WlTouch>,
fn get_touch<F>(&self, implementor: F) -> Result<Proxy<WlTouch>, ()>where
F: FnOnce(NewProxy<WlTouch>) -> Proxy<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.