MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / IsWindowChildOf

Method IsWindowChildOf

imgui_tiny_app/imgui/imgui.cpp:8945–8959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8943}
8944
8945bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy)
8946{
8947 ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy);
8948 if (window_root == potential_parent)
8949 return true;
8950 while (window != NULL)
8951 {
8952 if (window == potential_parent)
8953 return true;
8954 if (window == window_root) // end of chain
8955 return false;
8956 window = window->ParentWindow;
8957 }
8958 return false;
8959}
8960
8961bool ImGui::IsWindowInBeginStack(ImGuiWindow* window)
8962{

Callers

nothing calls this directly

Calls 1

GetCombinedRootWindowFunction · 0.85

Tested by

no test coverage detected