mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Now a window will not render other window content
This commit is contained in:
@@ -19,6 +19,11 @@ fn main() -> Result<(), eframe::Error> {
|
||||
|
||||
eframe::run_simple_native("My egui App", options, move |ctx, _frame| {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.label(format!(
|
||||
"Current window: {}, Current rendering window: {}",
|
||||
ctx.current_window(),
|
||||
ctx.current_rendering_window()
|
||||
));
|
||||
ui.heading("My egui Application");
|
||||
ui.horizontal(|ui| {
|
||||
let name_label = ui.label("Your name: ");
|
||||
|
||||
Reference in New Issue
Block a user