Struct wayland_client::protocol::wl_subcompositor::WlSubcompositor
source · [−]pub struct WlSubcompositor(_);
Implementations
sourceimpl 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
sourceimpl AsRef<Proxy<WlSubcompositor>> for WlSubcompositor
impl AsRef<Proxy<WlSubcompositor>> for WlSubcompositor
sourceimpl Clone for WlSubcompositor
impl Clone for WlSubcompositor
sourcefn clone(&self) -> WlSubcompositor
fn clone(&self) -> WlSubcompositor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WlSubcompositor
impl Debug for WlSubcompositor
sourceimpl From<Proxy<WlSubcompositor>> for WlSubcompositor
impl From<Proxy<WlSubcompositor>> for WlSubcompositor
sourceimpl From<WlSubcompositor> for Proxy<WlSubcompositor>
impl From<WlSubcompositor> for Proxy<WlSubcompositor>
sourcefn from(value: WlSubcompositor) -> Self
fn from(value: WlSubcompositor) -> Self
Converts to this type from the input type.
sourceimpl Interface for WlSubcompositor
impl Interface for WlSubcompositor
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<WlSubcompositor> for WlSubcompositor
impl PartialEq<WlSubcompositor> for WlSubcompositor
sourcefn eq(&self, other: &WlSubcompositor) -> bool
fn eq(&self, other: &WlSubcompositor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for WlSubcompositor
impl StructuralEq for WlSubcompositor
impl StructuralPartialEq for WlSubcompositor
Auto Trait Implementations
impl !RefUnwindSafe for WlSubcompositor
impl Send for WlSubcompositor
impl Sync for WlSubcompositor
impl Unpin for WlSubcompositor
impl !UnwindSafe for WlSubcompositor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert 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
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more