egui/crates
Icekey e9afd3c52d
Add `UiBuilder::global_scope` and `UiBuilder::id` (#7372)
I added a new flag to the UiBuilder so that it is possible to move child
widgets around the ui tree without losing state information.
Currently there is no way to create child widgets with the same id at
different locations in the ui tree since ids change in relation the the
parent id. With the new flag a unique global scope can be created which
always results in the same ids even at different locations.
You still need to ensure that the widgets only get rendered once in
frame.

This feature can be used to fix a issue i am having with the
https://github.com/lucasmerlin/hello_egui crate.


* Closes https://github.com/lucasmerlin/hello_egui/issues/75
* [X] I have followed the instructions in the PR template

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2025-08-05 19:26:52 +02:00
..
ecolor Align `Color32` to 4 bytes (#7318) 2025-08-05 12:04:30 +02:00
eframe Request a redraw when the url change through the `popstate` event listener (#7403) 2025-08-05 11:31:05 +02:00
egui Add `UiBuilder::global_scope` and `UiBuilder::id` (#7372) 2025-08-05 19:26:52 +02:00
egui-wgpu Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00
egui-winit Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00
egui_demo_app Improve texture filtering by doing it in gamma space (#7311) 2025-07-07 17:46:27 +02:00
egui_demo_lib Rename `egui::containers::menu::Bar` to `egui::MenuBar` (#7327) 2025-07-10 10:33:48 +02:00
egui_extras Fix memory leak when `forget_image` is called while loading (#7380) 2025-08-05 14:41:32 +02:00
egui_glow Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00
egui_kittest Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Implement `BitOr` and `BitOrAssign` for `Rect` (#7319) 2025-07-09 15:29:51 +02:00
epaint Fix multi-line `TextShape` rotation (#7404) 2025-08-05 13:11:45 +02:00
epaint_default_fonts Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00