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

feat: Set whether to show decorations (#672)

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
zu1k
2021-09-08 03:42:14 +08:00
committed by GitHub
parent 241667b078
commit 19eed94499
4 changed files with 20 additions and 1 deletions

View File

@@ -337,7 +337,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(