Struct smithay_client_toolkit::seat::SeatData
source · pub struct SeatData {
pub name: String,
pub has_pointer: bool,
pub has_keyboard: bool,
pub has_touch: bool,
pub defunct: bool,
/* private fields */
}
Expand description
The metadata associated with a seat
Fields§
§name: String
The name of this seat
It can be used as an identifier for the seat
has_pointer: bool
Whether this seat has a pointer available
has_keyboard: bool
Whether this seat has a keyboard available
has_touch: bool
Whether this seat has a touchscreen available
defunct: bool
Whether this seat has been removed from the registry
Once a seat is removed, you will no longer receive any event on any of its associated devices (pointer, keyboard or touch).
You can thus cleanup all your state associated with this seat.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SeatData
impl Send for SeatData
impl Sync for SeatData
impl Unpin for SeatData
impl UnwindSafe for SeatData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more