Struct wayland_protocols::unstable::xdg_foreign::v2::client::zxdg_exporter_v2::ZxdgExporterV2
source · pub struct ZxdgExporterV2(/* private fields */);
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.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn export_toplevel(&self, surface: &WlSurface) -> Main<ZxdgExportedV2>
pub fn export_toplevel(&self, surface: &WlSurface) -> Main<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 AsRef<Proxy<ZxdgExporterV2>> for ZxdgExporterV2
impl AsRef<Proxy<ZxdgExporterV2>> for ZxdgExporterV2
source§impl Clone for ZxdgExporterV2
impl Clone for ZxdgExporterV2
source§fn clone(&self) -> ZxdgExporterV2
fn clone(&self) -> ZxdgExporterV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZxdgExporterV2
impl Debug for ZxdgExporterV2
source§impl From<Proxy<ZxdgExporterV2>> for ZxdgExporterV2
impl From<Proxy<ZxdgExporterV2>> for ZxdgExporterV2
source§impl From<ZxdgExporterV2> for Proxy<ZxdgExporterV2>
impl From<ZxdgExporterV2> for Proxy<ZxdgExporterV2>
source§fn from(value: ZxdgExporterV2) -> Self
fn from(value: ZxdgExporterV2) -> Self
Converts to this type from the input type.
source§impl Interface for ZxdgExporterV2
impl Interface for ZxdgExporterV2
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZxdgExporterV2
impl PartialEq for ZxdgExporterV2
source§fn eq(&self, other: &ZxdgExporterV2) -> bool
fn eq(&self, other: &ZxdgExporterV2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZxdgExporterV2
impl StructuralEq for ZxdgExporterV2
impl StructuralPartialEq for ZxdgExporterV2
Auto Trait Implementations§
impl !RefUnwindSafe for ZxdgExporterV2
impl Send for ZxdgExporterV2
impl Sync for ZxdgExporterV2
impl Unpin for ZxdgExporterV2
impl !UnwindSafe for ZxdgExporterV2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more