Hey guys. I have been wondering what the arrow at the top does in imgui. Just a simple answer. In here were it says sample window
What does the arrow at the top do in imgui.
Tried clicking it?
It collapses the Window into just the title, I believe there is an option to get rid of it if don't want that function.
If it's not working I guess something is interfering with the mouse clicks.
SyncViews said:
Tried clicking it?
It collapses the Window into just the title, I believe there is an option to get rid of it if don't want that function.
If it's not working I guess something is interfering with the mouse clicks.
Oh. Yeah I tried but nothing happened. Do you know any way I can remove the top part. Where it says “Sample window”.
Check out ImGuiWindowFlags for various such options, ImGuiWindowFlags_NoCollapse should do it for the arrow, ImGuiWindowFlags_NoTitleBar for the entire title.
Not sure what you could have done to cause mouse issues. Are buttons in general working?
Did you use one of the example implementations or write your own? `ImGui::GetIO().MouseDown` and `ImGui::GetIO().MousePos` I believe are the relevant things that need setting on input.
SyncViews said:
Check out ImGuiWindowFlags for various such options, ImGuiWindowFlags_NoCollapse should do it for the arrow, ImGuiWindowFlags_NoTitleBar for the entire title.
Not sure what you could have done to cause mouse issues. Are buttons in general working?
Did you use one of the example implementations or write your own? `ImGui::GetIO().MouseDown` and `ImGui::GetIO().MousePos` I believe are the relevant things that need setting on input.
Thanks. But what is imgui window flags. Is it a code? Does it remove the top title area? Please explain more.
@Shaanveer Never mind I found out.
https://docs.rs/imgui/0.0.17/imgui/struct.ImGuiWindowFlags.html
Best place to look is probably search in imgui.h and read the comments.
In this case the 3rd param to Begin (the 2nd is for the close X button if desired).
ImGui::Begin("Example Window", nullptr, ImGuiWindowFlags_NoTitleBar);
hmm, it's the file you would have `#include<imgui.h>` for C++, should be part of the version you downloaded. The latest master on Github would be https://github.com/ocornut/imgui/blob/master/imgui.h
@SyncViews What do the numbers mean in this ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar