2019-11-30 21:32:46 +09:00
|
|
|
//! Platform specific settings for Windows.
|
2023-05-11 17:40:09 +01:00
|
|
|
|
2019-11-30 21:32:46 +09:00
|
|
|
/// The platform specific window settings of an application.
|
2021-05-27 14:22:11 +02:00
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
2019-11-30 21:32:46 +09:00
|
|
|
pub struct PlatformSpecific {
|
2021-06-01 18:57:36 +07:00
|
|
|
/// Drag and drop support
|
2021-05-27 14:22:11 +02:00
|
|
|
pub drag_and_drop: bool,
|
2024-01-21 13:14:09 +00:00
|
|
|
|
|
|
|
|
/// Whether show or hide the window icon in the taskbar.
|
|
|
|
|
pub skip_taskbar: bool,
|
2024-09-05 21:17:44 +12:00
|
|
|
|
|
|
|
|
/// 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,
|
2021-05-27 14:22:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Default for PlatformSpecific {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
Self {
|
|
|
|
|
drag_and_drop: true,
|
2024-01-21 13:14:09 +00:00
|
|
|
skip_taskbar: false,
|
2024-09-05 21:17:44 +12:00
|
|
|
undecorated_shadow: false,
|
2021-05-27 14:22:11 +02:00
|
|
|
}
|
|
|
|
|
}
|
2019-11-30 21:32:46 +09:00
|
|
|
}
|