pub enum SurfaceMode {
Opaque,
Translucent,
}Expand description
Whether a shell’s GPU surface should be created with an alpha channel.
See the module docs’ Latch contract — this only ever moves
Opaque → Translucent, never back.
Variants§
Opaque
Default: an opaque surface, matching every shell’s pre-platform-views behavior.
Translucent
Create the surface with an alpha channel so a native sibling view placed behind it can show through unpainted regions.
Trait Implementations§
Source§impl Clone for SurfaceMode
impl Clone for SurfaceMode
impl Copy for SurfaceMode
Source§impl Debug for SurfaceMode
impl Debug for SurfaceMode
Source§impl Default for SurfaceMode
impl Default for SurfaceMode
impl Eq for SurfaceMode
Source§impl PartialEq for SurfaceMode
impl PartialEq for SurfaceMode
impl StructuralPartialEq for SurfaceMode
Auto Trait Implementations§
impl Freeze for SurfaceMode
impl RefUnwindSafe for SurfaceMode
impl Send for SurfaceMode
impl Sync for SurfaceMode
impl Unpin for SurfaceMode
impl UnsafeUnpin for SurfaceMode
impl UnwindSafe for SurfaceMode
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.