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

BringWindowToDisplayFront #70

Open
WladekProd opened this issue Jul 2, 2024 · 2 comments
Open

BringWindowToDisplayFront #70

WladekProd opened this issue Jul 2, 2024 · 2 comments

Comments

@WladekProd
Copy link

Is there any possibility to make a particular window always on top of other windows so that it does not overlap with other windows ?
This is the only flag I've found so far: ImGuiWindowFlags_NoBringToFrontOnFocus

But as it turned out in ImGui there is also such a solution, but it is not in the plugin:

if (ImGui::IsWindowAppearing())
    ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
@pkdawson
Copy link
Owner

pkdawson commented Jul 2, 2024

BringWindowToDisplayFront is an internal API, which is why it's not in the GDScript bindings. It's not in ImGui.NET either.

For normal ImGui windows, it looks like there isn't any great solution.

For multi-viewport windows, there actually is ImGuiViewportFlags_TopMost, but it's something I haven't implemented yet.

@WladekProd
Copy link
Author

WladekProd commented Jul 3, 2024

BringWindowToDisplayFront is an internal API, which is why it's not in the GDScript bindings. It's not in ImGui.NET either.

For normal ImGui windows, it looks like there isn't any great solution.

For multi-viewport windows, there actually is ImGuiViewportFlags_TopMost, but it's something I haven't implemented yet.

Would be really great if there was such a realization. I'm looking forward to it, thanks!

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

No branches or pull requests

2 participants