| 6921 | } |
| 6922 | |
| 6923 | bool 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 | |
| 6939 | bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) |
| 6940 | { |
nothing calls this directly
no test coverage detected