@@ -214,11 +214,9 @@ public static void forEach(final Consumer<ImGuiListClipper> clipAction) {
214
214
* @param itemsCount Use -1 to ignore (you can call Begin later).
215
215
* Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step).
216
216
* @param callback action to do in iterations
217
- * @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
218
217
*/
219
- @ Deprecated
220
218
public static void forEach (final int itemsCount , final ImListClipperCallback callback ) {
221
- forEach (itemsCount , -1 , callback );
219
+ nForEach (itemsCount , -1 , callback );
222
220
}
223
221
224
222
/**
@@ -227,10 +225,12 @@ public static void forEach(final int itemsCount, final ImListClipperCallback cal
227
225
* @param itemsHeight Use -1.0f to be calculated automatically on first step.
228
226
* Otherwise, pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
229
227
* @param callback action to do in iterations
230
- * @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
231
228
*/
232
- @ Deprecated
233
- public static native void forEach (int itemsCount , int itemsHeight , ImListClipperCallback callback ); /*
229
+ public static void forEach (final int itemsCount , final int itemsHeight , final ImListClipperCallback callback ) {
230
+ nForEach (itemsCount , itemsHeight , callback );
231
+ }
232
+
233
+ private static native void nForEach (int itemsCount , int itemsHeight , ImListClipperCallback callback ); /*
234
234
ImGuiListClipper clipper;
235
235
clipper.Begin(itemsCount, itemsHeight);
236
236
while (clipper.Step()) {
0 commit comments