| 7237 | } |
| 7238 | |
| 7239 | bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy) |
| 7240 | { |
| 7241 | ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy); |
| 7242 | if (window_root == potential_parent) |
| 7243 | return true; |
| 7244 | while (window != NULL) |
| 7245 | { |
| 7246 | if (window == potential_parent) |
| 7247 | return true; |
| 7248 | if (window == window_root) // end of chain |
| 7249 | return false; |
| 7250 | window = window->ParentWindow; |
| 7251 | } |
| 7252 | return false; |
| 7253 | } |
| 7254 | |
| 7255 | bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) |
| 7256 | { |
nothing calls this directly
no test coverage detected