Add decorations to Setting

This commit is contained in:
hatoo 2019-11-30 20:38:32 +09:00
parent 811d8b90d7
commit f0a857ddde
3 changed files with 10 additions and 0 deletions

View file

@ -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,
},
}
}