MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / End

Method End

lib/imgui/imgui.cpp:2210–2219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2208}
2209
2210void ImGuiListClipper::End()
2211{
2212 if (ItemsCount < 0)
2213 return;
2214 // 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.
2215 if (ItemsCount < INT_MAX)
2216 SetCursorPosYAndSetupDummyPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); // advance cursor
2217 ItemsCount = -1;
2218 StepNo = 3;
2219}
2220
2221bool ImGuiListClipper::Step()
2222{

Callers 1

DrawFunction · 0.80

Calls 5

SetCurrentWindowFunction · 0.85
pop_backMethod · 0.80
emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected