From bbe5fe9d71eb3b53ce4e84e43ca9ecc1e95bf1b2 Mon Sep 17 00:00:00 2001 From: Andrew Bentley Date: Sun, 6 Dec 2020 11:13:53 +0100 Subject: Add PlatformSpecific winit settings for macOS --- winit/src/settings/macos.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 winit/src/settings/macos.rs (limited to 'winit/src/settings/macos.rs') 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, +} -- cgit