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

misc code cleanup

This commit is contained in:
Emil Ernerfeldt
2022-07-29 16:07:26 +02:00
parent b0fa0c65cc
commit 4e8a6e3370
6 changed files with 28 additions and 12 deletions

View File

@@ -142,13 +142,6 @@ impl BackendPanel {
if ui.button("Quit").clicked() {
frame.quit();
}
if ui
.button("Drag me to drag window")
.is_pointer_button_down_on()
{
frame.drag_window();
}
}
}
@@ -191,9 +184,18 @@ impl BackendPanel {
{
// frame.set_window_size(egui::vec2(375.0, 812.0)); // iPhone 12 mini
frame.set_window_size(egui::vec2(375.0, 667.0)); // iPhone SE 2nd gen
frame.set_fullscreen(false);
ui.close_menu();
}
});
if !frame.info().window_info.fullscreen
&& ui
.button("Drag me to drag window")
.is_pointer_button_down_on()
{
frame.drag_window();
}
}
}