summaryrefslogtreecommitdiffstats
path: root/winit/src/settings
diff options
context:
space:
mode:
authorLibravatar Andrew Bentley <andrew@bentley.codes>2020-12-06 11:13:53 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-08-12 20:44:11 +0700
commitbbe5fe9d71eb3b53ce4e84e43ca9ecc1e95bf1b2 (patch)
tree3952ebbabcf6de5285ea45436f8c138b2efe8671 /winit/src/settings
parenta7c40665fea1762aef87a82541cebf7a0b859220 (diff)
downloadiced-bbe5fe9d71eb3b53ce4e84e43ca9ecc1e95bf1b2.tar.gz
iced-bbe5fe9d71eb3b53ce4e84e43ca9ecc1e95bf1b2.tar.bz2
iced-bbe5fe9d71eb3b53ce4e84e43ca9ecc1e95bf1b2.zip
Add PlatformSpecific winit settings for macOS
Diffstat (limited to 'winit/src/settings')
-rw-r--r--winit/src/settings/macos.rs13
-rw-r--r--winit/src/settings/other.rs (renamed from winit/src/settings/not_windows.rs)3
2 files changed, 13 insertions, 3 deletions
diff --git a/winit/src/settings/macos.rs b/winit/src/settings/macos.rs
new file mode 100644
index 00000000..ad4c8cae
--- /dev/null
+++ b/winit/src/settings/macos.rs
@@ -0,0 +1,13 @@
+#![cfg(target_os = "macos")]
+//! Platform specific settings for macOS.
+
+/// 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,
+}
diff --git a/winit/src/settings/not_windows.rs b/winit/src/settings/other.rs
index 5d703f84..a25beed0 100644
--- a/winit/src/settings/not_windows.rs
+++ b/winit/src/settings/other.rs
@@ -1,6 +1,3 @@
-#![cfg(not(target_os = "windows"))]
-//! Platform specific settings for not Windows.
-
/// The platform specific window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct PlatformSpecific {}