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

pub struct WlSeat(_);

Implementations

impl WlSeat[src]

pub fn capabilities(&self, capabilities: Capability)[src]

seat capabilities changed

This is emitted whenever a seat gains or loses the pointer, keyboard or touch capabilities. The argument is a capability enum containing the complete set of capabilities this seat has.

When the pointer capability is added, a client may create a wl_pointer object using the wl_seat.get_pointer request. This object will receive pointer events until the capability is removed in the future.

When the pointer capability is removed, a client should destroy the wl_pointer objects associated with the seat where the capability was removed, using the wl_pointer.release request. No further pointer events will be received on these objects.

In some compositors, if a seat regains the pointer capability and a client has a previously obtained wl_pointer object of version 4 or less, that object may start sending pointer events again. This behavior is considered a misinterpretation of the intended behavior and must not be relied upon by the client. wl_pointer objects of version 5 or later must not send events if created before the most recent event notifying the client of an added pointer capability.

The above behavior also applies to wl_keyboard and wl_touch with the keyboard and touch capabilities, respectively.

pub fn name(&self, name: String)[src]

unique identifier for this seat

In a multiseat configuration this can be used by the client to help identify which physical devices the seat represents. Based on the seat configuration used by the compositor.

Only available since version 2 of the interface.

Trait Implementations

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

impl Clone for WlSeat[src]

impl Debug for WlSeat[src]

impl Eq for WlSeat[src]

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

impl From<WlSeat> for Resource<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

impl PartialEq<WlSeat> for WlSeat[src]

impl StructuralEq for WlSeat[src]

impl StructuralPartialEq for WlSeat[src]

Auto Trait Implementations

impl !RefUnwindSafe for WlSeat

impl Send for WlSeat

impl Sync for WlSeat

impl Unpin for WlSeat

impl !UnwindSafe for WlSeat

Blanket Implementations

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

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

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

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.