pub trait ProvidesRegistryState: Sized {
    // Required methods
    fn registry(&mut self) -> &mut RegistryState;
    fn runtime_add_global(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        name: u32,
        interface: &str,
        version: u32,
    );
    fn runtime_remove_global(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        name: u32,
        interface: &str,
    );
}
Expand description

Trait which asserts a data type may provide a mutable reference to the registry state.

Typically this trait will be required by delegates or RegistryHandler implementations which need to access the registry utilities provided by Smithay’s client toolkit.

Required Methods§

source

fn registry(&mut self) -> &mut RegistryState

Returns a mutable reference to the registry state.

source

fn runtime_add_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, version: u32, )

Called when a new global has been advertised by the compositor.

This is not called during initial global enumeration.

source

fn runtime_remove_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, )

Called when a global has been destroyed by the compositor.

Object Safety§

This trait is not object safe.

Implementors§