Struct runa_wayland_protocols::wayland::wl_subcompositor::v1::requests::GetSubsurface
source · pub struct GetSubsurface {
pub id: NewId,
pub surface: Object,
pub parent: Object,
}
Expand description
give a surface the role sub-surface
Create a sub-surface interface for the given surface, and associate it with the given parent surface. This turns a plain wl_surface into a sub-surface.
The to-be sub-surface must not already have another role, and it must not have an existing wl_subsurface object. Otherwise the bad_surface protocol error is raised.
Adding sub-surfaces to a parent is a double-buffered operation on the parent (see wl_surface.commit). The effect of adding a sub-surface becomes visible on the next time the state of the parent surface is applied.
The parent surface must not be one of the child surface’s descendants, and the parent must be different from the child surface, otherwise the bad_parent protocol error is raised.
This request modifies the behaviour of wl_surface.commit request on the sub-surface, see the documentation on wl_subsurface interface.
Fields§
§id: NewId
§surface: Object
§parent: Object
Implementations§
Trait Implementations§
source§impl Clone for GetSubsurface
impl Clone for GetSubsurface
source§fn clone(&self) -> GetSubsurface
fn clone(&self) -> GetSubsurface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSubsurface
impl Debug for GetSubsurface
source§impl<'a> Deserialize<'a> for GetSubsurface
impl<'a> Deserialize<'a> for GetSubsurface
source§impl PartialEq<GetSubsurface> for GetSubsurface
impl PartialEq<GetSubsurface> for GetSubsurface
source§fn eq(&self, other: &GetSubsurface) -> bool
fn eq(&self, other: &GetSubsurface) -> bool
self
and other
values to be equal, and is used
by ==
.