|
|
@@ -2344,8 +2344,9 @@ struct ImGuiListClipper
|
|
|
IMGUI_API void End(); // Automatically called on the last call of Step() that returns false.
|
|
|
IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.
|
|
|
|
|
|
- // Call IncludeRangeByIndices() before first call to Step() if you need a range of items to be displayed regardless of visibility.
|
|
|
- IMGUI_API void IncludeRangeByIndices(int item_begin, int item_end); // item_end is exclusive e.g. use (42, 42+1) to make item 42 always visible BUT due to alignment/padding of certain items it is possible/likely that an extra item may be included on either end of the display range.
|
|
|
+ // Call IncludeRangeByIndices() *BEFORE* first call to Step() if you need a range of items to not be clipped, regardless of their visibility.
|
|
|
+ // (Due to alignment / padding of certain items it is possible that an extra item may be included on either end of the display range).
|
|
|
+ IMGUI_API void IncludeRangeByIndices(int item_begin, int item_end); // item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped.
|
|
|
|
|
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
|
|
inline void ForceDisplayRangeByIndices(int item_begin, int item_end) { IncludeRangeByIndices(item_begin, item_end); } // [renamed in 1.89.6]
|