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
pub fn is_composited(&self) -> bool
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 duplicate 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§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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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