[][src]Struct wayland_client::protocol::wl_seat::WlSeat

pub struct WlSeat(_);

Methods

impl WlSeat[src]

pub fn get_pointer<F>(&self, implementor: F) -> Result<WlPointer, ()> where
    F: FnOnce(NewProxy<WlPointer>) -> WlPointer
[src]

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.

pub fn get_keyboard<F>(&self, implementor: F) -> Result<WlKeyboard, ()> where
    F: FnOnce(NewProxy<WlKeyboard>) -> WlKeyboard
[src]

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.

pub fn get_touch<F>(&self, implementor: F) -> Result<WlTouch, ()> where
    F: FnOnce(NewProxy<WlTouch>) -> WlTouch
[src]

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.

pub fn release(&self)[src]

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.

Trait Implementations

impl<T: EventHandler> HandledBy<T> for WlSeat[src]

impl Eq for WlSeat[src]

impl Clone for WlSeat[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<WlSeat> for WlSeat[src]

impl AsRef<Proxy<WlSeat>> for WlSeat[src]

impl From<Proxy<WlSeat>> for WlSeat[src]

impl From<WlSeat> for Proxy<WlSeat>[src]

impl Interface for WlSeat[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

Auto Trait Implementations

impl Send for WlSeat

impl Sync for WlSeat

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]