#[non_exhaustive]pub enum Material {
Mica,
Glass,
Solid,
}Expand description
The background of a window.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mica
Mica, the background of main windows in Windows 11. It takes a light tint of the
desktop picture. On Windows 10, the window uses Material::Glass.
Glass
The blurred desktop behind the window, with a tint, as the popup.
Solid
One opaque color.
Trait Implementations§
impl Copy for Material
impl Eq for Material
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Forget for Material
impl Freeze for Material
impl Move for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
impl UnwindSafe for Material
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