You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket serves to track the progress towards getting the docking features in a PyPI release.
TODO:
Map the docking features. (1)
Decide how to release this (2)
(1): Most of the docking features are not yet mapped to python, so this should be done first. @KinoxKlark suggests to use the docking branch for that.
Currently pyimgui tracks 1.82 of DearImGui, so the docking branch should be matching the commit ocornut/imgui@2565945
(2): There are a few options here:
Create a new PyPI package for the docking feature: pyimgui-docking[glfw,...] just like the main package.
Add docking as a 'feature' inside the main package: pyimgui[glfw,docking] (unsure if this is possible)
I reverted the docking branch to the correct commit to being synced with the 1.82 tracked by pyimgui. I had to undo some changes but nothing problematic and I think it is cleaner to start from this basis. Don't forget to git submodule update if anyone wants to work on this branch!
Since in the future we will try to catch up again with the current DearImGui release, here are the corresponding commits by release to match:
I did get through the entire imgui.h file and its diff between 1.82:master and 1.82:docking and I updated the cimgui.pxd file with function to map (or discuss if we want to map or not). The corresponding commit is 8119b0f
I also updated the corresponding flags.
Here are the new struct/prop/function that could be mapped for the docking branch:
I also updated the internal part but nothing that needs to be reported for now.
If someone wants to tackle some of these, please consider using the ✓/✗ system inside cimgui.pxd to mark mapped functions. Also, I would advise documenting mapped functions as you go along.
I hope I did not forget anything.
Reacted by Mark Jansen, RJ and Mauro Sciancalepore
Will some functionalities of the docking branch need to consider the new with support implemented in #264 ? Just to be consistent with the rest of pyimgui. I'll merge dev/version-2.0 in docking when I'll merge it in the dev/version-2.0 branch.
I merged #261, thanks a lot to @masc-it for the help. I updated my previous comment with the implemented functions. Please let me know if I forgot something ;)
Activity
KinoxKlark commentedon Feb 14, 2022
Thanks!
I reverted the
dockingbranch to the correct commit to being synced with the 1.82 tracked by pyimgui. I had to undo some changes but nothing problematic and I think it is cleaner to start from this basis. Don't forget togit submodule updateif anyone wants to work on this branch!Since in the future we will try to catch up again with the current DearImGui release, here are the corresponding commits by release to match:
1.82
master: ocornut/imgui@35b1148
docking: ocornut/imgui@2565945
1.83
master: ocornut/imgui@ad5d1a8
docking: ocornut/imgui@1b435ae
1.84
master: ocornut/imgui@d2ffbd9
docking: ocornut/imgui@5a7d18a
1.85
master: ocornut/imgui@55d35d8
docking: ocornut/imgui@1b215ec
1.86
master: ocornut/imgui@512c54b
docking: ocornut/imgui@15b4a06
1.87
master: ocornut/imgui@c71a50d
docking: ocornut/imgui@1ee2527
KinoxKlark commentedon Feb 14, 2022
I did get through the entire
imgui.hfile and its diff between1.82:masterand1.82:dockingand I updated thecimgui.pxdfile with function to map (or discuss if we want to map or not). The corresponding commit is 8119b0fI also updated the corresponding flags.
Here are the new struct/prop/function that could be mapped for the
dockingbranch:struct ImGuiIOConfigDockingNoSplitConfigDockingWithShiftConfigDockingAlwaysTabBarConfigDockingTransparentPayloadConfigViewportsNoAutoMergeConfigViewportsNoTaskBarIconConfigViewportsNoDecorationConfigViewportsNoDefaultParentMouseHoveredViewportstruct ImDrawDataOwnerViewportstruct ImGuiWindowClassstruct ImGuiViewportIDDpiScaleParentViewportIdDrawDataRendererUserDataPlatformUserDataPlatformHandlePlatformHandleRawPlatformRequestMovePlatformRequestResizePlatformRequestClosestruct ImGuiPlatformIOstruct ImGuiPlatformMonitorGetWindowDpiScale()GetWindowViewport()SetNextWindowViewport(ImGuiID viewport_id)DockSpace( ... )DockSpaceOverViewport( ... )SetNextWindowDockID( ... )SetNextWindowClass(const ImGuiWindowClass* window_class)GetWindowDockID()IsWindowDocked()GetBackgroundDrawList(ImGuiViewport* viewport)GetForegroundDrawList(ImGuiViewport* viewport)GetPlatformIO()UpdatePlatformWindows()RenderPlatformWindowsDefault( ... )DestroyPlatformWindows()FindViewportByID(ImGuiID id)FindViewportByPlatformHandle(void* platform_handle)I also updated the
internalpart but nothing that needs to be reported for now.If someone wants to tackle some of these, please consider using the
✓/✗system insidecimgui.pxdto mark mapped functions. Also, I would advise documenting mapped functions as you go along.I hope I did not forget anything.
masc-it commentedon Feb 16, 2022
Hi! I am working on some of these, everything's tracked in #261
KinoxKlark commentedon Mar 3, 2022
Will some functionalities of the docking branch need to consider the new
withsupport implemented in #264 ? Just to be consistent with the rest ofpyimgui. I'll mergedev/version-2.0indockingwhen I'll merge it in thedev/version-2.0branch.KinoxKlark commentedon Oct 27, 2022
I merged #261, thanks a lot to @masc-it for the help. I updated my previous comment with the implemented functions. Please let me know if I forgot something ;)