1
0
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:
Konkitoman
2023-07-19 10:57:13 +03:00
parent 680a547a68
commit cd48e2b1ad
2 changed files with 157 additions and 132 deletions

View File

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