Struct smithay_client_toolkit::output::OutputHandler [−][src]
pub struct OutputHandler { /* fields omitted */ }
Expand description
A handler for wl_output
This handler can be used for managing wl_output
in the
init_environment!
macro, and is automatically
included in new_default_environment!
.
It aggregates the output information and makes it available via the
with_output_info
function.
Implementations
Create a new instance of this handler
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(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