| 8613 | } |
| 8614 | |
| 8615 | void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) |
| 8616 | { |
| 8617 | // Test condition (NB: bit 0 is always true) and clear flags for next time |
| 8618 | if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) |
| 8619 | return; |
| 8620 | window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); |
| 8621 | |
| 8622 | // Queue applying in Begin() |
| 8623 | if (window->WantCollapseToggle) |
| 8624 | window->Collapsed ^= 1; |
| 8625 | window->WantCollapseToggle = (window->Collapsed != collapsed); |
| 8626 | } |
| 8627 | |
| 8628 | void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) |
| 8629 | { |
nothing calls this directly
no outgoing calls
no test coverage detected