Trait smithay_client_toolkit::output::OutputHandling
source · [−]pub trait OutputHandling {
fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> OutputStatusListener;
}
Expand description
Trait representing the OutputHandler functions
Implementing this trait on your inner environment struct used with the
environment!
by delegating it to its
OutputHandler
field will make available the output-associated
method on your Environment
.
Required methods
fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> OutputStatusListener
fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> OutputStatusListener
Insert a listener for output creation and removal events