| 2208 | } |
| 2209 | |
| 2210 | void 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 | |
| 2221 | bool ImGuiListClipper::Step() |
| 2222 | { |
no test coverage detected