Closed ocornut closed 2 years ago
Sorry for the massive delay in getting back onto this - various things conspired to get in the way, but I've finally found time to take a look at some of the issues.
I've pushed a bunch of changes that hopefully add some of the requested features/fixes. imgui_internal.h isn't supported yet both most of the other stuff is.
Thanks, latest version is becoming really great! Closing this "general" issue now, will open one to mark "support for imgui_internal.h" specifically.
Following on https://github.com/ocornut/imgui_private/issues/11 (unfortunately github has "transfer issue" but doesn't work yet toward the org "dearimgui")
Thank you Ben for the great work! I can confirm that with small edit of the paths in main.py it works:
e.g.
Output is already REALLY good and much better than old cimgui.
Possibly
cimgui.h
/.cpp
should be generated entirely fromcimgui.json
? That would constitute a proof that all the information are there, as well as constitute a "project template" for using that json for custom needs.Assuming it actually works in real use case (haven't tried yet!) I think this may be close to be usable.
I may need to get myself to use it to give better feedback. Maybe @thomcc or @mellinoe would have feedback on that? I think I've noticed the Rust version providing alternative buttons of that kind, too.
Some suggestions. They are mostly polish aimed at getting a version out.
Features
cimgui_internal.h
(you mentioned it in your post already, just adding this for tracking). As ideally the system would allow generating bindings for other libraries (e.g. implot) maybe the filename lists are all passed as input, and it is ok if certains modifiers are doing matching on filename is required.ImGuiButton()
whereas yours isImGui_Button()
(I think I prefer the later as a way to mirror the original, meaning we'd haveImGui_Button
function and e..gImGuiButtonFlags_XXX
flags, maybe a bit odd but good way to delimit everything?(EDIT extracted part of the message into separate issues)