MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / IsWindowChildOf

Method IsWindowChildOf

extern/imgui/imgui.cpp:7931–7945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7929}
7930
7931bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy)
7932{
7933 ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy);
7934 if (window_root == potential_parent)
7935 return true;
7936 while (window != NULL)
7937 {
7938 if (window == potential_parent)
7939 return true;
7940 if (window == window_root) // end of chain
7941 return false;
7942 window = window->ParentWindow;
7943 }
7944 return false;
7945}
7946
7947bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent)
7948{

Callers

nothing calls this directly

Calls 1

GetCombinedRootWindowFunction · 0.85

Tested by

no test coverage detected