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

Method SetNextWindowSize

include/imgui/imgui.cpp:8674–8681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8672}
8673
8674void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond)
8675{
8676 ImGuiContext& g = *GImGui;
8677 IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags.
8678 g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasSize;
8679 g.NextWindowData.SizeVal = size;
8680 g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always;
8681}
8682
8683// For each axis:
8684// - 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