[−][src]Struct smithay_client_toolkit::output::OutputHandler
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
impl OutputHandler
[src]
pub fn new() -> OutputHandler
[src]
Create a new instance of this handler
Trait Implementations
impl MultiGlobalHandler<WlOutput> for OutputHandler
[src]
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
[src]
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
_: DispatchData<'_>
)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
[src]
fn get_all(&self) -> Vec<Attached<WlOutput>>
[src]
impl OutputHandling for OutputHandler
[src]
fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> OutputStatusListener
[src]
&mut self,
f: F
) -> OutputStatusListener
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,