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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more