pub trait RequestsTrait {
    fn destroy(&self);
    fn import_toplevel<F>(
        &self,
        handle: String,
        implementor: F
    ) -> Result<Proxy<ZxdgImportedV2>, ()>
    where
        F: FnOnce(NewProxy<ZxdgImportedV2>) -> Proxy<ZxdgImportedV2>
; }

Required Methods§

destroy the xdg_importer object

Notify the compositor that the xdg_importer object will no longer be used.

This is a destructor, you cannot send requests to this object any longer once this method is called.

import a toplevel surface

The import_toplevel request imports a surface from any client given a handle retrieved by exporting said surface using xdg_exporter.export_toplevel. When called, a new xdg_imported object will be created. This new object represents the imported surface, and the importing client can manipulate its relationship using it. See xdg_imported for details.

Implementations on Foreign Types§

Implementors§