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

[REQUEST] Missing function ImGui::ActivateItemByID(ImGuiID id) #59

Open
flarsson87 opened this issue Mar 19, 2024 · 2 comments
Open

[REQUEST] Missing function ImGui::ActivateItemByID(ImGuiID id) #59

flarsson87 opened this issue Mar 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@flarsson87
Copy link

Hi!

It seems that the mentioned function is not exposed in the glue bridge provided by this package.

https://github.com/search?q=repo%3Aocornut/imgui%20ActivateItemByID&type=code

Is this something that could be considered? What is the best way to go about requesting non exposed functions?

Best,

@flarsson87 flarsson87 added the bug Something isn't working label Mar 19, 2024
@psydack psydack added enhancement New feature or request and removed bug Something isn't working labels Mar 20, 2024
@psydack
Copy link
Owner

psydack commented Mar 20, 2024

Yo!

That's a nice question. I need to check how it works to understand how I can apply it in the current version.
As that is in internal file, I believe it requires more changes than I'm expected to do in this repo.

What do you need to do? Maybe there is something else we can work

@flarsson87
Copy link
Author

flarsson87 commented Mar 20, 2024

Thanks for the response!

I'm looking into custom navigation behavior and I'd like to 'activate' focused elements by e.g. pressing 'right arrow' to fold out dropdowns and 'left arrow' to collapse them.

I implemented this for a c++ version by doing (pseudo):

void activate_widget(label)
{
    auto id = Imgui.get_id(label)
    Imgui.activate_item(id)
}

I'd also probably be looking to get my hands on e.g. NavMoveRequestCancel , FocusItem and some other internal imgui functions that are not exposed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants