From ed7b61380473c7c88c25b5d4d17112b844a9364d Mon Sep 17 00:00:00 2001 From: Casper Storm Date: Thu, 23 Feb 2023 14:33:53 +0100 Subject: Added macOS platform specific options --- src/window/settings/macos.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/window/settings/macos.rs (limited to 'src/window/settings/macos.rs') diff --git a/src/window/settings/macos.rs b/src/window/settings/macos.rs new file mode 100644 index 00000000..c08020cf --- /dev/null +++ b/src/window/settings/macos.rs @@ -0,0 +1,20 @@ +/// The platform specific window settings of an application. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +pub struct PlatformSpecific { + /// Hides the window title. + pub title_hidden: bool, + /// Makes the titlebar transparent and allows the content to appear behind it. + pub titlebar_transparent: bool, + /// Makes the window content appear behind the titlebar. + pub fullsize_content_view: bool, +} + +impl From for iced_winit::settings::PlatformSpecific { + fn from(platform_specific: PlatformSpecific) -> Self { + Self { + title_hidden: platform_specific.title_hidden, + titlebar_transparent: platform_specific.titlebar_transparent, + fullsize_content_view: platform_specific.fullsize_content_view, + } + } +} -- cgit