pub enum WindowBackgroundAppearance {
Opaque,
Transparent,
Blurred,
MicaBackdrop,
MicaAltBackdrop,
}Expand description
The appearance of the background of the window itself, when there is no content or the content is transparent.
Variants§
Opaque
Opaque.
This lets the window manager know that content behind this window does not need to be drawn.
Actual color depends on the system and themes should define a fully opaque background color instead.
Transparent
Plain alpha transparency.
Blurred
Transparency, but the contents behind the window are blurred.
Not always supported.
MicaBackdrop
The Mica backdrop material, supported on Windows 11.
MicaAltBackdrop
The Mica Alt backdrop material, supported on Windows 11.
Trait Implementations§
Source§impl Clone for WindowBackgroundAppearance
impl Clone for WindowBackgroundAppearance
Source§fn clone(&self) -> WindowBackgroundAppearance
fn clone(&self) -> WindowBackgroundAppearance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowBackgroundAppearance
impl Debug for WindowBackgroundAppearance
Source§impl Default for WindowBackgroundAppearance
impl Default for WindowBackgroundAppearance
Source§fn default() -> WindowBackgroundAppearance
fn default() -> WindowBackgroundAppearance
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowBackgroundAppearance
impl PartialEq for WindowBackgroundAppearance
Source§fn eq(&self, other: &WindowBackgroundAppearance) -> bool
fn eq(&self, other: &WindowBackgroundAppearance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WindowBackgroundAppearance
impl StructuralPartialEq for WindowBackgroundAppearance
Auto Trait Implementations§
impl Freeze for WindowBackgroundAppearance
impl RefUnwindSafe for WindowBackgroundAppearance
impl Send for WindowBackgroundAppearance
impl Sync for WindowBackgroundAppearance
impl Unpin for WindowBackgroundAppearance
impl UnsafeUnpin for WindowBackgroundAppearance
impl UnwindSafe for WindowBackgroundAppearance
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().