Skip to content

Implement Docking features - #261

Merged
KinoxKlark merged 15 commits into
pyimgui:dockingfrom
masc-it:docking
Oct 27, 2022
Merged

KinoxKlark merged 15 commits into
pyimgui:dockingfrom
masc-it:docking

Conversation

@masc-it

@masc-it masc-it commented Feb 16, 2022

Copy link
Copy Markdown

No description provided.

_ImGuiViewport.dpi_scale, parent_viewport_id, id,draw_data, pos
PlatformRequestMove, PlatformRequestResize, PlatformRequestClose
Comment thread imgui/core.pyx Resolved
@masc-it masc-it mentioned this pull request Feb 16, 2022
2 tasks
Comment thread imgui/core.pyx
Comment on lines +2211 to +2217
// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
// Important: the content of this class is still highly WIP and likely to change and be refactored
// before we stabilize Docking features. Please be mindful if using this.
// Provide hints:
// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
// - To the platform backend for OS level parent/child relationships of viewport.
// - To the docking system for various options and filtering.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering the docking branch is WIP, and this api is alpha, it is very likely to change in the future.
In a case like that, it would make sense (imo) to not include it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I do agree. However many features introduced in the docking branch are in beta and may also change. I am not against mapping alpha/beta functionalities as long as it is properly documented. We can always change and document our interface in a future version as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree as well and going to comment it, maybe it will be useful in the next future. BTW, I have added it since it is used by SetNextWindowClass(const ImGuiWindowClass* window_class) explicitly.

@mCodingLLC

Copy link
Copy Markdown

This PR looks good and has a lot of great progress towards docking. Is there anything preventing it from being merged at this point?

@KinoxKlark

Copy link
Copy Markdown
Member

I think the only thing that prevents it right now is a lake of time on my part. Sorry ^^
I'll try to take some time to manage it as soon as possible. Thanks for showing interest!

@mCodingLLC

Copy link
Copy Markdown

No need to apologize, we are all donating our time here so I appreciate any availability you have. But yes, I'm very interested!

@KinoxKlark
KinoxKlark merged commit fd64fd4 into pyimgui:docking Oct 27, 2022
@KinoxKlark

Copy link
Copy Markdown
Member

I finally took time to merge this PR, I hope it will help some of you to move forward with this docking feature. Thanks a lot for the help! Sorry that it took me so long.

I didn't test it intensively, hope it is okay since this branch is still a work in progress. I quickly read the modifications and tested locally that localisation and tests worked fine. If someone see a problem, please let me know.

@KinoxKlark KinoxKlark added the release pending Merged but still needs official release label Oct 27, 2022
@KinoxKlark KinoxKlark removed the release pending Merged but still needs official release label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants