Enum wayland_bridge::compositor::SurfaceRole
source · pub enum SurfaceRole {
XdgSurface(ObjectRef<XdgSurface>),
Subsurface(ObjectRef<Subsurface>),
}
Expand description
SurfaceRole
holds the set of every role that can be assigned to a
wl_surface. Each variant will hold an ObjectRef
to the role object.
Variants§
XdgSurface(ObjectRef<XdgSurface>)
The surface is an xdg_surface. Note that xdg_surface isn’t a role
itself, but instead maps to sub-roles (ex: xdg_toplevel). We’ll let
the XdgSurface
handle the xdg sub-roles, however.
Subsurface(ObjectRef<Subsurface>)
Trait Implementations§
source§impl Clone for SurfaceRole
impl Clone for SurfaceRole
source§fn clone(&self) -> SurfaceRole
fn clone(&self) -> SurfaceRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SurfaceRole
impl Debug for SurfaceRole
impl Copy for SurfaceRole
Auto Trait Implementations§
impl Freeze for SurfaceRole
impl !RefUnwindSafe for SurfaceRole
impl !Send for SurfaceRole
impl !Sync for SurfaceRole
impl Unpin for SurfaceRole
impl !UnwindSafe for SurfaceRole
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)