Replies: 6 comments 5 replies
-
To be honest I don't really know how to best approach this one, especially the multiple native windows part when undocking. At the moment I think I will continue my project without the idea of undocking the side panels or the main editor tabs. It would be great to have that option at some point, but the MVP for my project does not require docking. If I come up with something I will let you know. |
Beta Was this translation helpful? Give feedback.
-
Hey, I just created an issue about this feature. I think if egui is trying to be Rust's imgui this feature is important! |
Beta Was this translation helpful? Give feedback.
-
Docking would be very nice, but it requires quite a bit of design work to think through how to implement it properly. We have panels now that can section up a window, so that's a start. Perhaps it is possible to build this as a library initially. The user could define multiple dockable sections, each with their own id, name and closure. The docking library would then have the memory of whether or not each section is a separate window, a tab, or a panel inside a window. Multiple native windows: let's punt on that, and keep it a bit simpler to start with. In any case, I don't have the time/desire to work on this at the moment, but if someone wants to experiment then I can probably come with some guidance. |
Beta Was this translation helpful? Give feedback.
-
Have there been any further thoughts about this? It's the only thing preventing me from using egui over imgui-rs. |
Beta Was this translation helpful? Give feedback.
-
Egui would be much better for editor type applications if it had docking support. Viewports (multiple windows) could be not included, but docking panels is extremely useful. |
Beta Was this translation helpful? Give feedback.
-
Looks like https://github.com/lain-dono/egui_docking exists, no docs but the example is cool |
Beta Was this translation helpful? Give feedback.
-
Before I create an issue and or a PR I would like to get some input about something.
Do you think egui would benefit from supporting docking panels?
I'm looking at ImGui docking and it looks awesome + it looks like you can actually detach a panel and it will use it's own native window to draw until you dock it again in the main window.
One draw back at the moment I can think for is that I don't know if we can support such a system on web, but should be relatively easy to put it behind a feature or platform gate.
I would like such a system from a game engine I started developing in my spare time. I'm willing to try and give it a shot especially that I need it for myself at some point.
@emilk, your opinion matters the most, so what do you think? Is there something like this in the works?
Beta Was this translation helpful? Give feedback.
All reactions