MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / SetNextWindowSize

Method SetNextWindowSize

include/imgui/imgui.cpp:8621–8628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8619}
8620
8621void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond)
8622{
8623 ImGuiContext& g = *GImGui;
8624 IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags.
8625 g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasSize;
8626 g.NextWindowData.SizeVal = size;
8627 g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always;
8628}
8629
8630// For each axis:
8631// - Use 0.0f as min or FLT_MAX as max if you don't want limits, e.g. size_min = (500.0f, 0.0f), size_max = (FLT_MAX, FLT_MAX) sets a minimum width.

Callers

nothing calls this directly

Calls 1

ImIsPowerOfTwoFunction · 0.85

Tested by

no test coverage detected