1
0
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:
Konkitoman
2023-07-19 14:01:12 +03:00
parent 1d52990306
commit 23bb315468
7 changed files with 101 additions and 37 deletions

View File

@@ -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: ");