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]

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

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...