| 7929 | } |
| 7930 | |
| 7931 | bool 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 | |
| 7947 | bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) |
| 7948 | { |
nothing calls this directly
no test coverage detected