Trait smithay_client_toolkit::seat::SeatHandling [−][src]
pub trait SeatHandling {
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener;
}Trait representing the SeatHandler functions
Implementing this trait on your inner environment struct used with the
environment! by delegating it to its
SeatHandler field will make available the seat-associated
method on your Environment.
Required methods
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener[src]
&mut self,
f: F
) -> SeatListener
Insert a listener for seat events
Implementors
impl SeatHandling for SeatHandler[src]
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener[src]
&mut self,
f: F
) -> SeatListener