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: ObjectImplementations§
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 more