[][src]Trait smithay_client_toolkit::environment::GlobalHandler

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<'_>
)

This global was created and signaled in the registry with given id and version

fn get(&self) -> Option<Attached<I>>

Access the global if it was signaled

Loading content...

Implementors

impl GlobalHandler<WlDataDeviceManager> for DataDeviceHandler[src]

impl GlobalHandler<WlShell> for ShellHandler[src]

impl GlobalHandler<WlShm> for ShmHandler[src]

impl GlobalHandler<GtkPrimarySelectionDeviceManager> for PrimarySelectionHandler[src]

impl GlobalHandler<XdgWmBase> for ShellHandler[src]

impl GlobalHandler<ZwpPrimarySelectionDeviceManagerV1> for PrimarySelectionHandler[src]

impl GlobalHandler<ZxdgShellV6> for ShellHandler[src]

impl<I: Interface + Clone + From<Proxy<I>> + AsRef<Proxy<I>>> GlobalHandler<I> for SimpleGlobal<I>[src]

Loading content...