pub enum CompositorSurfaceKind {
Blit,
Underlay,
Overlay,
}
Expand description
Which method is being used to draw a requested compositor surface
Variants§
Blit
Don’t create a native compositor surface, blit it as a regular primitive
Underlay
Create a native surface, draw it under content (must be opaque)
Overlay
Create a native surface, draw it between sub-slices (supports transparent)
Implementations§
source§impl CompositorSurfaceKind
impl CompositorSurfaceKind
sourcefn needs_cutout(&self) -> bool
fn needs_cutout(&self) -> bool
Returns true if the type of compositor surface needs an alpha cutout rendered
source§impl CompositorSurfaceKind
impl CompositorSurfaceKind
sourcefn supports_segments(&self) -> bool
fn supports_segments(&self) -> bool
Returns true if the compositor surface strategy supports segment rendering
Trait Implementations§
source§impl Clone for CompositorSurfaceKind
impl Clone for CompositorSurfaceKind
source§fn clone(&self) -> CompositorSurfaceKind
fn clone(&self) -> CompositorSurfaceKind
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 CompositorSurfaceKind
impl Debug for CompositorSurfaceKind
source§impl MallocSizeOf for CompositorSurfaceKind
impl MallocSizeOf for CompositorSurfaceKind
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for CompositorSurfaceKind
impl PartialEq for CompositorSurfaceKind
source§fn eq(&self, other: &CompositorSurfaceKind) -> bool
fn eq(&self, other: &CompositorSurfaceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CompositorSurfaceKind
impl Serialize for CompositorSurfaceKind
impl Copy for CompositorSurfaceKind
impl StructuralPartialEq for CompositorSurfaceKind
Auto Trait Implementations§
impl Freeze for CompositorSurfaceKind
impl RefUnwindSafe for CompositorSurfaceKind
impl Send for CompositorSurfaceKind
impl Sync for CompositorSurfaceKind
impl Unpin for CompositorSurfaceKind
impl UnwindSafe for CompositorSurfaceKind
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> 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