MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / End

Method End

ImGUI GLFW Tutorial/imgui/imgui.cpp:2301–2311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2299}
2300
2301void ImGuiListClipper::End()
2302{
2303 if (ItemsCount < 0) // Already ended
2304 return;
2305
2306 // In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user.
2307 if (ItemsCount < INT_MAX && DisplayStart >= 0)
2308 SetCursorPosYAndSetupForPrevLine(StartPosY + (ItemsCount - ItemsFrozen) * ItemsHeight, ItemsHeight);
2309 ItemsCount = -1;
2310 StepNo = 3;
2311}
2312
2313bool ImGuiListClipper::Step()
2314{

Callers 1

DrawFunction · 0.45

Calls 5

SetCurrentWindowFunction · 0.70
pop_backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected