MCPcopy Create free account
hub / github.com/RenderKit/embree / IsWindowChildOf

Method IsWindowChildOf

tutorials/common/imgui/imgui.cpp:7315–7329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7313}
7314
7315bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy)
7316{
7317 ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy);
7318 if (window_root == potential_parent)
7319 return true;
7320 while (window != NULL)
7321 {
7322 if (window == potential_parent)
7323 return true;
7324 if (window == window_root) // end of chain
7325 return false;
7326 window = window->ParentWindow;
7327 }
7328 return false;
7329}
7330
7331bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent)
7332{

Callers

nothing calls this directly

Calls 1

GetCombinedRootWindowFunction · 0.85

Tested by

no test coverage detected