[−][src]Struct input::Seat
A seat has two identifiers, the physical name and the logical name.
A device is always assigned to exactly one seat. It may change to a different logical seat but it cannot change physical seats. See Seats for details.
Methods
impl Seat
[src]
pub fn context(&self) -> Libinput
[src]
Get the libinput context from the seat.
pub fn physical_name(&self) -> &str
[src]
Return the physical name of the seat.
For libinput contexts created from udev, this is always the
same value as passed into udev_assign_seat
and all
seats from that context will have the same physical name.
The physical name of the seat is one that is usually set by the system or lower levels of the stack. In most cases, this is the base filter for devices - devices assigned to seats outside the current seat will not be available to the caller.
pub fn logical_name(&self) -> &str
[src]
Return the logical name of the seat.
This is an identifier to group sets of devices within the compositor.
Trait Implementations
impl AsRaw<libinput_seat> for Seat
[src]
fn as_raw(&self) -> *const libinput_seat
[src]
impl Clone for Seat
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Context for Seat
[src]
impl Debug for Seat
[src]
impl Drop for Seat
[src]
impl Eq for Seat
[src]
impl FromRaw<libinput_seat> for Seat
[src]
unsafe fn from_raw(ffi: *mut libinput_seat, context: &Libinput) -> Self
[src]
impl Hash for Seat
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Seat> for Seat
[src]
impl StructuralEq for Seat
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Seat
impl !Send for Seat
impl !Sync for Seat
impl Unpin for Seat
impl !UnwindSafe for Seat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,