3 ms·
It sounds like limitations of egui / Rust instead of immediate mode GUI. I've made flexbox-like layout systems in immediate mode GUIs and found them far easier
by slmjkdbtl 3y ago
It sounds like limitations of egui / Rust instead of immediate mode GUI. I've made flexbox-like layout systems in immediate mode GUIs and found them far easier than retained mode, since everything is redrawn every frame.
- SeanAnderson 3y agoThat's fair. I don't have experience with other immediate mode libraries. It's good to hear that it's not an intrinsic limitation https://github.com/emilk/egui?tab=readme-ov-file#layout https://github.com/emilk/egui?tab=readme-ov-file#layout Here the author discusses the issue directly. They note that there are solutions to the issue, but that they all come with (in their opinion) significant drawbacks. For my use case, if I have to do a lot of manual work to achieve what I consider behavior that should be handled by the framework, then I don't find that compelling and am inclined to use a retained mode implementation.
- bollu 3y agoCould you link to your code? I am interested in the API design of meshing a layout system with immediate mode GUIs