Struct smithay_client_toolkit::seat::SeatHandler [−][src]
pub struct SeatHandler { /* fields omitted */ }
Expand description
A simple handler for seats
This handler will manage seats and track their capabilities.
You can register callbacks using the SeatHandling::listen
to be notified whenever a seat is created, destroyed, or its capabilities change.
Implementations
Create a new SeatHandler
Trait Implementations
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
A new instance of this global was created with given id and version
The instance with given id was removed
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener
Insert a listener for seat events