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

pub trait RequestsTrait {
    fn destroy(&self);
fn export_toplevel<F>(
        &self,
        surface: &Proxy<WlSurface>,
        implementor: F
    ) -> Result<Proxy<ZxdgExportedV2>, ()>
    where
        F: FnOnce(NewProxy<ZxdgExportedV2>) -> Proxy<ZxdgExportedV2>
; }

Required methods

fn destroy(&self)

destroy the xdg_exporter object

Notify the compositor that the xdg_exporter 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 export_toplevel<F>(
    &self,
    surface: &Proxy<WlSurface>,
    implementor: F
) -> Result<Proxy<ZxdgExportedV2>, ()> where
    F: FnOnce(NewProxy<ZxdgExportedV2>) -> Proxy<ZxdgExportedV2>, 

export a toplevel surface

The export_toplevel request exports the passed surface so that it can later be imported via xdg_importer. When called, a new xdg_exported object will be created and xdg_exported.handle will be sent immediately. See the corresponding interface and event for details.

A surface may be exported multiple times, and each exported handle may be used to create a xdg_imported multiple times. Only xdg_toplevel equivalent surfaces may be exported.

Loading content...

Implementations on Foreign Types

impl RequestsTrait for Proxy<ZxdgExporterV2>[src]

Loading content...

Implementors

Loading content...