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

Method SetNextWindowPos

include/imgui/imgui.cpp:8664–8672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8662}
8663
8664void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot)
8665{
8666 ImGuiContext& g = *GImGui;
8667 IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags.
8668 g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasPos;
8669 g.NextWindowData.PosVal = pos;
8670 g.NextWindowData.PosPivotVal = pivot;
8671 g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always;
8672}
8673
8674void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond)
8675{

Callers

nothing calls this directly

Calls 1

ImIsPowerOfTwoFunction · 0.85

Tested by

no test coverage detected