mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Added now window can be toggled embeded or not
This commit is contained in:
@@ -28,7 +28,9 @@ fn main() -> Result<(), eframe::Error> {
|
||||
}
|
||||
ui.label(format!("Hello '{name}', age {age}"));
|
||||
egui::CollapsingHeader::new("Show Test1").show(ui, |ui| {
|
||||
egui::Window::new("Test1").show(ctx, |ui| ui.label("Inside a window!"));
|
||||
egui::Window::new("Test1")
|
||||
.embedded(false)
|
||||
.show(ctx, |ui| ui.label("Inside a window!"));
|
||||
});
|
||||
egui::CollapsingHeader::new("Shout Test2").show(ui, |ui| {
|
||||
egui::Window::new("Test2").show(ctx, |ui| ui.label("Inside a window! 222"));
|
||||
|
||||
Reference in New Issue
Block a user