feat(generator): create unwrapped methods for methods with dst arg (#263)

Also, minor fixes for binding declarations.
This commit is contained in:
SpaiR authored and GitHub committed 2024-08-21 14:31:05 +03:00
1 parent f18c578a10
commit 2086b7977b
7 files changed
+354 -173

No files matched your search

@@ -10746,6 +10746,14 @@ public final class ImPlot {
nPixelsToPlot(dst, pix.x, pix.y);
}
/**
* Converts pixels to a position in the current plot's coordinate system.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void pixelsToPlot(final ImPlotPoint dst, final float pixX, final float pixY) {
nPixelsToPlot(dst, pixX, pixY);
}
/**
* Converts pixels to a position in the current plot's coordinate system.
* Passing IMPLOT_AUTO uses the current axes.
@@ -10774,6 +10782,14 @@ public final class ImPlot {
nPixelsToPlot(dst, pix.x, pix.y, xAxis);
}
/**
* Converts pixels to a position in the current plot's coordinate system.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void pixelsToPlot(final ImPlotPoint dst, final float pixX, final float pixY, final int xAxis) {
nPixelsToPlot(dst, pixX, pixY, xAxis);
}
/**
* Converts pixels to a position in the current plot's coordinate system.
* Passing IMPLOT_AUTO uses the current axes.
@@ -10802,6 +10818,14 @@ public final class ImPlot {
nPixelsToPlot(dst, pix.x, pix.y, xAxis, yAxis);
}
/**
* Converts pixels to a position in the current plot's coordinate system.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void pixelsToPlot(final ImPlotPoint dst, final float pixX, final float pixY, final int xAxis, final int yAxis) {
nPixelsToPlot(dst, pixX, pixY, xAxis, yAxis);
}
private static native void nPixelsToPlot(ImPlotPoint dst, float pixX, float pixY); /*MANUAL
ImVec2 pix = ImVec2(pixX, pixY);
Jni::ImPlotPointCpy(env, ImPlot::PixelsToPlot(pix), dst);
@@ -10861,6 +10885,14 @@ public final class ImPlot {
nPlotToPixels(dst, plt.x, plt.y);
}
/**
* Converts a position in the current plot's coordinate system to pixels.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void plotToPixels(final ImVec2 dst, final double pltX, final double pltY) {
nPlotToPixels(dst, pltX, pltY);
}
/**
* Converts a position in the current plot's coordinate system to pixels.
* Passing IMPLOT_AUTO uses the current axes.
@@ -10905,6 +10937,14 @@ public final class ImPlot {
nPlotToPixels(dst, plt.x, plt.y, xAxis);
}
/**
* Converts a position in the current plot's coordinate system to pixels.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void plotToPixels(final ImVec2 dst, final double pltX, final double pltY, final int xAxis) {
nPlotToPixels(dst, pltX, pltY, xAxis);
}
/**
* Converts a position in the current plot's coordinate system to pixels.
* Passing IMPLOT_AUTO uses the current axes.
@@ -10949,6 +10989,14 @@ public final class ImPlot {
nPlotToPixels(dst, plt.x, plt.y, xAxis, yAxis);
}
/**
* Converts a position in the current plot's coordinate system to pixels.
* Passing IMPLOT_AUTO uses the current axes.
*/
public static void plotToPixels(final ImVec2 dst, final double pltX, final double pltY, final int xAxis, final int yAxis) {
nPlotToPixels(dst, pltX, pltY, xAxis, yAxis);
}
private static native void nPlotToPixels(ImVec2 dst, double pltX, double pltY); /*
Jni::ImVec2Cpy(env, ImPlot::PlotToPixels(ImPlotPoint(pltX, pltY)), dst);
*/