summaryrefslogtreecommitdiffstats
path: root/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar hatoo <hato2000@gmail.com>2019-11-30 20:38:32 +0900
committerLibravatar hatoo <hato2000@gmail.com>2019-11-30 21:03:50 +0900
commitf0a857ddde7cf4739c1acde57e8df502e983a254 (patch)
tree570cab9cd111dbd66ed3ca937a8f0d1963db73ec /src/settings.rs
parent811d8b90d71c26100f0933217f5474e090fbf17c (diff)
downloadiced-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.rs5
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,
},
}
}