close
Skip to content

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

Open
sethk wants to merge 19 commits into
ocornut:masterfrom
sethk:raii
Open

Add some RAII-style wrappers for windows, children, tree nodes, etc.#2197
sethk wants to merge 19 commits into
ocornut:masterfrom
sethk:raii

Conversation

@sethk

@sethk sethk commented Nov 18, 2018

Copy link
Copy Markdown

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

@learn-more

Copy link
Copy Markdown
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.

3 participants