Skip to content

Commit 85c7117

Browse files
author
Dale Kim
committed
Defined bool ImGui::GetWindowCollapsed().
1 parent f18febc commit 85c7117

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

imgui.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3487,6 +3487,12 @@ void ImGui::SetWindowCollapsed(bool collapsed, ImGuiSetCond cond)
34873487
SetWindowCollapsed(window, collapsed, cond);
34883488
}
34893489

3490+
bool ImGui::GetWindowCollapsed()
3491+
{
3492+
ImGuiWindow* window = GetCurrentWindow();
3493+
return window->Collapsed;
3494+
}
3495+
34903496
void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiSetCond cond)
34913497
{
34923498
ImGuiWindow* window = FindWindowByName(name);

0 commit comments

Comments
 (0)