Struct smithay_client_toolkit::seat::SeatHandler
source · pub struct SeatHandler { /* private fields */ }
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§
source§impl SeatHandler
impl SeatHandler
sourcepub fn new() -> SeatHandler
pub fn new() -> SeatHandler
Create a new SeatHandler
Trait Implementations§
source§impl Debug for SeatHandler
impl Debug for SeatHandler
source§impl MultiGlobalHandler<WlSeat> for SeatHandler
impl MultiGlobalHandler<WlSeat> for SeatHandler
source§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
source§fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
The instance with given id was removed
source§impl SeatHandling for SeatHandler
impl SeatHandling for SeatHandler
source§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
Auto Trait Implementations§
impl !RefUnwindSafe for SeatHandler
impl !Send for SeatHandler
impl !Sync for SeatHandler
impl Unpin for SeatHandler
impl !UnwindSafe for SeatHandler
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