[][src]Trait wayland_protocols::unstable::xdg_foreign::v2::client::zxdg_importer_v2::RequestsTrait

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

fn destroy(&self)

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.

fn import_toplevel<F>(
    &self,
    handle: String,
    implementor: F
) -> Result<Proxy<ZxdgImportedV2>, ()> where
    F: FnOnce(NewProxy<ZxdgImportedV2>) -> Proxy<ZxdgImportedV2>, 

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.

Loading content...

Implementations on Foreign Types

impl RequestsTrait for Proxy<ZxdgImporterV2>[src]

Loading content...

Implementors

Loading content...