Struct input::Seat
[−]
[src]
pub struct Seat { /* fields omitted */ }
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]
fn context(&self) -> Libinput
Get the libinput context from the seat.
fn physical_name(&self) -> &str
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.
fn logical_name(&self) -> &str
Return the logical name of the seat.
This is an identifier to group sets of devices within the compositor.
Trait Implementations
impl Eq for Seat
[src]
impl Debug for Seat
[src]
impl FromRaw<libinput_seat> for Seat
[src]
unsafe fn from_raw(ffi: *mut libinput_seat) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_seat> for Seat
[src]
fn as_raw(&self) -> *const libinput_seat
Receive a raw pointer representing this type.
impl Userdata for Seat
[src]
unsafe fn userdata_raw<T: 'static>(&self) -> *mut T
unsafe fn set_userdata_raw<T: 'static>(&self, ptr: *mut T)
unsafe fn userdata<T: 'static>(&self) -> Option<&T>
Receive a reference to the attached userdata, if one exists. Read more
unsafe fn userdata_mut<T: 'static>(&mut self) -> Option<&mut T>
Receive a mutable reference to the attached userdata, if one exists. Read more
unsafe fn set_userdata<T: 'static, U: 'static>(
&mut self,
new: Option<T>
) -> Option<U>
&mut self,
new: Option<T>
) -> Option<U>
Set userdata and receive the currently set userdata Read more
impl Clone for Seat
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Drop for Seat
[src]
impl PartialEq for Seat
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.