Trait smithay_client_toolkit::environment::GlobalHandler [−][src]
pub trait GlobalHandler<I: Interface> { fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
); fn get(&self) -> Option<Attached<I>>; }
Required trait for implementing a handler for “single” globals
Required methods
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
[src][−]
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
This global was created and signaled in the registry with given id and version
fn get(&self) -> Option<Attached<I>>
[src][−]
Access the global if it was signaled