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

Replace ctx.background_ui with CentralPanel

This commit is contained in:
Emil Ernerfeldt
2020-10-24 18:37:20 +02:00
parent 44a7cac046
commit 4b549a773e
8 changed files with 100 additions and 35 deletions

View File

@@ -12,7 +12,7 @@ struct MyApp {
impl egui::app::App for MyApp {
/// Called each time the UI needs repainting, which may be many times per second.
/// Put your widgets into a `SidePanel`, `TopPanel`, `Window` or into `ctx.background_ui()`.
/// Put your widgets into a `SidePanel`, `TopPanel`, `CentralPanel`, `Window` or `Area`.
fn ui(
&mut self,
ctx: &std::sync::Arc<egui::Context>,