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