#Egui: Adding ui-elements to windows already created in other function
7 messages · Page 1 of 1 (latest)
7 messages · Page 1 of 1 (latest)
If I have created an egui window
egui::Window::new("My Window")
.show(egui_ctx, |ui| {
ui.label("Hello, world!");
});
How can I add more widgets to that window later from another function?
Egui's immediate mode API means you kinda have to do all your widget rendering inside that function
You can pass in a closure perhaps
(one of the reasons I'm not a fan of immediate mode tbh)
Hmm... Thanks! That's unfortunate.