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

ImGui::TableGetSortSpecs() missing #114

Closed
Lenni0451 opened this issue Feb 21, 2022 · 5 comments · Fixed by #246
Closed

ImGui::TableGetSortSpecs() missing #114

Lenni0451 opened this issue Feb 21, 2022 · 5 comments · Fixed by #246
Labels
missing binding Some of the original library API is missing

Comments

@Lenni0451
Copy link

There is no binding for ImGui::TableGetSortSpecs().
https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp#L5081

@SpaiR SpaiR added api missing binding Some of the original library API is missing labels Feb 23, 2022
@phraktle
Copy link

I would be interested in seeing this exposed. Is there a workaround to get which column the table is sorted on?

@Lenni0451
Copy link
Author

I don't think there is a workaround at the moment

@phraktle
Copy link

You can work out which column is sorted from the column flags, alas the direction is not exposed.

@assada
Copy link

assada commented Apr 24, 2023

Zero chance to implement table sorting wihout TableGetSortSpecs

@ultraq
Copy link
Contributor

ultraq commented May 30, 2024

In case anybody else might find it useful, I implemented ImGui.tableGetSortSpecs() for the single sorting column use case on my own fork of imgui-java in this commit which people can copy: ultraq@00fd84f

I expect that whenever the new API generation in #132 happens, which will probably also solve the multi-column sorting use case, then this will be out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing binding Some of the original library API is missing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants