1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

feat: Set whether to show decorations

This commit is contained in:
zu1k
2021-08-28 20:03:27 +08:00
parent 105b999cb6
commit 0bfcc35acf
4 changed files with 20 additions and 1 deletions

View File

@@ -346,7 +346,15 @@ pub fn run(mut app: Box<dyn epi::App>, native_options: epi::NativeOptions) {
}
{
let epi::backend::AppOutput { quit, window_size } = app_output;
let epi::backend::AppOutput {
quit,
window_size,
decorated,
} = app_output;
if let Some(decorated) = decorated {
display.gl_window().window().set_decorations(decorated);
}
if let Some(window_size) = window_size {
display.gl_window().window().set_inner_size(