pub struct ZxdgExporterV2 { /* private fields */ }Expand description
interface for exporting surfaces
A global interface used for exporting surfaces that can later be imported using xdg_importer.
This interface has no events.
Implementations§
Source§impl ZxdgExporterV2
impl ZxdgExporterV2
Sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the xdg_exporter object
Notify the compositor that the xdg_exporter object will no longer be used.
Sourcepub fn export_toplevel<U, D: 'static>(
&self,
surface: &WlSurface,
qh: &QueueHandle<D>,
udata: U,
) -> ZxdgExportedV2
pub fn export_toplevel<U, D: 'static>( &self, surface: &WlSurface, qh: &QueueHandle<D>, udata: U, ) -> 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 an xdg_imported multiple times. Only xdg_toplevel equivalent surfaces may be exported, otherwise an invalid_surface protocol error is sent.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZxdgExporterV2
impl Borrow<ObjectId> for ZxdgExporterV2
Source§impl Clone for ZxdgExporterV2
impl Clone for ZxdgExporterV2
Source§fn clone(&self) -> ZxdgExporterV2
fn clone(&self) -> ZxdgExporterV2
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZxdgExporterV2
impl Debug for ZxdgExporterV2
impl Eq for ZxdgExporterV2
Source§impl Hash for ZxdgExporterV2
impl Hash for ZxdgExporterV2
Source§impl PartialEq for ZxdgExporterV2
impl PartialEq for ZxdgExporterV2
Source§fn eq(&self, other: &ZxdgExporterV2) -> bool
fn eq(&self, other: &ZxdgExporterV2) -> bool
self and other values to be equal, and is used by ==.