From 2e78d9dfe73ff0b3dab591f87f77a26b6740ee05 Mon Sep 17 00:00:00 2001 From: SpaiR Date: Tue, 22 Jul 2025 09:21:41 +0300 Subject: [PATCH] fix: invalid ImPlot#PlotInfLines signature fixes #339 --- .../java/imgui/extension/implot/ImPlot.java | 90 +++++++++---------- .../java/imgui/extension/implot/ImPlot.java | 2 +- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java b/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java index 06ce607..5297f53 100644 --- a/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java +++ b/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java @@ -11751,25 +11751,25 @@ public final class ImPlot { /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final short[] values, final int count) { - nPlotInfLines(labelId, values, count); + public static void plotInfLines(final String labelId, final short[] values) { + nPlotInfLines(labelId, values); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final short[] values, final int count, final int flags) { - nPlotInfLines(labelId, values, count, flags); + public static void plotInfLines(final String labelId, final short[] values, final int flags) { + nPlotInfLines(labelId, values, flags); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final short[] values, final int count, final int flags, final int offset) { - nPlotInfLines(labelId, values, count, flags, offset); + public static void plotInfLines(final String labelId, final short[] values, final int flags, final int offset) { + nPlotInfLines(labelId, values, flags, offset); } - private static native void nPlotInfLines(String labelId, short[] values, int count); /*MANUAL + private static native void nPlotInfLines(String labelId, short[] values); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); @@ -11777,7 +11777,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, short[] values, int count, int flags); /*MANUAL + private static native void nPlotInfLines(String labelId, short[] values, int flags); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); @@ -11785,7 +11785,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, short[] values, int count, int flags, int offset); /*MANUAL + private static native void nPlotInfLines(String labelId, short[] values, int flags, int offset); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); @@ -11796,25 +11796,25 @@ public final class ImPlot { /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final int[] values, final int count) { - nPlotInfLines(labelId, values, count); + public static void plotInfLines(final String labelId, final int[] values) { + nPlotInfLines(labelId, values); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final int[] values, final int count, final int flags) { - nPlotInfLines(labelId, values, count, flags); + public static void plotInfLines(final String labelId, final int[] values, final int flags) { + nPlotInfLines(labelId, values, flags); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final int[] values, final int count, final int flags, final int offset) { - nPlotInfLines(labelId, values, count, flags, offset); + public static void plotInfLines(final String labelId, final int[] values, final int flags, final int offset) { + nPlotInfLines(labelId, values, flags, offset); } - private static native void nPlotInfLines(String labelId, int[] values, int count); /*MANUAL + private static native void nPlotInfLines(String labelId, int[] values); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); @@ -11822,7 +11822,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, int[] values, int count, int flags); /*MANUAL + private static native void nPlotInfLines(String labelId, int[] values, int flags); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); @@ -11830,7 +11830,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, int[] values, int count, int flags, int offset); /*MANUAL + private static native void nPlotInfLines(String labelId, int[] values, int flags, int offset); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); @@ -11841,25 +11841,25 @@ public final class ImPlot { /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final long[] values, final int count) { - nPlotInfLines(labelId, values, count); + public static void plotInfLines(final String labelId, final long[] values) { + nPlotInfLines(labelId, values); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final long[] values, final int count, final int flags) { - nPlotInfLines(labelId, values, count, flags); + public static void plotInfLines(final String labelId, final long[] values, final int flags) { + nPlotInfLines(labelId, values, flags); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final long[] values, final int count, final int flags, final int offset) { - nPlotInfLines(labelId, values, count, flags, offset); + public static void plotInfLines(final String labelId, final long[] values, final int flags, final int offset) { + nPlotInfLines(labelId, values, flags, offset); } - private static native void nPlotInfLines(String labelId, long[] values, int count); /*MANUAL + private static native void nPlotInfLines(String labelId, long[] values); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); @@ -11867,7 +11867,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, long[] values, int count, int flags); /*MANUAL + private static native void nPlotInfLines(String labelId, long[] values, int flags); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); @@ -11875,7 +11875,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, long[] values, int count, int flags, int offset); /*MANUAL + private static native void nPlotInfLines(String labelId, long[] values, int flags, int offset); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); @@ -11886,25 +11886,25 @@ public final class ImPlot { /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final float[] values, final int count) { - nPlotInfLines(labelId, values, count); + public static void plotInfLines(final String labelId, final float[] values) { + nPlotInfLines(labelId, values); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final float[] values, final int count, final int flags) { - nPlotInfLines(labelId, values, count, flags); + public static void plotInfLines(final String labelId, final float[] values, final int flags) { + nPlotInfLines(labelId, values, flags); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final float[] values, final int count, final int flags, final int offset) { - nPlotInfLines(labelId, values, count, flags, offset); + public static void plotInfLines(final String labelId, final float[] values, final int flags, final int offset) { + nPlotInfLines(labelId, values, flags, offset); } - private static native void nPlotInfLines(String labelId, float[] values, int count); /*MANUAL + private static native void nPlotInfLines(String labelId, float[] values); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); @@ -11912,7 +11912,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, float[] values, int count, int flags); /*MANUAL + private static native void nPlotInfLines(String labelId, float[] values, int flags); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); @@ -11920,7 +11920,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, float[] values, int count, int flags, int offset); /*MANUAL + private static native void nPlotInfLines(String labelId, float[] values, int flags, int offset); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); @@ -11931,25 +11931,25 @@ public final class ImPlot { /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final double[] values, final int count) { - nPlotInfLines(labelId, values, count); + public static void plotInfLines(final String labelId, final double[] values) { + nPlotInfLines(labelId, values); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final double[] values, final int count, final int flags) { - nPlotInfLines(labelId, values, count, flags); + public static void plotInfLines(final String labelId, final double[] values, final int flags) { + nPlotInfLines(labelId, values, flags); } /** * Plots infinite vertical or horizontal lines (e.g. for references or asymptotes). */ - public static void plotInfLines(final String labelId, final double[] values, final int count, final int flags, final int offset) { - nPlotInfLines(labelId, values, count, flags, offset); + public static void plotInfLines(final String labelId, final double[] values, final int flags, final int offset) { + nPlotInfLines(labelId, values, flags, offset); } - private static native void nPlotInfLines(String labelId, double[] values, int count); /*MANUAL + private static native void nPlotInfLines(String labelId, double[] values); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); @@ -11957,7 +11957,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, double[] values, int count, int flags); /*MANUAL + private static native void nPlotInfLines(String labelId, double[] values, int flags); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); @@ -11965,7 +11965,7 @@ public final class ImPlot { if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ - private static native void nPlotInfLines(String labelId, double[] values, int count, int flags, int offset); /*MANUAL + private static native void nPlotInfLines(String labelId, double[] values, int flags, int offset); /*MANUAL auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); diff --git a/imgui-binding/src/main/java/imgui/extension/implot/ImPlot.java b/imgui-binding/src/main/java/imgui/extension/implot/ImPlot.java index d42b7db..9ce3f2b 100644 --- a/imgui-binding/src/main/java/imgui/extension/implot/ImPlot.java +++ b/imgui-binding/src/main/java/imgui/extension/implot/ImPlot.java @@ -812,7 +812,7 @@ public final class ImPlot { @BindingMethod public static native void PlotInfLines(String labelId, @ArgVariant(type = {"short[]", "int[]", "long[]", "float[]", "double[]"}) Void values, - @ArgValue(callValue = "LEN(values)") int count, + @ArgValue(callValue = "LEN(values)") Void count, @OptArg int flags, @OptArg int offset);