| 8590 | } |
| 8591 | |
| 8592 | void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) |
| 8593 | { |
| 8594 | // Test condition (NB: bit 0 is always true) and clear flags for next time |
| 8595 | if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) |
| 8596 | return; |
| 8597 | window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); |
| 8598 | |
| 8599 | // Queue applying in Begin() |
| 8600 | if (window->WantCollapseToggle) |
| 8601 | window->Collapsed ^= 1; |
| 8602 | window->WantCollapseToggle = (window->Collapsed != collapsed); |
| 8603 | } |
| 8604 | |
| 8605 | void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) |
| 8606 | { |
nothing calls this directly
no test coverage detected