imgui icon indicating copy to clipboard operation
imgui copied to clipboard

DockBuilder: Allow splitting in child Node

Open AlexvZyl opened this issue 2 years ago • 1 comments

Version/Branch of Dear ImGui:

Version: 1.88 Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp Operating System: Windows 10

My Issue/Question:

I am currently working on the docking in my application. I added a screenshot of what it currently looks like for some context:

image

I am using the main viewport as a dockspace. I do not want to user to be able to split or dock into the top, bottom and ribbon bar. I also do not want the user to be able to dock windows to the left of the ribbon. Basically, you should only be allowed to split or dock into the left, right, bottom and scene panel.

I can partially achieve this by using ImGuiDockNodeFlags_NoDockingSplitMe in the main node, however this prevents splitting in the child nodes as well. I tried manually changing the child node flags by removing this flag, but this also did not seem to work.

AlexvZyl avatar Apr 02 '22 16:04 AlexvZyl

I found this helpful https://github.com/ocornut/imgui/issues/5653

Although I didn't manage to get a partially fixed view working yet, using window classes might help you.

philipp-reinhardt avatar Nov 08 '22 19:11 philipp-reinhardt