Clipper: added UserIndex helper storage.

This commit is contained in:
ocornut
2026-02-23 22:36:29 +01:00
parent dbee23e09c
commit 14b4d8a625
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -2853,6 +2853,7 @@ struct ImGuiListClipper
ImGuiContext* Ctx; // Parent UI context
int DisplayStart; // First item to display, updated by each call to Step()
int DisplayEnd; // End of items to display (exclusive)
int UserIndex; // Helper storage for user convenience/code. Optional, and otherwise unused if you don't use it.
int ItemsCount; // [Internal] Number of items
float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it
double StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed