diff options
author | 2021-08-12 21:04:20 +0700 | |
---|---|---|
committer | 2021-08-12 21:04:20 +0700 | |
commit | 0f5242a728ea2b5853937ec5051e34c7d63c70bf (patch) | |
tree | a8ba5659b14beb2c5c70b57fa40372c1cb2672ca /winit/src/settings/macos.rs | |
parent | a7c40665fea1762aef87a82541cebf7a0b859220 (diff) | |
parent | e3f170a341f610ab9622e92dbd9d0593814f1a25 (diff) | |
download | iced-0f5242a728ea2b5853937ec5051e34c7d63c70bf.tar.gz iced-0f5242a728ea2b5853937ec5051e34c7d63c70bf.tar.bz2 iced-0f5242a728ea2b5853937ec5051e34c7d63c70bf.zip |
Merge pull request #654 from atbentley/hide-titlebar-macos
Hide titlebar on macos
Diffstat (limited to 'winit/src/settings/macos.rs')
-rw-r--r-- | winit/src/settings/macos.rs | 13 |
1 files changed, 13 insertions, 0 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, +} |