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

Method SetNextWindowPos

include/imgui/imgui.cpp:8611–8619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8609}
8610
8611void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot)
8612{
8613 ImGuiContext& g = *GImGui;
8614 IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags.
8615 g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasPos;
8616 g.NextWindowData.PosVal = pos;
8617 g.NextWindowData.PosPivotVal = pivot;
8618 g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always;
8619}
8620
8621void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond)
8622{

Callers

nothing calls this directly

Calls 1

ImIsPowerOfTwoFunction · 0.85

Tested by

no test coverage detected