Add missing ImGui.TableGetSortSpecs API (and related objects) #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the missing binding for the
ImGui::TableGetSortSpecs
API, which includes structs to describe table and column sorting withImGuiTableSortSpecs
andImGuiTableColumnSortSpecs
respectively.I had a workaround for the missing binding for a prior version which I posted about in #114, but with the recent release and seeing the binding generator being merged to main, I thought I'd try to understand the generator work and complete the API properly. I still had to write some custom JNI code for
ImGuiTableSortSpecs.Specs
which holds aImGuiTableColumnSortSpecs
array as I couldn't find anything yet built to handle object arrays that weren't theImVec
types. (Happy to be proven wrong on that point though!)I also added a commit to add a binding for an
ImGui::TreeNodeEx
overload which seems to have gone missing with the generator work (maybe? 🤷♂️) and that I happen to be using in a project that I used to test these changes.Type of change