[][src]Trait wayland_protocols::unstable::xdg_foreign::v1::client::zxdg_exporter_v1::RequestsTrait

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

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<F>(
    &self,
    surface: &Proxy<WlSurface>,
    implementor: F
) -> Result<Proxy<ZxdgExportedV1>, ()> where
    F: FnOnce(NewProxy<ZxdgExportedV1>) -> Proxy<ZxdgExportedV1>, 

export a surface

The export 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_surface surfaces may be exported.

Loading content...

Implementations on Foreign Types

impl RequestsTrait for Proxy<ZxdgExporterV1>[src]

Loading content...

Implementors

Loading content...