Ver Fonte

Defined bool ImGui::GetWindowCollapsed().

Dale Kim há 10 anos atrás
pai
commit
85c71170af
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      imgui.cpp

+ 6 - 0
imgui.cpp

@@ -3487,6 +3487,12 @@ void ImGui::SetWindowCollapsed(bool collapsed, ImGuiSetCond cond)
     SetWindowCollapsed(window, collapsed, cond);
 }
 
+bool ImGui::GetWindowCollapsed()
+{
+    ImGuiWindow* window = GetCurrentWindow();
+    return window->Collapsed;
+}
+
 void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiSetCond cond)
 {
     ImGuiWindow* window = FindWindowByName(name);