diff options
author | 2019-11-30 20:38:32 +0900 | |
---|---|---|
committer | 2019-11-30 21:03:50 +0900 | |
commit | f0a857ddde7cf4739c1acde57e8df502e983a254 (patch) | |
tree | 570cab9cd111dbd66ed3ca937a8f0d1963db73ec /winit | |
parent | 811d8b90d71c26100f0933217f5474e090fbf17c (diff) | |
download | iced-f0a857ddde7cf4739c1acde57e8df502e983a254.tar.gz iced-f0a857ddde7cf4739c1acde57e8df502e983a254.tar.bz2 iced-f0a857ddde7cf4739c1acde57e8df502e983a254.zip |
Add `decorations` to Setting
Diffstat (limited to '')
-rw-r--r-- | winit/src/application.rs | 1 | ||||
-rw-r--r-- | winit/src/settings.rs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 1042b412..2a0e56b7 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -105,6 +105,7 @@ pub trait Application: Sized { height: f64::from(height), }) .with_resizable(settings.window.resizable) + .with_decorations(settings.window.decorations) .build(&event_loop) .expect("Open window"); diff --git a/winit/src/settings.rs b/winit/src/settings.rs index d257ecd8..503b9dea 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -17,6 +17,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 { @@ -24,6 +27,7 @@ impl Default for Window { Window { size: (1024, 768), resizable: true, + decorations: true, } } } |