diff options
Diffstat (limited to 'src/window/settings')
-rw-r--r-- | src/window/settings/macos.rs | 20 | ||||
-rw-r--r-- | src/window/settings/other.rs | 9 |
2 files changed, 29 insertions, 0 deletions
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<PlatformSpecific> 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, + } + } +} diff --git a/src/window/settings/other.rs b/src/window/settings/other.rs new file mode 100644 index 00000000..943d9f0d --- /dev/null +++ b/src/window/settings/other.rs @@ -0,0 +1,9 @@ +/// The platform specific window settings of an application. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +pub struct PlatformSpecific; + +impl From<PlatformSpecific> for iced_winit::settings::PlatformSpecific { + fn from(_: PlatformSpecific) -> Self { + Default::default() + } +} |