Struct smithay_client_toolkit::output::OutputHandler
source · [−]pub struct OutputHandler { /* private fields */ }
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
sourceimpl OutputHandler
impl OutputHandler
sourcepub fn new() -> OutputHandler
pub fn new() -> OutputHandler
Create a new instance of this handler
Trait Implementations
sourceimpl Debug for OutputHandler
impl Debug for OutputHandler
sourceimpl MultiGlobalHandler<WlOutput> for OutputHandler
impl MultiGlobalHandler<WlOutput> for OutputHandler
sourceimpl OutputHandling for OutputHandler
impl OutputHandling for OutputHandler
sourcefn 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
Auto Trait Implementations
impl !RefUnwindSafe for OutputHandler
impl !Send for OutputHandler
impl !Sync for OutputHandler
impl Unpin for OutputHandler
impl !UnwindSafe for OutputHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more