diff options
author | 2019-11-30 20:38:32 +0900 | |
---|---|---|
committer | 2019-11-30 21:03:50 +0900 | |
commit | f0a857ddde7cf4739c1acde57e8df502e983a254 (patch) | |
tree | 570cab9cd111dbd66ed3ca937a8f0d1963db73ec /src/settings.rs | |
parent | 811d8b90d71c26100f0933217f5474e090fbf17c (diff) | |
download | iced-f0a857ddde7cf4739c1acde57e8df502e983a254.tar.gz iced-f0a857ddde7cf4739c1acde57e8df502e983a254.tar.bz2 iced-f0a857ddde7cf4739c1acde57e8df502e983a254.zip |
Add `decorations` to Setting
Diffstat (limited to 'src/settings.rs')
-rw-r--r-- | src/settings.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.rs b/src/settings.rs index 2556c51b..c9ece5ef 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -19,6 +19,9 @@ pub struct Window { /// Whether the window should be resizable or not. pub resizable: bool, + + /// Whether the window should have a border, a title bar, etc. + pub decorations: bool, } impl Default for Window { @@ -26,6 +29,7 @@ impl Default for Window { Window { size: (1024, 768), resizable: true, + decorations: true, } } } @@ -37,6 +41,7 @@ impl From<Settings> for iced_winit::Settings { window: iced_winit::settings::Window { size: settings.window.size, resizable: settings.window.resizable, + decorations: settings.window.decorations, }, } } |