MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / SetWindowCollapsed

Method SetWindowCollapsed

include/imgui/imgui.cpp:8615–8626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8613}
8614
8615void 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
8628void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size)
8629{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected