Skip to content

Commit 2e78d9d

Browse files
committed
fix: invalid ImPlot#PlotInfLines signature
fixes #339
1 parent 35fc78d commit 2e78d9d

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -11751,41 +11751,41 @@ public static void plotStemsV(final String labelId, final double[] xs, final dou
1175111751
/**
1175211752
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1175311753
*/
11754-
public static void plotInfLines(final String labelId, final short[] values, final int count) {
11755-
nPlotInfLines(labelId, values, count);
11754+
public static void plotInfLines(final String labelId, final short[] values) {
11755+
nPlotInfLines(labelId, values);
1175611756
}
1175711757

1175811758
/**
1175911759
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1176011760
*/
11761-
public static void plotInfLines(final String labelId, final short[] values, final int count, final int flags) {
11762-
nPlotInfLines(labelId, values, count, flags);
11761+
public static void plotInfLines(final String labelId, final short[] values, final int flags) {
11762+
nPlotInfLines(labelId, values, flags);
1176311763
}
1176411764

1176511765
/**
1176611766
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1176711767
*/
11768-
public static void plotInfLines(final String labelId, final short[] values, final int count, final int flags, final int offset) {
11769-
nPlotInfLines(labelId, values, count, flags, offset);
11768+
public static void plotInfLines(final String labelId, final short[] values, final int flags, final int offset) {
11769+
nPlotInfLines(labelId, values, flags, offset);
1177011770
}
1177111771

11772-
private static native void nPlotInfLines(String labelId, short[] values, int count); /*MANUAL
11772+
private static native void nPlotInfLines(String labelId, short[] values); /*MANUAL
1177311773
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1177411774
auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1177511775
ImPlot::PlotInfLines(labelId, &values[0], LEN(values));
1177611776
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1177711777
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1177811778
*/
1177911779

11780-
private static native void nPlotInfLines(String labelId, short[] values, int count, int flags); /*MANUAL
11780+
private static native void nPlotInfLines(String labelId, short[] values, int flags); /*MANUAL
1178111781
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1178211782
auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1178311783
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags);
1178411784
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1178511785
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1178611786
*/
1178711787

11788-
private static native void nPlotInfLines(String labelId, short[] values, int count, int flags, int offset); /*MANUAL
11788+
private static native void nPlotInfLines(String labelId, short[] values, int flags, int offset); /*MANUAL
1178911789
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1179011790
auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1179111791
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset);
@@ -11796,41 +11796,41 @@ public static void plotInfLines(final String labelId, final short[] values, fina
1179611796
/**
1179711797
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1179811798
*/
11799-
public static void plotInfLines(final String labelId, final int[] values, final int count) {
11800-
nPlotInfLines(labelId, values, count);
11799+
public static void plotInfLines(final String labelId, final int[] values) {
11800+
nPlotInfLines(labelId, values);
1180111801
}
1180211802

1180311803
/**
1180411804
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1180511805
*/
11806-
public static void plotInfLines(final String labelId, final int[] values, final int count, final int flags) {
11807-
nPlotInfLines(labelId, values, count, flags);
11806+
public static void plotInfLines(final String labelId, final int[] values, final int flags) {
11807+
nPlotInfLines(labelId, values, flags);
1180811808
}
1180911809

1181011810
/**
1181111811
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1181211812
*/
11813-
public static void plotInfLines(final String labelId, final int[] values, final int count, final int flags, final int offset) {
11814-
nPlotInfLines(labelId, values, count, flags, offset);
11813+
public static void plotInfLines(final String labelId, final int[] values, final int flags, final int offset) {
11814+
nPlotInfLines(labelId, values, flags, offset);
1181511815
}
1181611816

11817-
private static native void nPlotInfLines(String labelId, int[] values, int count); /*MANUAL
11817+
private static native void nPlotInfLines(String labelId, int[] values); /*MANUAL
1181811818
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1181911819
auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1182011820
ImPlot::PlotInfLines(labelId, &values[0], LEN(values));
1182111821
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1182211822
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1182311823
*/
1182411824

11825-
private static native void nPlotInfLines(String labelId, int[] values, int count, int flags); /*MANUAL
11825+
private static native void nPlotInfLines(String labelId, int[] values, int flags); /*MANUAL
1182611826
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1182711827
auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1182811828
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags);
1182911829
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1183011830
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1183111831
*/
1183211832

11833-
private static native void nPlotInfLines(String labelId, int[] values, int count, int flags, int offset); /*MANUAL
11833+
private static native void nPlotInfLines(String labelId, int[] values, int flags, int offset); /*MANUAL
1183411834
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1183511835
auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1183611836
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset);
@@ -11841,41 +11841,41 @@ public static void plotInfLines(final String labelId, final int[] values, final
1184111841
/**
1184211842
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1184311843
*/
11844-
public static void plotInfLines(final String labelId, final long[] values, final int count) {
11845-
nPlotInfLines(labelId, values, count);
11844+
public static void plotInfLines(final String labelId, final long[] values) {
11845+
nPlotInfLines(labelId, values);
1184611846
}
1184711847

1184811848
/**
1184911849
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1185011850
*/
11851-
public static void plotInfLines(final String labelId, final long[] values, final int count, final int flags) {
11852-
nPlotInfLines(labelId, values, count, flags);
11851+
public static void plotInfLines(final String labelId, final long[] values, final int flags) {
11852+
nPlotInfLines(labelId, values, flags);
1185311853
}
1185411854

1185511855
/**
1185611856
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1185711857
*/
11858-
public static void plotInfLines(final String labelId, final long[] values, final int count, final int flags, final int offset) {
11859-
nPlotInfLines(labelId, values, count, flags, offset);
11858+
public static void plotInfLines(final String labelId, final long[] values, final int flags, final int offset) {
11859+
nPlotInfLines(labelId, values, flags, offset);
1186011860
}
1186111861

11862-
private static native void nPlotInfLines(String labelId, long[] values, int count); /*MANUAL
11862+
private static native void nPlotInfLines(String labelId, long[] values); /*MANUAL
1186311863
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1186411864
auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1186511865
ImPlot::PlotInfLines(labelId, &values[0], LEN(values));
1186611866
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1186711867
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1186811868
*/
1186911869

11870-
private static native void nPlotInfLines(String labelId, long[] values, int count, int flags); /*MANUAL
11870+
private static native void nPlotInfLines(String labelId, long[] values, int flags); /*MANUAL
1187111871
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1187211872
auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1187311873
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags);
1187411874
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1187511875
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1187611876
*/
1187711877

11878-
private static native void nPlotInfLines(String labelId, long[] values, int count, int flags, int offset); /*MANUAL
11878+
private static native void nPlotInfLines(String labelId, long[] values, int flags, int offset); /*MANUAL
1187911879
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1188011880
auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1188111881
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset);
@@ -11886,41 +11886,41 @@ public static void plotInfLines(final String labelId, final long[] values, final
1188611886
/**
1188711887
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1188811888
*/
11889-
public static void plotInfLines(final String labelId, final float[] values, final int count) {
11890-
nPlotInfLines(labelId, values, count);
11889+
public static void plotInfLines(final String labelId, final float[] values) {
11890+
nPlotInfLines(labelId, values);
1189111891
}
1189211892

1189311893
/**
1189411894
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1189511895
*/
11896-
public static void plotInfLines(final String labelId, final float[] values, final int count, final int flags) {
11897-
nPlotInfLines(labelId, values, count, flags);
11896+
public static void plotInfLines(final String labelId, final float[] values, final int flags) {
11897+
nPlotInfLines(labelId, values, flags);
1189811898
}
1189911899

1190011900
/**
1190111901
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1190211902
*/
11903-
public static void plotInfLines(final String labelId, final float[] values, final int count, final int flags, final int offset) {
11904-
nPlotInfLines(labelId, values, count, flags, offset);
11903+
public static void plotInfLines(final String labelId, final float[] values, final int flags, final int offset) {
11904+
nPlotInfLines(labelId, values, flags, offset);
1190511905
}
1190611906

11907-
private static native void nPlotInfLines(String labelId, float[] values, int count); /*MANUAL
11907+
private static native void nPlotInfLines(String labelId, float[] values); /*MANUAL
1190811908
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1190911909
auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1191011910
ImPlot::PlotInfLines(labelId, &values[0], LEN(values));
1191111911
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1191211912
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1191311913
*/
1191411914

11915-
private static native void nPlotInfLines(String labelId, float[] values, int count, int flags); /*MANUAL
11915+
private static native void nPlotInfLines(String labelId, float[] values, int flags); /*MANUAL
1191611916
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1191711917
auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1191811918
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags);
1191911919
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1192011920
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1192111921
*/
1192211922

11923-
private static native void nPlotInfLines(String labelId, float[] values, int count, int flags, int offset); /*MANUAL
11923+
private static native void nPlotInfLines(String labelId, float[] values, int flags, int offset); /*MANUAL
1192411924
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1192511925
auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1192611926
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset);
@@ -11931,41 +11931,41 @@ public static void plotInfLines(final String labelId, final float[] values, fina
1193111931
/**
1193211932
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1193311933
*/
11934-
public static void plotInfLines(final String labelId, final double[] values, final int count) {
11935-
nPlotInfLines(labelId, values, count);
11934+
public static void plotInfLines(final String labelId, final double[] values) {
11935+
nPlotInfLines(labelId, values);
1193611936
}
1193711937

1193811938
/**
1193911939
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1194011940
*/
11941-
public static void plotInfLines(final String labelId, final double[] values, final int count, final int flags) {
11942-
nPlotInfLines(labelId, values, count, flags);
11941+
public static void plotInfLines(final String labelId, final double[] values, final int flags) {
11942+
nPlotInfLines(labelId, values, flags);
1194311943
}
1194411944

1194511945
/**
1194611946
* Plots infinite vertical or horizontal lines (e.g. for references or asymptotes).
1194711947
*/
11948-
public static void plotInfLines(final String labelId, final double[] values, final int count, final int flags, final int offset) {
11949-
nPlotInfLines(labelId, values, count, flags, offset);
11948+
public static void plotInfLines(final String labelId, final double[] values, final int flags, final int offset) {
11949+
nPlotInfLines(labelId, values, flags, offset);
1195011950
}
1195111951

11952-
private static native void nPlotInfLines(String labelId, double[] values, int count); /*MANUAL
11952+
private static native void nPlotInfLines(String labelId, double[] values); /*MANUAL
1195311953
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1195411954
auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1195511955
ImPlot::PlotInfLines(labelId, &values[0], LEN(values));
1195611956
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1195711957
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1195811958
*/
1195911959

11960-
private static native void nPlotInfLines(String labelId, double[] values, int count, int flags); /*MANUAL
11960+
private static native void nPlotInfLines(String labelId, double[] values, int flags); /*MANUAL
1196111961
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1196211962
auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1196311963
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags);
1196411964
if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId);
1196511965
if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE);
1196611966
*/
1196711967

11968-
private static native void nPlotInfLines(String labelId, double[] values, int count, int flags, int offset); /*MANUAL
11968+
private static native void nPlotInfLines(String labelId, double[] values, int flags, int offset); /*MANUAL
1196911969
auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE);
1197011970
auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE);
1197111971
ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset);

imgui-binding/src/main/java/imgui/extension/implot/ImPlot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public static native void PlotStemsV(String labelId,
812812
@BindingMethod
813813
public static native void PlotInfLines(String labelId,
814814
@ArgVariant(type = {"short[]", "int[]", "long[]", "float[]", "double[]"}) Void values,
815-
@ArgValue(callValue = "LEN(values)") int count,
815+
@ArgValue(callValue = "LEN(values)") Void count,
816816
@OptArg int flags,
817817
@OptArg int offset);
818818

0 commit comments

Comments
 (0)