-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added macOS platform specific options
- Loading branch information
1 parent
de4ae51
commit ed7b613
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// The platform specific window settings of an application. | ||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] | ||
pub struct PlatformSpecific; | ||
|
||
impl From<PlatformSpecific> for iced_winit::settings::PlatformSpecific { | ||
fn from(_: PlatformSpecific) -> Self { | ||
Default::default() | ||
} | ||
} |