Trait smithay_client_toolkit::environment::MultiGlobalHandler[][src]

pub trait MultiGlobalHandler<I: Interface> {
    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>>; }
[]

Required trait for implementing a handler for “multi” globals

Required methods

fn created(
    &mut self,
    registry: Attached<WlRegistry>,
    id: u32,
    version: u32,
    ddata: DispatchData<'_>
)
[src][]

A new instance of this global was created with given id and version

fn removed(&mut self, id: u32, ddata: DispatchData<'_>)[src][]

The instance with given id was removed

fn get_all(&self) -> Vec<Attached<I>>[src][]

Access all the currently existing instances

Implementors

impl MultiGlobalHandler<WlOutput> for OutputHandler[src][+]

impl MultiGlobalHandler<WlSeat> for SeatHandler[src][+]