MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / IsWindowChildOf

Method IsWindowChildOf

plugins/Cardinal/src/DearImGui/imgui.cpp:6923–6937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6921}
6922
6923bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy)
6924{
6925 ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy);
6926 if (window_root == potential_parent)
6927 return true;
6928 while (window != NULL)
6929 {
6930 if (window == potential_parent)
6931 return true;
6932 if (window == window_root) // end of chain
6933 return false;
6934 window = window->ParentWindow;
6935 }
6936 return false;
6937}
6938
6939bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent)
6940{

Callers

nothing calls this directly

Calls 1

GetCombinedRootWindowFunction · 0.85

Tested by

no test coverage detected