2
0
Эх сурвалжийг харах

Merge pull request #148 from Roflraging/master

Added missing implementation for ImGui::GetWindowCollapsed().
omar 10 жил өмнө
parent
commit
4cdcbbff8c
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  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);