| 8943 | } |
| 8944 | |
| 8945 | bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy) |
| 8946 | { |
| 8947 | ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy); |
| 8948 | if (window_root == potential_parent) |
| 8949 | return true; |
| 8950 | while (window != NULL) |
| 8951 | { |
| 8952 | if (window == potential_parent) |
| 8953 | return true; |
| 8954 | if (window == window_root) // end of chain |
| 8955 | return false; |
| 8956 | window = window->ParentWindow; |
| 8957 | } |
| 8958 | return false; |
| 8959 | } |
| 8960 | |
| 8961 | bool ImGui::IsWindowInBeginStack(ImGuiWindow* window) |
| 8962 | { |
nothing calls this directly
no test coverage detected