Skip to content

Commit bb411ff

Browse files
committed
chore(api): tweak ImGuiListClipper API
1 parent 32bcdfa commit bb411ff

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

imgui-binding/src/generated/java/imgui/ImGuiListClipper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,9 @@ public static void forEach(final Consumer<ImGuiListClipper> clipAction) {
214214
* @param itemsCount Use -1 to ignore (you can call Begin later).
215215
* 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).
216216
* @param callback action to do in iterations
217-
* @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
218217
*/
219-
@Deprecated
220218
public static void forEach(final int itemsCount, final ImListClipperCallback callback) {
221-
forEach(itemsCount, -1, callback);
219+
nForEach(itemsCount, -1, callback);
222220
}
223221

224222
/**
@@ -227,10 +225,12 @@ public static void forEach(final int itemsCount, final ImListClipperCallback cal
227225
* @param itemsHeight Use -1.0f to be calculated automatically on first step.
228226
* Otherwise, pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
229227
* @param callback action to do in iterations
230-
* @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
231228
*/
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); /*
234234
ImGuiListClipper clipper;
235235
clipper.Begin(itemsCount, itemsHeight);
236236
while (clipper.Step()) {

imgui-binding/src/main/java/imgui/ImGuiListClipper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ public static void forEach(final Consumer<ImGuiListClipper> clipAction) {
127127
* @param itemsCount Use -1 to ignore (you can call Begin later).
128128
* 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).
129129
* @param callback action to do in iterations
130-
* @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
131130
*/
132-
@Deprecated
133131
public static void forEach(final int itemsCount, final ImListClipperCallback callback) {
134-
forEach(itemsCount, -1, callback);
132+
nForEach(itemsCount, -1, callback);
135133
}
136134

137135
/**
@@ -140,10 +138,12 @@ public static void forEach(final int itemsCount, final ImListClipperCallback cal
140138
* @param itemsHeight Use -1.0f to be calculated automatically on first step.
141139
* Otherwise, pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
142140
* @param callback action to do in iterations
143-
* @deprecated Use approach from the native example or {@link #forEach(Consumer)} method.
144141
*/
145-
@Deprecated
146-
public static native void forEach(int itemsCount, int itemsHeight, ImListClipperCallback callback); /*
142+
public static void forEach(final int itemsCount, final int itemsHeight, final ImListClipperCallback callback) {
143+
nForEach(itemsCount, itemsHeight, callback);
144+
}
145+
146+
private static native void nForEach(int itemsCount, int itemsHeight, ImListClipperCallback callback); /*
147147
ImGuiListClipper clipper;
148148
clipper.Begin(itemsCount, itemsHeight);
149149
while (clipper.Step()) {

0 commit comments

Comments
 (0)