Struct wayland_protocols::xdg::foreign::zv2::client::zxdg_exporter_v2::ZxdgExporterV2
source · pub struct ZxdgExporterV2 {
id: ObjectId,
version: u32,
data: Option<Arc<dyn ObjectData>>,
backend: WeakBackend,
}
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.
Fields§
§id: ObjectId
§version: u32
§data: Option<Arc<dyn ObjectData>>
§backend: WeakBackend
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: Send + Sync + 'static, D: Dispatch<ZxdgExportedV2, U> + 'static>(
&self,
surface: &WlSurface,
qh: &QueueHandle<D>,
udata: U,
) -> ZxdgExportedV2
pub fn export_toplevel<U: Send + Sync + 'static, D: Dispatch<ZxdgExportedV2, U> + '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 · 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
source§impl Hash for ZxdgExporterV2
impl Hash for ZxdgExporterV2
source§impl PartialEq<Weak<ZxdgExporterV2>> for ZxdgExporterV2
impl PartialEq<Weak<ZxdgExporterV2>> 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 ==
.source§impl Proxy for ZxdgExporterV2
impl Proxy for ZxdgExporterV2
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for ZxdgExporterV2
Auto Trait Implementations§
impl Freeze for ZxdgExporterV2
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.