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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user