pub enum BlurStyle {
Off,
System,
MacosGlassRegular,
MacosGlassClear,
}Expand description
Background blur / liquid-glass style for a window.
Off and System are the legacy bool states (false / true)
preserved for backward compatibility. The macOS variants request
the NSGlassEffectView-backed liquid-glass effect introduced in
macOS 26 (Tahoe). Platforms that don’t support a requested style
degrade to System and emit a tracing::warn rather than failing.
Variants§
Off
System
Native system blur — CGS backdrop on macOS, KWin blur on Wayland, DWM acrylic on Windows.
MacosGlassRegular
macOS 26+: liquid glass with the regular style (some opacity).
MacosGlassClear
macOS 26+: liquid glass with the clear style (highly transparent).
Implementations§
Trait Implementations§
impl Copy for BlurStyle
impl Eq for BlurStyle
impl StructuralPartialEq for BlurStyle
Auto Trait Implementations§
impl Freeze for BlurStyle
impl RefUnwindSafe for BlurStyle
impl Send for BlurStyle
impl Sync for BlurStyle
impl Unpin for BlurStyle
impl UnsafeUnpin for BlurStyle
impl UnwindSafe for BlurStyle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.