#[non_exhaustive]pub enum BlurMaterial {
FullScreenUI,
HudWindow,
Menu,
Popover,
Sidebar,
Selection,
Titlebar,
HeaderView,
ToolTip,
UnderWindowBackground,
}Expand description
The material drawn behind a blurred window, corresponding to NSVisualEffectMaterial.
Only the materials that AppKit renders behind the window are listed. The remaining
NSVisualEffectMaterial values are meant for opaque backgrounds, and draw a placeholder
rather than a blur when used this way.
The material determines the tint and translucency of the blur, so the result is not an
untinted blur of a chosen radius; AppKit exposes no public API for that. Enable the
private-apple-apis Cargo feature for the private one, which this setting then no longer
affects.
See Window::set_blur for the blur itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FullScreenUI
Corresponds to NSVisualEffectMaterialFullScreenUI.
Tints the least of the available materials, making it the closest to a plain backdrop blur. This is the default.
HudWindow
Corresponds to NSVisualEffectMaterialHUDWindow.
Menu
Corresponds to NSVisualEffectMaterialMenu.
Popover
Corresponds to NSVisualEffectMaterialPopover.
Sidebar
Corresponds to NSVisualEffectMaterialSidebar.
Selection
Corresponds to NSVisualEffectMaterialSelection.
Titlebar
Corresponds to NSVisualEffectMaterialTitlebar.
HeaderView
Corresponds to NSVisualEffectMaterialHeaderView.
ToolTip
Corresponds to NSVisualEffectMaterialToolTip.
UnderWindowBackground
Corresponds to NSVisualEffectMaterialUnderWindowBackground.
Tints heavily towards the window’s background colour, which can leave the blur barely visible over light content.
Trait Implementations§
Source§impl Clone for BlurMaterial
impl Clone for BlurMaterial
Source§fn clone(&self) -> BlurMaterial
fn clone(&self) -> BlurMaterial
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more