Struct wayland_client::protocol::wl_subcompositor::WlSubcompositor
source · pub struct WlSubcompositor(/* private fields */);
Implementations§
source§impl WlSubcompositor
impl WlSubcompositor
sourcepub fn destroy(&self)
pub fn destroy(&self)
unbind from the subcompositor interface
Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, wl_subsurface objects included.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn get_subsurface(
&self,
surface: &WlSurface,
parent: &WlSurface
) -> Main<WlSubsurface>
pub fn get_subsurface( &self, surface: &WlSurface, parent: &WlSurface ) -> Main<WlSubsurface>
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 a 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.
This request modifies the behaviour of wl_surface.commit request on the sub-surface, see the documentation on wl_subsurface interface.
Trait Implementations§
source§impl AsRef<Proxy<WlSubcompositor>> for WlSubcompositor
impl AsRef<Proxy<WlSubcompositor>> for WlSubcompositor
source§impl Clone for WlSubcompositor
impl Clone for WlSubcompositor
source§fn clone(&self) -> WlSubcompositor
fn clone(&self) -> WlSubcompositor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WlSubcompositor
impl Debug for WlSubcompositor
source§impl From<Proxy<WlSubcompositor>> for WlSubcompositor
impl From<Proxy<WlSubcompositor>> for WlSubcompositor
source§impl From<WlSubcompositor> for Proxy<WlSubcompositor>
impl From<WlSubcompositor> for Proxy<WlSubcompositor>
source§fn from(value: WlSubcompositor) -> Self
fn from(value: WlSubcompositor) -> Self
source§impl Interface for WlSubcompositor
impl Interface for WlSubcompositor
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
source§impl PartialEq for WlSubcompositor
impl PartialEq for WlSubcompositor
source§fn eq(&self, other: &WlSubcompositor) -> bool
fn eq(&self, other: &WlSubcompositor) -> bool
self
and other
values to be equal, and is used
by ==
.