|
|
|
@ -990,9 +990,6 @@ static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduc
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
static void SetCurrentWindow(ImGuiWindow* window);
|
|
|
|
|
static void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond);
|
|
|
|
|
static void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond);
|
|
|
|
|
static void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond);
|
|
|
|
|
static void FindHoveredWindow();
|
|
|
|
|
static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFlags flags);
|
|
|
|
|
static void CheckStacksSize(ImGuiWindow* window, bool write);
|
|
|
|
@ -6035,7 +6032,7 @@ void ImGui::SetWindowScrollY(ImGuiWindow* window, float new_scroll_y)
|
|
|
|
|
window->DC.CursorMaxPos.y -= window->Scroll.y;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond)
|
|
|
|
|
void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond)
|
|
|
|
|
{
|
|
|
|
|
// Test condition (NB: bit 0 is always true) and clear flags for next time
|
|
|
|
|
if (cond && (window->SetWindowPosAllowFlags & cond) == 0)
|
|
|
|
@ -6070,7 +6067,7 @@ ImVec2 ImGui::GetWindowSize()
|
|
|
|
|
return window->Size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond)
|
|
|
|
|
void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond)
|
|
|
|
|
{
|
|
|
|
|
// Test condition (NB: bit 0 is always true) and clear flags for next time
|
|
|
|
|
if (cond && (window->SetWindowSizeAllowFlags & cond) == 0)
|
|
|
|
@ -6113,7 +6110,7 @@ void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond)
|
|
|
|
|
SetWindowSize(window, size, cond);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond)
|
|
|
|
|
void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond)
|
|
|
|
|
{
|
|
|
|
|
// Test condition (NB: bit 0 is always true) and clear flags for next time
|
|
|
|
|
if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0)
|
|
|
|
|