summaryrefslogtreecommitdiffstats
path: root/src/window/settings/macos.rs
blob: c08020cf80b2f5988083e138316f2630043088a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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,
        }
    }
}