iced-yoda/core/src/window/settings/windows.rs
Night_Hunter d1ceada119
add option for undecorated_shadow on windows (#2285)
* add option for undecorated_shadow on windows

* formated
2024-09-05 11:17:44 +02:00

27 lines
780 B
Rust

//! Platform specific settings for Windows.
/// The platform specific window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct PlatformSpecific {
/// Drag and drop support
pub drag_and_drop: bool,
/// Whether show or hide the window icon in the taskbar.
pub skip_taskbar: bool,
/// Shows or hides the background drop shadow for undecorated windows.
///
/// The shadow is hidden by default.
/// Enabling the shadow causes a thin 1px line to appear on the top of the window.
pub undecorated_shadow: bool,
}
impl Default for PlatformSpecific {
fn default() -> Self {
Self {
drag_and_drop: true,
skip_taskbar: false,
undecorated_shadow: false,
}
}
}