Function window_shadows::set_shadow
source · pub fn set_shadow(
window: impl HasRawWindowHandle,
enable: bool
) -> Result<(), Error>Expand description
Enables or disables the shadows for a window.
Platform-specific
- Windows: On Windows 11, the window will also have rounded corners.
- macOS: Shadows are always disabled for transparent windows.
- Linux: Unsupported, Shadows are controlled by the compositor installed on the end-user system.