pub trait MultiGlobalHandler<I: Interface> {
// Required methods
fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
);
fn removed(&mut self, id: u32, ddata: DispatchData<'_>);
fn get_all(&self) -> Vec<Attached<I>>;
}
Expand description
Required trait for implementing a handler for “multi” globals
Required Methods§
sourcefn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
A new instance of this global was created with given id and version
sourcefn removed(&mut self, id: u32, ddata: DispatchData<'_>)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
The instance with given id was removed