| 2299 | } |
| 2300 | |
| 2301 | void 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 | |
| 2313 | bool ImGuiListClipper::Step() |
| 2314 | { |
no test coverage detected