MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / IsWindowChildOf

Method IsWindowChildOf

KBotExt/imgui/imgui.cpp:7239–7253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7237}
7238
7239bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy)
7240{
7241 ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy);
7242 if (window_root == potential_parent)
7243 return true;
7244 while (window != NULL)
7245 {
7246 if (window == potential_parent)
7247 return true;
7248 if (window == window_root) // end of chain
7249 return false;
7250 window = window->ParentWindow;
7251 }
7252 return false;
7253}
7254
7255bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent)
7256{

Callers

nothing calls this directly

Calls 1

GetCombinedRootWindowFunction · 0.85

Tested by

no test coverage detected