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

Missing Bindings: ImGui::ImageButton(ImGuiID id, ImTextureID texture_id, ...etc) #220

Open
Displee opened this issue Jan 16, 2024 · 1 comment
Labels
missing binding Some of the original library API is missing

Comments

@Displee
Copy link

Displee commented Jan 16, 2024

Version

1.86.11

What part of the binding has gaps?

Dear ImGui

What is missing?

Binding for ImGui::ImageButton(ImGuiID id, ImTextureID texture_id, ...etc) is missing. Currently we cannot pass ids to image buttons. We cannot create image buttons with the same texture id as the texture id is used as the imgui id of the button.

See: https://github.com/ocornut/imgui/blob/master/imgui_widgets.cpp#L1033

@Displee Displee added the missing binding Some of the original library API is missing label Jan 16, 2024
@Displee
Copy link
Author

Displee commented Jan 17, 2024

Current workaround: call ImGui.pushID(...) before the button and ImGui.popID() after the button.

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

No branches or pull requests

1 participant