| 5652 | } |
| 5653 | |
| 5654 | static void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) |
| 5655 | { |
| 5656 | // Test condition (NB: bit 0 is always true) and clear flags for next time |
| 5657 | if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) |
| 5658 | return; |
| 5659 | window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); |
| 5660 | |
| 5661 | // Set |
| 5662 | window->Collapsed = collapsed; |
| 5663 | } |
| 5664 | |
| 5665 | void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) |
| 5666 | { |
no outgoing calls
no test coverage detected