MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / SetWindowCollapsed

Method SetWindowCollapsed

Source/3rdParty/imgui/imgui.cpp:8592–8603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8590}
8591
8592void 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
8605void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size)
8606{

Callers

nothing calls this directly

Calls 1

SetWindowCollapsedFunction · 0.85

Tested by

no test coverage detected