| 7313 | } |
| 7314 | |
| 7315 | bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy) |
| 7316 | { |
| 7317 | ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy); |
| 7318 | if (window_root == potential_parent) |
| 7319 | return true; |
| 7320 | while (window != NULL) |
| 7321 | { |
| 7322 | if (window == potential_parent) |
| 7323 | return true; |
| 7324 | if (window == window_root) // end of chain |
| 7325 | return false; |
| 7326 | window = window->ParentWindow; |
| 7327 | } |
| 7328 | return false; |
| 7329 | } |
| 7330 | |
| 7331 | bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) |
| 7332 | { |
nothing calls this directly
no test coverage detected