Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some RAII-style wrappers for windows, children, tree nodes, etc. #2197

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

sethk
Copy link

@sethk sethk commented Nov 18, 2018

As discussed in #2096, here is an additional header file with some RAII-style wrappers for common ImGui objects.

@learn-more
Copy link
Contributor

@sethk There are some generated classes that are outdated now:
PushAllowKeyboardFocus should be replaced with PushTabStop
BeginChildFrame could be replaced with BeginChild(..., ImGuiChildFlags_FrameStyle, ...);, or removed outright.
BeginPopupContextWindow does not take a boolean, but an ImGuiPopupFlags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants