Add PlatformSpecific winit settings for macOS
This commit is contained in:
parent
a7c40665fe
commit
bbe5fe9d71
3 changed files with 32 additions and 6 deletions
13
winit/src/settings/macos.rs
Normal file
13
winit/src/settings/macos.rs
Normal file
|
|
@ -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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue