Struct wayland_protocols::xwayland::shell::v1::client::xwayland_surface_v1::XwaylandSurfaceV1
source · pub struct XwaylandSurfaceV1 { /* private fields */ }
Expand description
interface for associating Xwayland windows to wl_surfaces
An Xwayland surface is a surface managed by an Xwayland server. It is used for associating surfaces to Xwayland windows.
The Xwayland server associated with actions in this interface is determined by the Wayland client making the request.
The client must call wl_surface.commit on the corresponding wl_surface for the xwayland_surface_v1 state to take effect.
This interface has no events.
Implementations§
source§impl XwaylandSurfaceV1
impl XwaylandSurfaceV1
sourcepub fn set_serial(&self, serial_lo: u32, serial_hi: u32)
pub fn set_serial(&self, serial_lo: u32, serial_hi: u32)
associates a Xwayland window to a wl_surface
Associates an Xwayland window to a wl_surface. The association state is double-buffered, see wl_surface.commit.
The serial_lo
and serial_hi
parameters specify a non-zero
monotonic serial number which is entirely unique and provided by the
Xwayland server equal to the serial value provided by a client message
with a message type of the WL_SURFACE_SERIAL
atom on the X11 window
for this surface to be associated to.
The serial value in the WL_SURFACE_SERIAL
client message is specified
as having the lo-bits specified in l[0]
and the hi-bits specified
in l[1]
.
If the serial value provided by serial_lo
and serial_hi
is not
valid, the invalid_serial
protocol error will be raised.
An X11 window may be associated with multiple surfaces throughout its lifespan. (eg. unmapping and remapping a window).
For each wl_surface, this state must not be committed more than once,
otherwise the already_associated
protocol error will be raised.
Trait Implementations§
source§impl Borrow<ObjectId> for XwaylandSurfaceV1
impl Borrow<ObjectId> for XwaylandSurfaceV1
source§impl Clone for XwaylandSurfaceV1
impl Clone for XwaylandSurfaceV1
source§fn clone(&self) -> XwaylandSurfaceV1
fn clone(&self) -> XwaylandSurfaceV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XwaylandSurfaceV1
impl Debug for XwaylandSurfaceV1
source§impl Hash for XwaylandSurfaceV1
impl Hash for XwaylandSurfaceV1
source§impl PartialEq<Weak<XwaylandSurfaceV1>> for XwaylandSurfaceV1
impl PartialEq<Weak<XwaylandSurfaceV1>> for XwaylandSurfaceV1
source§impl PartialEq for XwaylandSurfaceV1
impl PartialEq for XwaylandSurfaceV1
source§impl Proxy for XwaylandSurfaceV1
impl Proxy for XwaylandSurfaceV1
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 XwaylandSurfaceV1
Auto Trait Implementations§
impl Freeze for XwaylandSurfaceV1
impl !RefUnwindSafe for XwaylandSurfaceV1
impl Send for XwaylandSurfaceV1
impl Sync for XwaylandSurfaceV1
impl Unpin for XwaylandSurfaceV1
impl !UnwindSafe for XwaylandSurfaceV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.