diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index f0fa755..882f0e1 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -91,6 +91,10 @@ + + + + @@ -160,7 +164,10 @@ - + + + + @@ -178,11 +185,11 @@ - + - + diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml new file mode 100644 index 0000000..1a8371f --- /dev/null +++ b/config/checkstyle/suppressions.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + diff --git a/imgui-binding/build.gradle b/imgui-binding/build.gradle index 12d96e1..4d41c3e 100644 --- a/imgui-binding/build.gradle +++ b/imgui-binding/build.gradle @@ -2,6 +2,7 @@ import imgui.generate.GenerateLibs plugins { id 'java' + id 'checkstyle' id 'com.jfrog.bintray' version '1.8.4' id 'maven-publish' } diff --git a/imgui-binding/src/main/java/imgui/ImBool.java b/imgui-binding/src/main/java/imgui/ImBool.java index 98586c3..4916698 100644 --- a/imgui-binding/src/main/java/imgui/ImBool.java +++ b/imgui-binding/src/main/java/imgui/ImBool.java @@ -3,12 +3,12 @@ package imgui; import java.util.Objects; public final class ImBool { - boolean[] data = new boolean[]{false}; + final boolean[] data = new boolean[]{false}; public ImBool() { } - public ImBool(boolean value) { + public ImBool(final boolean value) { data[0] = value; } @@ -16,7 +16,7 @@ public final class ImBool { return data[0]; } - public void set(boolean value) { + public void set(final boolean value) { data[0] = value; } @@ -26,10 +26,14 @@ public final class ImBool { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImBool imBool = (ImBool) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImBool imBool = (ImBool) o; return data[0] == imBool.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImDouble.java b/imgui-binding/src/main/java/imgui/ImDouble.java index 562e2a3..5bb3c1c 100644 --- a/imgui-binding/src/main/java/imgui/ImDouble.java +++ b/imgui-binding/src/main/java/imgui/ImDouble.java @@ -3,12 +3,12 @@ package imgui; import java.util.Objects; public final class ImDouble { - double[] data = new double[]{0.0d}; + final double[] data = new double[]{0.0d}; public ImDouble() { } - public ImDouble(double value) { + public ImDouble(final double value) { set(value); } @@ -16,7 +16,7 @@ public final class ImDouble { return this.data[0]; } - public void set(double value) { + public void set(final double value) { this.data[0] = value; } @@ -26,10 +26,14 @@ public final class ImDouble { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImDouble imDouble = (ImDouble) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImDouble imDouble = (ImDouble) o; return data[0] == imDouble.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImDrawData.java b/imgui-binding/src/main/java/imgui/ImDrawData.java index 6d67974..d6f574e 100644 --- a/imgui-binding/src/main/java/imgui/ImDrawData.java +++ b/imgui-binding/src/main/java/imgui/ImDrawData.java @@ -9,9 +9,9 @@ import java.nio.ByteOrder; * BINDING NOTICE: DO NOT TRY TO MODIFY FIELDS OF THIS CLASS MANUALLY! You should only access their values after {@link ImGui#Render()} call. */ public final class ImDrawData { - public static int V_BUFFER_SIZE = (4 + 1) * 4; - public static int I_BUFFER_SIZE = 2; - public static int CMD_BUFFER_SIZE = (1 + 4 + 1) * 4; + public static final int V_BUFFER_SIZE = (4 + 1) * 4; + public static final int I_BUFFER_SIZE = 2; + public static final int CMD_BUFFER_SIZE = (1 + 4 + 1) * 4; public ByteBuffer vByteBuffer; public ByteBuffer iByteBuffer; @@ -37,7 +37,7 @@ public final class ImDrawData { public float framebufferScaleX; public float framebufferScaleY; - ImDrawData(int maxVertices, int maxIndices, int maxCmd) { + ImDrawData(final int maxVertices, final int maxIndices, final int maxCmd) { vByteBuffer = ByteBuffer.allocateDirect(maxVertices * V_BUFFER_SIZE).order(ByteOrder.nativeOrder()); iByteBuffer = ByteBuffer.allocateDirect(maxIndices * I_BUFFER_SIZE).order(ByteOrder.nativeOrder()); cmdByteBuffer = ByteBuffer.allocateDirect(maxCmd * CMD_BUFFER_SIZE).order(ByteOrder.nativeOrder()); diff --git a/imgui-binding/src/main/java/imgui/ImDrawList.java b/imgui-binding/src/main/java/imgui/ImDrawList.java index 80c2484..93b7639 100644 --- a/imgui-binding/src/main/java/imgui/ImDrawList.java +++ b/imgui-binding/src/main/java/imgui/ImDrawList.java @@ -18,7 +18,7 @@ public final class ImDrawList { private final int drawListType; - ImDrawList(int drawListType) { + ImDrawList(final int drawListType) { this.drawListType = drawListType; } @@ -61,103 +61,103 @@ public final class ImDrawList { */ // Primitives - // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For rectangular primitives, "pMin" and "pMax" represent the upper-left and lower-right corners. - public native void AddLine(float p1_x, float p1_y, float p2_x, float p2_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddLine(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), col); + public native void addLine(float p1X, float p1Y, float p2X, float p2Y, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddLine(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), col); */ - public native void AddLine(float p1_x, float p1_y, float p2_x, float p2_y, long col, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddLine(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), col, thickness); + public native void addLine(float p1X, float p1Y, float p2X, float p2Y, long col, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddLine(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), col, thickness); */ - public native void AddRect(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col); + public native void addRect(float pMinX, float pMinY, float pMaxX, float pMaxY, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col); */ - public native void AddRect(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col, float rounding); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col, rounding); + public native void addRect(float pMinX, float pMinY, float pMaxX, float pMaxY, long col, float rounding); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col, rounding); */ - public native void AddRect(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col, float rounding, int rounding_corners_flags); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col, rounding, rounding_corners_flags); + public native void addRect(float pMinX, float pMinY, float pMaxX, float pMaxY, long col, float rounding, int roundingCornersFlags); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col, rounding, roundingCornersFlags); */ - public native void AddRect(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col, float rounding, int rounding_corners_flags, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col, rounding, rounding_corners_flags, thickness); + public native void addRect(float pMinX, float pMinY, float pMaxX, float pMaxY, long col, float rounding, int roundingCornersFlags, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRect(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col, rounding, roundingCornersFlags, thickness); */ - public native void AddRectFilled(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col); + public native void addRectFilled(float pMinX, float pMinY, float pMaxX, float pMaxY, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col); */ - public native void AddRectFilled(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col, float rounding); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col, rounding); + public native void addRectFilled(float pMinX, float pMinY, float pMaxX, float pMaxY, long col, float rounding); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col, rounding); */ - public native void AddRectFilled(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col, float rounding, int rounding_corners_flags); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col, rounding, rounding_corners_flags); + public native void addRectFilled(float pMinX, float pMinY, float pMaxX, float pMaxY, long col, float rounding, int roundingCornersFlags); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilled(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), col, rounding, roundingCornersFlags); */ - public native void AddRectFilledMultiColor(float p_min_x, float p_min_y, float p_max_x, float p_max_y, long col_upr_left, long col_upr_right, long col_bot_right, long col_bot_left); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilledMultiColor(ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), col_upr_left, col_upr_right, col_bot_right, col_bot_left); + public native void addRectFilledMultiColor(float pMinX, float pMinY, float pMaxX, float pMaxY, long colUprLeft, long colUprRight, long colBotRight, long colBotLeft); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddRectFilledMultiColor(ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), colUprLeft, colUprRight, colBotRight, colBotLeft); */ - public native void AddQuad(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddQuad(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), col); + public native void addQuad(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddQuad(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), col); */ - public native void AddQuad(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, long col, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddQuad(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), col, thickness); + public native void addQuad(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, long col, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddQuad(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), col, thickness); */ - public native void AddQuadFilled(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddQuadFilled(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), col); + public native void addQuadFilled(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddQuadFilled(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), col); */ - public native void AddTriangle(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangle(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), col); + public native void addTriangle(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangle(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), col); */ - public native void AddTriangle(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, long col, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangle(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), col, thickness); + public native void addTriangle(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, long col, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangle(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), col, thickness); */ - public native void AddTriangleFilled(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, long col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangleFilled(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), col); + public native void addTriangleFilled(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, long col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddTriangleFilled(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), col); */ - public native void AddCircle(float centre_x, float centre_y, float radius, float col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centre_x, centre_y), radius, col); + public native void addCircle(float centreX, float centreY, float radius, float col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centreX, centreY), radius, col); */ - public native void AddCircle(float centre_x, float centre_y, float radius, float col, int num_segments); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centre_x, centre_y), radius, col, num_segments); + public native void addCircle(float centreX, float centreY, float radius, float col, int numSegments); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centreX, centreY), radius, col, numSegments); */ - public native void AddCircle(float centre_x, float centre_y, float radius, float col, int num_segments, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centre_x, centre_y), radius, col, num_segments, thickness); + public native void addCircle(float centreX, float centreY, float radius, float col, int numSegments, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddCircle(ImVec2(centreX, centreY), radius, col, numSegments, thickness); */ - public native void AddCircleFilled(float centre_x, float centre_y, float radius, float col); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddCircleFilled(ImVec2(centre_x, centre_y), radius, col); + public native void addCircleFilled(float centreX, float centreY, float radius, float col); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddCircleFilled(ImVec2(centreX, centreY), radius, col); */ - public native void AddCircleFilled(float centre_x, float centre_y, float radius, float col, int num_segments); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddCircleFilled(ImVec2(centre_x, centre_y), radius, col, num_segments); + public native void addCircleFilled(float centreX, float centreY, float radius, float col, int numSegments); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddCircleFilled(ImVec2(centreX, centreY), radius, col, numSegments); */ - public native void AddText(float pos_x, float pos_y, int col, String text_begin); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddText(ImVec2(pos_x, pos_y), col, text_begin); + public native void addText(float posX, float posY, int col, String textBegin); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddText(ImVec2(posX, posY), col, textBegin); */ - public native void AddText(float pos_x, float pos_y, int col, String text_begin, String text_end); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddText(ImVec2(pos_x, pos_y), col, text_begin, text_end); + public native void addText(float posX, float posY, int col, String textBegin, String textEnd); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddText(ImVec2(posX, posY), col, textBegin, textEnd); */ // TODO add text with font support - public native void AddPolyline(ImVec2[] points, int num_points, long col, boolean closed, float thickness); /* + public native void addPolyline(ImVec2[] points, int numPoints, long col, boolean closed, float thickness); /* int points_num = env->GetArrayLength(points); ImVec2 _points[points_num]; for (int i = 0; i < points_num; i++) { @@ -166,11 +166,11 @@ public final class ImDrawList { Jni::ImVec2Cpy(env, jImVec2, &dst); _points[i] = dst; } - getDrawList(env->GetIntField(object, drawListTypeID))->AddPolyline(_points, num_points, col, closed, thickness); + getDrawList(env->GetIntField(object, drawListTypeID))->AddPolyline(_points, numPoints, col, closed, thickness); */ // Note: Anti-aliased filling requires points to be in clockwise order. - public native void AddConvexPolyFilled(ImVec2[] points, int num_points, long col); /* + public native void addConvexPolyFilled(ImVec2[] points, int numPoints, long col); /* int points_num = env->GetArrayLength(points); ImVec2 _points[points_num]; for (int i = 0; i < points_num; i++) { @@ -179,153 +179,153 @@ public final class ImDrawList { Jni::ImVec2Cpy(env, jImVec2, &dst); _points[i] = dst; } - getDrawList(env->GetIntField(object, drawListTypeID))->AddConvexPolyFilled(_points, num_points, col); + getDrawList(env->GetIntField(object, drawListTypeID))->AddConvexPolyFilled(_points, numPoints, col); */ - public native void AddBezierCurve(float pos0_x, float pos0_y, float cp0_x, float cp0_y, float cp1_x, float cp1_y, float pos1_x, float pos1_y, long col, float thickness); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddBezierCurve(ImVec2(pos0_x, pos0_y), ImVec2(cp0_x, cp0_y), ImVec2(cp1_x, cp1_y), ImVec2(pos1_x, pos1_y), col, thickness); + public native void addBezierCurve(float pos0X, float pos0Y, float cp0X, float cp0Y, float cp1X, float cp1Y, float pos1X, float pos1Y, long col, float thickness); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddBezierCurve(ImVec2(pos0X, pos0Y), ImVec2(cp0X, cp0Y), ImVec2(cp1X, cp1Y), ImVec2(pos1X, pos1Y), col, thickness); */ - public native void AddBezierCurve(float pos0_x, float pos0_y, float cp0_x, float cp0_y, float cp1_x, float cp1_y, float pos1_x, float pos1_y, long col, float thickness, int num_segments); /* - getDrawList(env->GetIntField(object, drawListTypeID))->AddBezierCurve(ImVec2(pos0_x, pos0_y), ImVec2(cp0_x, cp0_y), ImVec2(cp1_x, cp1_y), ImVec2(pos1_x, pos1_y), col, thickness, num_segments); + public native void addBezierCurve(float pos0X, float pos0Y, float cp0X, float cp0Y, float cp1X, float cp1Y, float pos1X, float pos1Y, long col, float thickness, int numSegments); /* + getDrawList(env->GetIntField(object, drawListTypeID))->AddBezierCurve(ImVec2(pos0X, pos0Y), ImVec2(cp0X, cp0Y), ImVec2(cp1X, cp1Y), ImVec2(pos1X, pos1Y), col, thickness, numSegments); */ // Image primitives // - Read FAQ to understand what ImTextureID is. - // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. - // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + // - "pMin" and "pMax" represent the upper-left and lower-right corners of the rectangle. + // - "uvMin" and "uvMax" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. - public native void AddImage(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y); /* + public native void addImage(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImage((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y)); + drawList->AddImage((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY)); */ - public native void AddImage(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y, float uv_min_x, float uv_min_y); /* + public native void addImage(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY, float uvMinX, float uvMinY); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImage((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), ImVec2(uv_min_x, uv_min_y)); + drawList->AddImage((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), ImVec2(uvMinX, uvMinY)); */ - public native void AddImage(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y, float uv_min_x, float uv_min_y, float uv_max_x, float uv_max_y); /* + public native void addImage(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY, float uvMinX, float uvMinY, float uvMaxX, float uvMaxY); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImage((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), ImVec2(uv_min_x, uv_min_y), ImVec2(uv_max_x, uv_max_y)); + drawList->AddImage((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), ImVec2(uvMinX, uvMinY), ImVec2(uvMaxX, uvMaxY)); */ - public native void AddImage(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y, float uv_min_x, float uv_min_y, float uv_max_x, float uv_max_y, long col); /* + public native void addImage(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY, float uvMinX, float uvMinY, float uvMaxX, float uvMaxY, long col); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImage((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), ImVec2(uv_min_x, uv_min_y), ImVec2(uv_max_x, uv_max_y), col); + drawList->AddImage((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), ImVec2(uvMinX, uvMinY), ImVec2(uvMaxX, uvMaxY), col); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y)); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y)); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, float uv1_x, float uv1_y); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, float uv1X, float uv1Y); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), ImVec2(uv1_x, uv1_y)); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), ImVec2(uv1X, uv1Y)); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, float uv1_x, float uv1_y, float uv2_x, float uv2_y); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, float uv1X, float uv1Y, float uv2X, float uv2Y); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), ImVec2(uv1_x, uv1_y), ImVec2(uv2_x, uv2_y)); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), ImVec2(uv1X, uv1Y), ImVec2(uv2X, uv2Y)); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, float uv1_x, float uv1_y, float uv2_x, float uv2_y, float uv3_x, float uv3_y); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, float uv1X, float uv1Y, float uv2X, float uv2Y, float uv3X, float uv3Y); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), ImVec2(uv1_x, uv1_y), ImVec2(uv2_x, uv2_y), ImVec2(uv3_x, uv3_y)); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), ImVec2(uv1X, uv1Y), ImVec2(uv2X, uv2Y), ImVec2(uv3X, uv3Y)); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, float uv1_x, float uv1_y, float uv2_x, float uv2_y, float uv3_x, float uv3_y, float uv4_x, float uv4_y); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, float uv1X, float uv1Y, float uv2X, float uv2Y, float uv3X, float uv3Y, float uv4X, float uv4Y); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), ImVec2(uv1_x, uv1_y), ImVec2(uv2_x, uv2_y), ImVec2(uv3_x, uv3_y), ImVec2(uv4_x, uv4_y)); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), ImVec2(uv1X, uv1Y), ImVec2(uv2X, uv2Y), ImVec2(uv3X, uv3Y), ImVec2(uv4X, uv4Y)); */ - public native void AddImageQuad(int textureID, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, float p4_x, float p4_y, float uv1_x, float uv1_y, float uv2_x, float uv2_y, float uv3_x, float uv3_y, float uv4_x, float uv4_y, long col); /* + public native void addImageQuad(int textureID, float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, float p4X, float p4Y, float uv1X, float uv1Y, float uv2X, float uv2Y, float uv3X, float uv3Y, float uv4X, float uv4Y, long col); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), ImVec2(p4_x, p4_y), ImVec2(uv1_x, uv1_y), ImVec2(uv2_x, uv2_y), ImVec2(uv3_x, uv3_y), ImVec2(uv4_x, uv4_y), col); + drawList->AddImageQuad((ImTextureID)textureID, ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), ImVec2(p4X, p4Y), ImVec2(uv1X, uv1Y), ImVec2(uv2X, uv2Y), ImVec2(uv3X, uv3Y), ImVec2(uv4X, uv4Y), col); */ - public native void AddImageRounded(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y, float uv_min_x, float uv_min_y, float uv_max_x, float uv_max_y, long col, float rounding); /* + public native void addImageRounded(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY, float uvMinX, float uvMinY, float uvMaxX, float uvMaxY, long col, float rounding); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageRounded((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), ImVec2(uv_min_x, uv_min_y), ImVec2(uv_max_x, uv_max_y), col, rounding); + drawList->AddImageRounded((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), ImVec2(uvMinX, uvMinY), ImVec2(uvMaxX, uvMaxY), col, rounding); */ - public native void AddImageRounded(int textureID, float p_min_x, float p_min_y, float p_max_x, float p_max_y, float uv_min_x, float uv_min_y, float uv_max_x, float uv_max_y, long col, float rounding, int imDrawCornerFlags); /* + public native void addImageRounded(int textureID, float pMinX, float pMinY, float pMaxX, float pMaxY, float uvMinX, float uvMinY, float uvMaxX, float uvMaxY, long col, float rounding, int imDrawCornerFlags); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); - drawList->AddImageRounded((ImTextureID)textureID, ImVec2(p_min_x, p_min_y), ImVec2(p_max_x, p_max_y), ImVec2(uv_min_x, uv_min_y), ImVec2(uv_max_x, uv_max_y), col, rounding, imDrawCornerFlags); + drawList->AddImageRounded((ImTextureID)textureID, ImVec2(pMinX, pMinY), ImVec2(pMaxX, pMaxY), ImVec2(uvMinX, uvMinY), ImVec2(uvMaxX, uvMaxY), col, rounding, imDrawCornerFlags); */ // Stateful path API, add points then finish with PathFillConvex() or PathStroke() - public native void PathClear(); /* + public native void pathClear(); /* getDrawList(env->GetIntField(object, drawListTypeID))->PathClear(); */ - public native void PathLineTo(float pos_x, float pos_y); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathLineTo(ImVec2(pos_x, pos_y)); + public native void pathLineTo(float posX, float posY); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathLineTo(ImVec2(posX, posY)); */ - public native void PathLineToMergeDuplicate(float pos_x, float pos_y); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathLineToMergeDuplicate(ImVec2(pos_x, pos_y)); + public native void pathLineToMergeDuplicate(float posX, float posY); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathLineToMergeDuplicate(ImVec2(posX, posY)); */ // Note: Anti-aliased filling requires points to be in clockwise order. - public native void PathFillConvex(long col); /* + public native void pathFillConvex(long col); /* getDrawList(env->GetIntField(object, drawListTypeID))->PathFillConvex(col); */ - public native void PathStroke(long col, boolean closed); /* + public native void pathStroke(long col, boolean closed); /* getDrawList(env->GetIntField(object, drawListTypeID))->PathStroke(col, closed); */ - public native void PathStroke(long col, boolean closed, float thickness); /* + public native void pathStroke(long col, boolean closed, float thickness); /* getDrawList(env->GetIntField(object, drawListTypeID))->PathStroke(col, closed, thickness); */ - public native void PathArcTo(float center_x, float center_y, float radius, float a_min, float a_max); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathArcTo(ImVec2(center_x, center_y), radius, a_min, a_max); + public native void pathArcTo(float centerX, float centerY, float radius, float aMin, float aMax); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathArcTo(ImVec2(centerX, centerY), radius, aMin, aMax); */ - public native void PathArcTo(float center_x, float center_y, float radius, float a_min, float a_max, int num_segments); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathArcTo(ImVec2(center_x, center_y), radius, a_min, a_max, num_segments); + public native void pathArcTo(float centerX, float centerY, float radius, float aMin, float aMax, int numSegments); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathArcTo(ImVec2(centerX, centerY), radius, aMin, aMax, numSegments); */ // Use precomputed angles for a 12 steps circle - public native void PathArcToFast(float center_x, float center_y, float radius, int a_min_of_12, int a_max_of_12); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathArcToFast(ImVec2(center_x, center_y), radius, a_min_of_12, a_max_of_12); + public native void pathArcToFast(float centerX, float centerY, float radius, int aMinOf12, int aMaxOf12); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathArcToFast(ImVec2(centerX, centerY), radius, aMinOf12, aMaxOf12); */ - public native void PathBezierCurveTo(float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y, int num_segments); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathBezierCurveTo(ImVec2(p1_x, p1_y), ImVec2(p2_x, p2_y), ImVec2(p3_x, p3_y), num_segments); + public native void pathBezierCurveTo(float p1X, float p1Y, float p2X, float p2Y, float p3X, float p3Y, int numSegments); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathBezierCurveTo(ImVec2(p1X, p1Y), ImVec2(p2X, p2Y), ImVec2(p3X, p3Y), numSegments); */ - public native void PathRect(float rect_min_x, float rect_min_y, float rect_max_x, float rect_max_y); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rect_min_x, rect_min_y), ImVec2(rect_max_x, rect_max_y)); + public native void pathRect(float rectMinX, float rectMinY, float rectMaxX, float rectMaxY); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rectMinX, rectMinY), ImVec2(rectMaxX, rectMaxY)); */ - public native void PathRect(float rect_min_x, float rect_min_y, float rect_max_x, float rect_max_y, float rounding); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rect_min_x, rect_min_y), ImVec2(rect_max_x, rect_max_y), rounding); + public native void pathRect(float rectMinX, float rectMinY, float rectMaxX, float rectMaxY, float rounding); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rectMinX, rectMinY), ImVec2(rectMaxX, rectMaxY), rounding); */ - public native void PathRect(float rect_min_x, float rect_min_y, float rect_max_x, float rect_max_y, float rounding, int imDrawCornerFlags); /* - getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rect_min_x, rect_min_y), ImVec2(rect_max_x, rect_max_y), rounding, imDrawCornerFlags); + public native void pathRect(float rectMinX, float rectMinY, float rectMaxX, float rectMaxY, float rounding, int imDrawCornerFlags); /* + getDrawList(env->GetIntField(object, drawListTypeID))->PathRect(ImVec2(rectMinX, rectMinY), ImVec2(rectMaxX, rectMaxY), rounding, imDrawCornerFlags); */ // Advanced: Channels // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit foreground primitives before background primitives) // - Use to minimize draw calls (e.g. if going back-and-forth between multiple non-overlapping clipping rectangles, prefer to append into separate channels then merge at the end) - public native void ChannelsSplit(int count); /* + public native void channelsSplit(int count); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); drawList->ChannelsSplit(count); */ - public native void ChannelsMerge(); /* + public native void channelsMerge(); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); drawList->ChannelsMerge(); */ - public native void ChannelsSetCurrent(int n); /* + public native void channelsSetCurrent(int n); /* ImDrawList* drawList = getDrawList(env->GetIntField(object, drawListTypeID)); drawList->ChannelsSetCurrent(n); */ diff --git a/imgui-binding/src/main/java/imgui/ImFloat.java b/imgui-binding/src/main/java/imgui/ImFloat.java index 5e46273..dad2b68 100644 --- a/imgui-binding/src/main/java/imgui/ImFloat.java +++ b/imgui-binding/src/main/java/imgui/ImFloat.java @@ -3,12 +3,12 @@ package imgui; import java.util.Objects; public final class ImFloat { - float[] data = new float[]{0.0f}; + final float[] data = new float[]{0}; public ImFloat() { } - public ImFloat(float value) { + public ImFloat(final float value) { set(value); } @@ -16,7 +16,7 @@ public final class ImFloat { return this.data[0]; } - public void set(float value) { + public void set(final float value) { this.data[0] = value; } @@ -26,10 +26,14 @@ public final class ImFloat { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImFloat imFloat = (ImFloat) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImFloat imFloat = (ImFloat) o; return data[0] == imFloat.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImGui.java b/imgui-binding/src/main/java/imgui/ImGui.java index e8b8d2c..609d3c1 100644 --- a/imgui-binding/src/main/java/imgui/ImGui.java +++ b/imgui-binding/src/main/java/imgui/ImGui.java @@ -44,13 +44,13 @@ public final class ImGui { // // BINDING NOTICE: Getting of the current context is not implemented since it's a part of internal API which is not exposed here. - public static native void CreateContext(); /* + public static native void createContext(); /* ImGui::CreateContext(); */ // public static void CreateContext(ImFontAtlas sharedFontAtlas) TODO create context with fonts - public static native void DestroyContext(); /* + public static native void destroyContext(); /* ImGui::DestroyContext(); */ @@ -59,21 +59,21 @@ public final class ImGui { /** * Access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags). */ - public static ImGuiIO GetIO() { + public static ImGuiIO getIO() { return IMGUI_IO; } /** * Access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame. */ - public static ImGuiStyle GetStyle() { + public static ImGuiStyle getStyle() { return IMGUI_STYLE; } /** * Start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). */ - public static native void NewFrame(); /* + public static native void newFrame(); /* ImGui::NewFrame(); */ @@ -82,7 +82,7 @@ public final class ImGui { * If you don't need to render data (skipping rendering) you may call EndFrame() but you'll have wasted CPU already! * If you don't need to render, better to not create any imgui windows and not call NewFrame() at all! */ - public static native void EndFrame(); /* + public static native void endFrame(); /* ImGui::EndFrame(); */ @@ -90,17 +90,17 @@ public final class ImGui { * Ends the Dear ImGui frame, finalize the draw data. * You can get call GetDrawData() to obtain it and run your rendering function. */ - public static native void Render(); /* + public static native void render(); /* ImGui::Render(); */ /** * Valid after Render() and until the next call to NewFrame(). this is what you have to render. */ - public static ImDrawData GetDrawData() { - ByteBuffer cmdByteBuffer = DRAW_DATA.cmdByteBuffer; - ByteBuffer vByteBuffer = DRAW_DATA.vByteBuffer; - ByteBuffer iByteBuffer = DRAW_DATA.iByteBuffer; + public static ImDrawData getDrawData() { + final ByteBuffer cmdByteBuffer = DRAW_DATA.cmdByteBuffer; + final ByteBuffer vByteBuffer = DRAW_DATA.vByteBuffer; + final ByteBuffer iByteBuffer = DRAW_DATA.iByteBuffer; vByteBuffer.position(0); iByteBuffer.position(0); cmdByteBuffer.position(0); @@ -114,11 +114,11 @@ public final class ImGui { * Create Demo window (previously called ShowTestWindow). demonstrate most ImGui features. * Call this to learn about the library! */ - public static native void ShowDemoWindow(); /* + public static native void showDemoWindow(); /* ImGui::ShowDemoWindow(); */ - public static void ShowDemoWindow(ImBool pOpen) { + public static void showDemoWindow(ImBool pOpen) { nShowDemoWindow(pOpen.data); } @@ -129,11 +129,11 @@ public final class ImGui { /** * Create About window. display Dear ImGui version, credits and build/system information. */ - public static native void ShowAboutWindow(); /* + public static native void showAboutWindow(); /* ImGui::ShowAboutWindow(); */ - public static void ShowAboutWindow(ImBool pOpen) { + public static void showAboutWindow(ImBool pOpen) { nShowAboutWindow(pOpen.data); } @@ -145,11 +145,11 @@ public final class ImGui { * Create Metrics/Debug window. * Display Dear ImGui internals: draw commands (with individual draw calls and vertices), window list, basic internal state, etc. */ - public static native void ShowMetricsWindow(); /* + public static native void showMetricsWindow(); /* ImGui::ShowMetricsWindow(); */ - public static void ShowMetricsWindow(ImBool pOpen) { + public static void showMetricsWindow(ImBool pOpen) { nShowMetricsWindow(pOpen.data); } @@ -161,35 +161,35 @@ public final class ImGui { * Add style editor block (not a window). * You can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) */ - public static native void ShowStyleEditor(); /* + public static native void showStyleEditor(); /* ImGui::ShowStyleEditor(); */ /** * Add style selector block (not a window), essentially a combo listing the default styles. */ - public static native boolean ShowStyleSelector(String label); /* + public static native boolean showStyleSelector(String label); /* return ImGui::ShowStyleSelector(label); */ /** * Add font selector block (not a window), essentially a combo listing the loaded fonts. */ - public static native void ShowFontSelector(String label); /* + public static native void showFontSelector(String label); /* ImGui::ShowFontSelector(label); */ /** * Add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). */ - public static native void ShowUserGuide(); /* + public static native void showUserGuide(); /* ImGui::ShowUserGuide(); */ /** * Get the compiled version string e.g. "1.23" (essentially the compiled value for IMGUI_VERSION) */ - public static native String GetVersion(); /* + public static native String getVersion(); /* return env->NewStringUTF(ImGui::GetVersion()); */ @@ -198,21 +198,21 @@ public final class ImGui { /** * New, recommended style (default) */ - public static native void StyleColorsDark(); /* + public static native void styleColorsDark(); /* ImGui::StyleColorsDark(); */ /** * Classic imgui style */ - public static native void StyleColorsClassic(); /* + public static native void styleColorsClassic(); /* ImGui::StyleColorsClassic(); */ /** * Best used with borders and a custom, thicker font */ - public static native void StyleColorsLight(); /* + public static native void styleColorsLight(); /* ImGui::StyleColorsLight(); */ @@ -228,15 +228,15 @@ public final class ImGui { // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] // - Note that the bottom of window stack always contains a window called "Debug". - public static native boolean Begin(String title); /* + public static native boolean begin(String title); /* return ImGui::Begin(title); */ - public static boolean Begin(String title, ImBool pOpen) { + public static boolean begin(String title, ImBool pOpen) { return nBegin(title, pOpen.data, 0); } - public static boolean Begin(String title, ImBool pOpen, int imGuiWindowFlags) { + public static boolean begin(String title, ImBool pOpen, int imGuiWindowFlags) { return nBegin(title, pOpen.data, imGuiWindowFlags); } @@ -244,7 +244,7 @@ public final class ImGui { return ImGui::Begin(title, &pOpen[0], imGuiWindowFlags); */ - public static native void End(); /* + public static native void end(); /* ImGui::End(); */ @@ -254,60 +254,60 @@ public final class ImGui { // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. // Always call a matching EndChild() for each BeginChild() call, regardless of its return value [this is due to legacy reason and is inconsistent with most other functions such as BeginMenu/EndMenu, BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function returned true.] - public static native boolean BeginChild(String strId); /* + public static native boolean beginChild(String strId); /* return ImGui::BeginChild(strId); */ - public static native boolean BeginChild(String str_id, float width, float height); /* - return ImGui::BeginChild(str_id, ImVec2(width, height)); + public static native boolean beginChild(String strId, float width, float height); /* + return ImGui::BeginChild(strId, ImVec2(width, height)); */ - public static native boolean BeginChild(String str_id, float width, float height, boolean border); /* - return ImGui::BeginChild(str_id, ImVec2(width, height), border); + public static native boolean beginChild(String strId, float width, float height, boolean border); /* + return ImGui::BeginChild(strId, ImVec2(width, height), border); */ - public static native boolean BeginChild(String str_id, float width, float height, boolean border, int imGuiWindowFlags); /* - return ImGui::BeginChild(str_id, ImVec2(width, height), border, imGuiWindowFlags); + public static native boolean beginChild(String strId, float width, float height, boolean border, int imGuiWindowFlags); /* + return ImGui::BeginChild(strId, ImVec2(width, height), border, imGuiWindowFlags); */ - public static native boolean BeginChild(int imGuiID); /* + public static native boolean beginChild(int imGuiID); /* return ImGui::BeginChild(imGuiID); */ - public static native boolean BeginChild(int imGuiID, float width, float height, boolean border); /* + public static native boolean beginChild(int imGuiID, float width, float height, boolean border); /* return ImGui::BeginChild(imGuiID, ImVec2(width, height), border); */ - public static native boolean BeginChild(int imGuiID, float width, float height, boolean border, int imGuiWindowFlags); /* + public static native boolean beginChild(int imGuiID, float width, float height, boolean border, int imGuiWindowFlags); /* return ImGui::BeginChild(imGuiID, ImVec2(width, height), border, imGuiWindowFlags); */ - public static native void EndChild(); /* + public static native void endChild(); /* ImGui::EndChild(); */ // Windows Utilities // - "current window" = the window we are appending into while inside a Begin()/End() block. "next window" = next window we will Begin() into. - public static native boolean IsWindowAppearing(); /* + public static native boolean isWindowAppearing(); /* return ImGui::IsWindowAppearing(); */ - public static native boolean IsWindowCollapsed(); /* + public static native boolean isWindowCollapsed(); /* return ImGui::IsWindowCollapsed(); */ /** * Is current window focused? or its root/child, depending on flags. see flags for options. */ - public static native boolean IsWindowFocused(); /* + public static native boolean isWindowFocused(); /* return ImGui::IsWindowFocused(); */ /** * Is current window focused? or its root/child, depending on flags. see flags for options. */ - public static native boolean IsWindowFocused(int imGuiFocusedFlags); /* + public static native boolean isWindowFocused(int imGuiFocusedFlags); /* return ImGui::IsWindowFocused(imGuiFocusedFlags); */ @@ -316,7 +316,7 @@ public final class ImGui { * NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, * you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! */ - public static native boolean IsWindowHovered(); /* + public static native boolean isWindowHovered(); /* return ImGui::IsWindowHovered(); */ @@ -325,42 +325,42 @@ public final class ImGui { * NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, * you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! */ - public static native boolean IsWindowHovered(int imGuiHoveredFlags); /* + public static native boolean isWindowHovered(int imGuiHoveredFlags); /* return ImGui::IsWindowHovered(imGuiHoveredFlags); */ /** * Get draw list associated to the current window, to append your own drawing primitives */ - public static ImDrawList GetWindowDrawList() { + public static ImDrawList getWindowDrawList() { return IM_DRAW_LIST_WINDOW; } /** * Get current window position in screen space (useful if you want to do your own drawing via the DrawList API) */ - public static native void GetWindowPos(ImVec2 dstImVec2); /* + public static native void getWindowPos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetWindowPos(), dstImVec2); */ /** * Get current window size */ - public static native void GetWindowSize(ImVec2 dstImVec2); /* + public static native void getWindowSize(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetWindowSize(), dstImVec2); */ /** * Get current window width (shortcut for GetWindowSize().x) */ - public static native float GetWindowWidth(); /* + public static native float getWindowWidth(); /* return ImGui::GetWindowWidth(); */ /** * Get current window height (shortcut for GetWindowSize().y) */ - public static native float GetWindowHeight(); /* + public static native float getWindowHeight(); /* return ImGui::GetWindowHeight(); */ @@ -369,42 +369,42 @@ public final class ImGui { /** * Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. */ - public static native void SetNextWindowPos(float x, float y); /* + public static native void setNextWindowPos(float x, float y); /* ImGui::SetNextWindowPos(ImVec2(x, y)); */ /** * Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. */ - public static native void SetNextWindowPos(float x, float y, int imGuiCond); /* + public static native void setNextWindowPos(float x, float y, int imGuiCond); /* ImGui::SetNextWindowPos(ImVec2(x, y), imGuiCond); */ /** * Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. */ - public static native void SetNextWindowPos(float x, float y, int imGuiCond, float pivotX, float pivotY); /* + public static native void setNextWindowPos(float x, float y, int imGuiCond, float pivotX, float pivotY); /* ImGui::SetNextWindowPos(ImVec2(x, y), imGuiCond, ImVec2(pivotX, pivotY)); */ /** * Set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() */ - public static native void SetNextWindowSize(float width, float height); /* + public static native void setNextWindowSize(float width, float height); /* ImGui::SetNextWindowSize(ImVec2(width, height)); */ /** * Set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() */ - public static native void SetNextWindowSize(float width, float height, int imGuiCond); /* + public static native void setNextWindowSize(float width, float height, int imGuiCond); /* ImGui::SetNextWindowSize(ImVec2(width, height), imGuiCond); */ /** * Set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. */ - public static native void SetNextWindowSizeConstraints(float minWidth, float minHeight, float maxWidth, float maxHeight); /* + public static native void setNextWindowSizeConstraints(float minWidth, float minHeight, float maxWidth, float maxHeight); /* ImGui::SetNextWindowSizeConstraints(ImVec2(minWidth, minHeight), ImVec2(maxWidth, maxHeight)); */ @@ -412,28 +412,28 @@ public final class ImGui { * Set next window content size (~ scrollable client area, which enforce the range of scrollbars). * Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() */ - public static native void SetNextWindowContentSize(float width, float height); /* + public static native void setNextWindowContentSize(float width, float height); /* ImGui::SetNextWindowContentSize(ImVec2(width, height)); */ /** * Set next window collapsed state. call before Begin() */ - public static native void SetNextWindowCollapsed(boolean collapsed); /* + public static native void setNextWindowCollapsed(boolean collapsed); /* ImGui::SetNextWindowCollapsed(collapsed); */ /** * Set next window collapsed state. call before Begin() */ - public static native void SetNextWindowCollapsed(boolean collapsed, int imGuiCond); /* + public static native void setNextWindowCollapsed(boolean collapsed, int imGuiCond); /* ImGui::SetNextWindowCollapsed(collapsed, imGuiCond); */ /** * Set next window to be focused / top-most. call before Begin() */ - public static native void SetNextWindowFocus(); /* + public static native void setNextWindowFocus(); /* ImGui::SetNextWindowFocus(); */ @@ -441,7 +441,7 @@ public final class ImGui { * Set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. * You may also use ImGuiWindowFlags_NoBackground. */ - public static native void SetNextWindowBgAlpha(float alpha); /* + public static native void setNextWindowBgAlpha(float alpha); /* ImGui::SetNextWindowBgAlpha(alpha); */ @@ -449,7 +449,7 @@ public final class ImGui { * (not recommended) set current window position - call within Begin()/End(). * Prefer using SetNextWindowPos(), as this may incur tearing and side-effects. */ - public static native void SetWindowPos(float x, float y); /* + public static native void setWindowPos(float x, float y); /* ImGui::SetWindowPos(ImVec2(x, y)); */ @@ -457,7 +457,7 @@ public final class ImGui { * (not recommended) set current window position - call within Begin()/End(). * Prefer using SetNextWindowPos(), as this may incur tearing and side-effects. */ - public static native void SetWindowPos(float x, float y, int imGuiCond); /* + public static native void setWindowPos(float x, float y, int imGuiCond); /* ImGui::SetWindowPos(ImVec2(x, y), imGuiCond); */ @@ -465,7 +465,7 @@ public final class ImGui { * (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0,0) to force an auto-fit. * Prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. */ - public static native void SetWindowSize(float width, float height); /* + public static native void setWindowSize(float width, float height); /* ImGui::SetWindowSize(ImVec2(width, height)); */ @@ -473,28 +473,28 @@ public final class ImGui { * (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0,0) to force an auto-fit. * Prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. */ - public static native void SetWindowSize(float width, float height, int imGuiCond); /* + public static native void setWindowSize(float width, float height, int imGuiCond); /* ImGui::SetWindowSize(ImVec2(width, height), imGuiCond); */ /** * (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). */ - public static native void SetWindowCollapsed(boolean collapsed); /* + public static native void setWindowCollapsed(boolean collapsed); /* ImGui::SetWindowCollapsed(collapsed); */ /** * (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). */ - public static native void SetWindowCollapsed(boolean collapsed, int imGuiCond); /* + public static native void setWindowCollapsed(boolean collapsed, int imGuiCond); /* ImGui::SetWindowCollapsed(collapsed, imGuiCond); */ /** * (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). */ - public static native void SetWindowFocus(); /* + public static native void setWindowFocus(); /* ImGui::SetWindowFocus(); */ @@ -502,56 +502,56 @@ public final class ImGui { * Set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. * This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). */ - public native void SetWindowFontScale(float scale); /* + public native void setWindowFontScale(float scale); /* ImGui::SetWindowFontScale(scale); */ /** * Set named window position. */ - public static native void SetWindowPos(String name, float x, float y); /* + public static native void setWindowPos(String name, float x, float y); /* ImGui::SetWindowPos(name, ImVec2(x, y)); */ /** * Set named window position. */ - public static native void SetWindowPos(String name, float x, float y, int imGuiCond); /* + public static native void setWindowPos(String name, float x, float y, int imGuiCond); /* ImGui::SetWindowPos(name, ImVec2(x, y), imGuiCond); */ /** * Set named window size. set axis to 0.0f to force an auto-fit on this axis. */ - public static native void SetWindowSize(String name, float x, float y); /* + public static native void setWindowSize(String name, float x, float y); /* ImGui::SetWindowSize(name, ImVec2(x, y)); */ /** * Set named window size. set axis to 0.0f to force an auto-fit on this axis. */ - public static native void SetWindowSize(String name, float x, float y, int imGuiCond); /* + public static native void setWindowSize(String name, float x, float y, int imGuiCond); /* ImGui::SetWindowSize(name, ImVec2(x, y), imGuiCond); */ /** * Set named window collapsed state */ - public static native void SetWindowCollapsed(String name, boolean collapsed); /* + public static native void setWindowCollapsed(String name, boolean collapsed); /* ImGui::SetWindowCollapsed(name, collapsed); */ /** * Set named window collapsed state */ - public static native void SetWindowCollapsed(String name, boolean collapsed, int imGuiCond); /* + public static native void setWindowCollapsed(String name, boolean collapsed, int imGuiCond); /* ImGui::SetWindowCollapsed(name, collapsed, imGuiCond); */ /** * Set named window to be focused / top-most. Use NULL to remove focus. */ - public static native void SetWindowFocus(String name); /*MANUAL + public static native void setWindowFocus(String name); /*MANUAL if (obj_name == NULL) ImGui::SetWindowFocus(NULL); else { @@ -567,32 +567,32 @@ public final class ImGui { /** * Current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates */ - public static native void GetContentRegionMax(ImVec2 dstImVec2); /* + public static native void getContentRegionMax(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetContentRegionMax(), dstImVec2); */ /** * == GetContentRegionMax() - GetCursorPos() */ - public static native void GetContentRegionAvail(ImVec2 dstImVec2); /* + public static native void getContentRegionAvail(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetContentRegionAvail(), dstImVec2); */ /** * Content boundaries min (roughly (0,0)-Scroll), in window coordinates */ - public static native float GetContentRegionAvailWidth(); /* + public static native float getContentRegionAvailWidth(); /* return ImGui::GetContentRegionAvailWidth(); */ /** * Content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates */ - public static native void GetWindowContentRegionMin(ImVec2 dstImVec2); /* + public static native void getWindowContentRegionMin(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetWindowContentRegionMin(), dstImVec2); */ - public static native void GetWindowContentRegionMax(ImVec2 dstImVec2); /* + public static native void getWindowContentRegionMax(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetWindowContentRegionMax(), dstImVec2); */ @@ -601,42 +601,42 @@ public final class ImGui { /** * Get scrolling amount [0..GetScrollMaxX()] */ - public static native float GetScrollX(); /* + public static native float getScrollX(); /* return ImGui::GetScrollX(); */ /** * Get scrolling amount [0..GetScrollMaxY()] */ - public static native float GetScrollY(); /* + public static native float getScrollY(); /* return ImGui::GetScrollY(); */ /** * Get maximum scrolling amount ~~ ContentSize.X - WindowSize.X */ - public static native float GetScrollMaxX(); /* + public static native float getScrollMaxX(); /* return ImGui::GetScrollMaxX(); */ /** * Get maximum scrolling amount ~~ ContentSize.Y - WindowSize.Y */ - public static native float GetScrollMaxY(); /* + public static native float getScrollMaxY(); /* return ImGui::GetScrollMaxY(); */ /** * Set scrolling amount [0..GetScrollMaxX()] */ - public static native void SetScrollX(float scrollX); /* + public static native void setScrollX(float scrollX); /* ImGui::SetScrollX(scrollX); */ /** * Set scrolling amount [0..GetScrollMaxY()] */ - public static native void SetScrollY(float scrollY); /* + public static native void setScrollY(float scrollY); /* ImGui::SetScrollY(scrollY); */ @@ -644,7 +644,7 @@ public final class ImGui { * Adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. * When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. */ - public static native void SetScrollHereX(); /* + public static native void setScrollHereX(); /* ImGui::SetScrollHereX(); */ @@ -652,7 +652,7 @@ public final class ImGui { * Adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. * When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. */ - public static native void SetScrollHereX(float centerXRatio); /* + public static native void setScrollHereX(float centerXRatio); /* ImGui::SetScrollHereX(centerXRatio); */ @@ -660,7 +660,7 @@ public final class ImGui { * Adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. * When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. */ - public static native void SetScrollHereY(); /* + public static native void setScrollHereY(); /* ImGui::SetScrollHereY(); */ @@ -668,35 +668,35 @@ public final class ImGui { * Adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. * When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. */ - public static native void SetScrollHereY(float centerYRatio); /* + public static native void setScrollHereY(float centerYRatio); /* ImGui::SetScrollHereY(centerYRatio); */ /** * Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. */ - public static native void SetScrollFromPosX(float localX); /* + public static native void setScrollFromPosX(float localX); /* ImGui::SetScrollFromPosX(localX); */ /** * Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. */ - public static native void SetScrollFromPosX(float localX, float centerXRatio); /* + public static native void setScrollFromPosX(float localX, float centerXRatio); /* ImGui::SetScrollFromPosX(localX, centerXRatio); */ /** * Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. */ - public static native void SetScrollFromPosY(float localY); /* + public static native void setScrollFromPosY(float localY); /* ImGui::SetScrollFromPosY(localY); */ /** * Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. */ - public static native void SetScrollFromPosY(float localY, float centerYRatio); /* + public static native void setScrollFromPosY(float localY, float centerYRatio); /* ImGui::SetScrollFromPosY(localY, centerYRatio); */ @@ -704,39 +704,39 @@ public final class ImGui { // TODO void PushFont(ImFont* font); - public static native void PopFont(); /* + public static native void popFont(); /* ImGui::PopFont(); */ - public static native void PushStyleColor(int imGuiCol, long col); /* + public static native void pushStyleColor(int imGuiCol, long col); /* ImGui::PushStyleColor(imGuiCol, col); */ - public static native void PushStyleColor(int imGuiCol, float r, float g, float b, float a); /* + public static native void pushStyleColor(int imGuiCol, float r, float g, float b, float a); /* ImGui::PushStyleColor(imGuiCol, ImVec4(r, g, b, a)); */ - public static native void PopStyleColor(); /* + public static native void popStyleColor(); /* ImGui::PopStyleColor(); */ - public static native void PopStyleColor(int count); /* + public static native void popStyleColor(int count); /* ImGui::PopStyleColor(count); */ - public static native void PushStyleVar(int imGuiStyleVar, float val); /* + public static native void pushStyleVar(int imGuiStyleVar, float val); /* ImGui::PushStyleVar(imGuiStyleVar, val); */ - public static native void PushStyleVar(int imGuiStyleVar, float val_x, float val_y); /* - ImGui::PushStyleVar(imGuiStyleVar, ImVec2(val_x, val_y)); + public static native void pushStyleVar(int imGuiStyleVar, float valX, float valY); /* + ImGui::PushStyleVar(imGuiStyleVar, ImVec2(valX, valY)); */ - public static native void PopStyleVar(); /* + public static native void popStyleVar(); /* ImGui::PopStyleVar(); */ - public static native void PopStyleVar(int count); /* + public static native void popStyleVar(int count); /* ImGui::PopStyleVar(count); */ @@ -744,7 +744,7 @@ public final class ImGui { * Retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), * otherwise use GetColorU32() to get style color with style alpha baked in. */ - public static native void GetStyleColorVec4(int imGuiStyleVar, ImVec4 dstImVec4); /* + public static native void getStyleColorVec4(int imGuiStyleVar, ImVec4 dstImVec4); /* Jni::ImVec4Cpy(env, ImGui::GetStyleColorVec4(imGuiStyleVar), dstImVec4); */ @@ -753,42 +753,42 @@ public final class ImGui { /** * Get current font size (= height in pixels) of current font with current scale applied */ - public static native int GetFontSize(); /* + public static native int getFontSize(); /* return ImGui::GetFontSize(); */ /** * Get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API */ - public static native void GetFontTexUvWhitePixel(ImVec2 dstImVec2); /* + public static native void getFontTexUvWhitePixel(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetFontTexUvWhitePixel(), dstImVec2); */ /** * Retrieve given style color with style alpha applied and optional extra alpha multiplier */ - public static native long GetColorU32(int imGuiCol); /* + public static native long getColorU32(int imGuiCol); /* return ImGui::GetColorU32((ImGuiCol)imGuiCol); */ /** * Retrieve given style color with style alpha applied and optional extra alpha multiplier */ - public static native long GetColorU32(int imGuiCol, float alpha_mul); /* - return ImGui::GetColorU32(imGuiCol, alpha_mul); + public static native long getColorU32(int imGuiCol, float alphaMul); /* + return ImGui::GetColorU32(imGuiCol, alphaMul); */ /** * Retrieve given color with style alpha applied */ - public static native long GetColorU32(float col_r, float col_g, float col_b, float col_a); /* - return ImGui::GetColorU32(ImVec4(col_r, col_g, col_b, col_a)); + public static native long getColorU32(float r, float g, float b, float a); /* + return ImGui::GetColorU32(ImVec4(r, g, b, a)); */ /** * Retrieve given color with style alpha applied */ - public static native long GetColorU32(long col); /* + public static native long getColorU32(long col); /* return ImGui::GetColorU32((ImU32)col); */ @@ -798,11 +798,11 @@ public final class ImGui { * Set width of items for common large "item+label" widgets. {@code > 0.0f}: width in pixels, * {@code <0.0f} align xx pixels to the right of window (so -1.0f always align width to the right side). 0.0f = default to ~2/3 of windows width, */ - public static native void PushItemWidth(float item_width); /* - ImGui::PushItemWidth(item_width); + public static native void pushItemWidth(float itemWidth); /* + ImGui::PushItemWidth(itemWidth); */ - public static native void PopItemWidth(); /* + public static native void popItemWidth(); /* ImGui::PopItemWidth(); */ @@ -810,45 +810,45 @@ public final class ImGui { * Set width of the _next_ common large "item+label" widget. {@code > 0.0f}: width in pixels, * {@code <0.0f} align xx pixels to the right of window (so -1.0f always align width to the right side) */ - public static native void SetNextItemWidth(float item_width); /* - ImGui::SetNextItemWidth(item_width); + public static native void setNextItemWidth(float itemWidth); /* + ImGui::SetNextItemWidth(itemWidth); */ /** * Width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. */ - public static native float CalcItemWidth(); /* + public static native float calcItemWidth(); /* return ImGui::CalcItemWidth(); */ /** - * Word-wrapping for Text*() commands. {@code < 0.0f}: no wrapping; 0.0f: wrap to end of window (or column); {@code > 0.0f}: wrap at 'wrap_pos_x' + * Word-wrapping for Text*() commands. {@code < 0.0f}: no wrapping; 0.0f: wrap to end of window (or column); {@code > 0.0f}: wrap at 'wrap_posX' * position in window local space */ - public static native void PushTextWrapPos(); /* + public static native void pushTextWrapPos(); /* ImGui::PushTextWrapPos(); */ /** - * Word-wrapping for Text*() commands. {@code < 0.0f}: no wrapping; 0.0f: wrap to end of window (or column); {@code > 0.0f}: wrap at 'wrap_pos_x' + * Word-wrapping for Text*() commands. {@code < 0.0f}: no wrapping; 0.0f: wrap to end of window (or column); {@code > 0.0f}: wrap at 'wrap_posX' * position in window local space */ - public static native void PushTextWrapPos(float wrap_local_pos_x); /* - ImGui::PushTextWrapPos(wrap_local_pos_x); + public static native void pushTextWrapPos(float wrapLocalPosX); /* + ImGui::PushTextWrapPos(wrapLocalPosX); */ - public static native void PopTextWrapPos(); /* + public static native void popTextWrapPos(); /* ImGui::PopTextWrapPos(); */ /** * Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets */ - public static native void PushAllowKeyboardFocus(boolean allow_keyboard_focus); /* - ImGui::PushAllowKeyboardFocus(allow_keyboard_focus); + public static native void pushAllowKeyboardFocus(boolean allowKeyboardFocus); /* + ImGui::PushAllowKeyboardFocus(allowKeyboardFocus); */ - public static native void PopAllowKeyboardFocus(); /* + public static native void popAllowKeyboardFocus(); /* ImGui::PopAllowKeyboardFocus(); */ @@ -856,11 +856,11 @@ public final class ImGui { * In 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). * Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. */ - public static native void PushButtonRepeat(boolean repeat); /* + public static native void pushButtonRepeat(boolean repeat); /* ImGui::PushButtonRepeat(repeat); */ - public static native void PopButtonRepeat(); /* + public static native void popButtonRepeat(); /* ImGui::PopButtonRepeat(); */ @@ -872,91 +872,91 @@ public final class ImGui { /** * Separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. */ - public static native void Separator(); /* + public static native void separator(); /* ImGui::Separator(); */ /** * Call between widgets or groups to layout them horizontally. X position given in window coordinates. */ - public static native void SameLine(); /* + public static native void sameLine(); /* ImGui::SameLine(); */ /** * Call between widgets or groups to layout them horizontally. X position given in window coordinates. */ - public static native void SameLine(float offsetFromStartX); /* + public static native void sameLine(float offsetFromStartX); /* ImGui::SameLine(offsetFromStartX); */ /** * Call between widgets or groups to layout them horizontally. X position given in window coordinates. */ - public static native void SameLine(float offsetFromStartX, float spacing); /* + public static native void sameLine(float offsetFromStartX, float spacing); /* ImGui::SameLine(offsetFromStartX, spacing); */ /** * Undo a SameLine() or force a new line when in an horizontal-layout context. */ - public static native void NewLine(); /* + public static native void newLine(); /* ImGui::NewLine(); */ /** * Add vertical spacing. */ - public static native void Spacing(); /* + public static native void spacing(); /* ImGui::Spacing(); */ /** * Add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. */ - public static native void Dummy(float width, float height); /* + public static native void dummy(float width, float height); /* ImGui::Dummy(ImVec2(width, height)); */ /** * Move content position toward the right, by style.IndentSpacing or indent_w if != 0 */ - public static native void Indent(); /* + public static native void indent(); /* ImGui::Indent(); */ /** * Move content position toward the right, by style.IndentSpacing or indent_w if != 0 */ - public static native void Indent(float indentW); /* + public static native void indent(float indentW); /* ImGui::Indent(indentW); */ /** * Move content position back to the left, by style.IndentSpacing or indent_w if != 0 */ - public static native void Unindent(); /* + public static native void unindent(); /* ImGui::Unindent(); */ /** * Move content position back to the left, by style.IndentSpacing or indent_w if != 0 */ - public static native void Unindent(float indentW); /* + public static native void unindent(float indentW); /* ImGui::Unindent(indentW); */ /** * Lock horizontal starting position */ - public static native void BeginGroup(); /* + public static native void beginGroup(); /* ImGui::BeginGroup(); */ /** * Unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) */ - public static native void EndGroup(); /* + public static native void endGroup(); /* ImGui::EndGroup(); */ @@ -968,83 +968,83 @@ public final class ImGui { /** * Cursor position in window coordinates (relative to window position) */ - public static native void GetCursorPos(ImVec2 dstImVec2); /* + public static native void getCursorPos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetCursorPos(), dstImVec2); */ - public static native float GetCursorPosX(); /* + public static native float getCursorPosX(); /* return ImGui::GetCursorPosX(); */ - public static native float GetCursorPosY(); /* + public static native float getCursorPosY(); /* return ImGui::GetCursorPosY(); */ - public static native void SetCursorPos(float x, float y); /* + public static native void setCursorPos(float x, float y); /* ImGui::SetCursorPos(ImVec2(x, y)); */ - public static native void SetCursorPosX(float x); /* + public static native void setCursorPosX(float x); /* ImGui::SetCursorPosX(x); */ - public static native void SetCursorPosY(float y); /* + public static native void setCursorPosY(float y); /* ImGui::SetCursorPosY(y); */ /** * Initial cursor position in window coordinates */ - public static native void GetCursorStartPos(ImVec2 dstImVec2); /* + public static native void getCursorStartPos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetCursorStartPos(), dstImVec2); */ /** * Cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) */ - public static native void GetCursorScreenPos(ImVec2 dstImVec2); /* + public static native void getCursorScreenPos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetCursorScreenPos(), dstImVec2); */ /** * Cursor position in absolute screen coordinates [0..io.DisplaySize] */ - public static native void SetCursorScreenPos(float x, float y); /* + public static native void setCursorScreenPos(float x, float y); /* ImGui::SetCursorScreenPos(ImVec2(x, y)); */ /** * Vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) */ - public static native void AlignTextToFramePadding(); /* + public static native void alignTextToFramePadding(); /* ImGui::AlignTextToFramePadding(); */ /** * ~ FontSize */ - public static native float GetTextLineHeight(); /* + public static native float getTextLineHeight(); /* return ImGui::GetTextLineHeight(); */ /** * ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) */ - public static native float GetTextLineHeightWithSpacing(); /* + public static native float getTextLineHeightWithSpacing(); /* return ImGui::GetTextLineHeightWithSpacing(); */ /** * ~ FontSize + style.FramePadding.y * 2 */ - public static native float GetFrameHeight(); /* + public static native float getFrameHeight(); /* return ImGui::GetFrameHeight(); */ /** * ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) */ - public static native float GetFrameHeightWithSpacing(); /* + public static native float getFrameHeightWithSpacing(); /* return ImGui::GetFrameHeightWithSpacing(); */ @@ -1054,97 +1054,97 @@ public final class ImGui { // - The resulting ID are hashes of the entire stack. // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed and used as an ID, - // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + // whereas "strId" denote a string that is only used as an ID and not normally displayed. /** * Push string into the ID stack (will hash string). */ - public static native void PushID(String str_id); /* - ImGui::PushID(str_id); + public static native void pushID(String strId); /* + ImGui::PushID(strId); */ /** * Push string into the ID stack (will hash string). */ - public static native void PushID(String str_id_begin, String str_id_end); /* - ImGui::PushID(str_id_begin, str_id_end); + public static native void pushID(String strIdBegin, String strIdEnd); /* + ImGui::PushID(strIdBegin, strIdEnd); */ /** * Push pointer into the ID stack (will hash pointer). */ - public static native void PushID(long ptr_id); /* - ImGui::PushID((void*)ptr_id); + public static native void pushID(long ptrId); /* + ImGui::PushID((void*)ptrId); */ /** * Push integer into the ID stack (will hash integer). */ - public static native void PushID(int int_id); /* - ImGui::PushID(int_id); + public static native void pushID(int intId); /* + ImGui::PushID(intId); */ /** * Pop from the ID stack. */ - public static native void PopID(); /* + public static native void popID(); /* ImGui::PopID(); */ /** * Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself */ - public static native long GetID(String str_id); /* - return ImGui::GetID(str_id); + public static native long getID(String strId); /* + return ImGui::GetID(strId); */ - public static native long GetID(String str_id_begin, String str_id_end); /* - return ImGui::GetID(str_id_begin, str_id_end); + public static native long getID(String strIdBegin, String strIdEnd); /* + return ImGui::GetID(strIdBegin, strIdEnd); */ - public static native long GetID(long ptr_id); /* - return ImGui::GetID((void*)ptr_id); + public static native long getID(long ptrId); /* + return ImGui::GetID((void*)ptrId); */ // Widgets: Text /** * Raw text without formatting. Roughly equivalent to Text("%s", text) but: - * A) doesn't require null terminated string if 'text_end' is specified, + * A) doesn't require null terminated string if 'textEnd' is specified, * B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. */ - public static native void TextUnformatted(String text); /* + public static native void textUnformatted(String text); /* ImGui::TextUnformatted(text); */ /** * Raw text without formatting. Roughly equivalent to Text("%s", text) but: - * A) doesn't require null terminated string if 'text_end' is specified, + * A) doesn't require null terminated string if 'textEnd' is specified, * B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. */ - public static native void TextUnformatted(String text, String text_end); /* - ImGui::TextUnformatted(text, text_end); + public static native void textUnformatted(String text, String textEnd); /* + ImGui::TextUnformatted(text, textEnd); */ /** * Formatted text - * BINDING NOTICE: Since all text formatting could be done on Java side, this call is equal to {@link ImGui#TextUnformatted(String)}. + * BINDING NOTICE: Since all text formatting could be done on Java side, this call is equal to {@link ImGui#textUnformatted(String)}. */ - public static native void Text(String text); /* + public static native void text(String text); /* ImGui::TextUnformatted(text); */ /** * Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); */ - public static native void TextColored(float r, float g, float b, float a, String text); /* + public static native void textColored(float r, float g, float b, float a, String text); /* ImGui::TextColored(ImVec4(r, g, b, a), text); */ /** * Shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); */ - public static native void TextDisabled(String text); /* + public static native void textDisabled(String text); /* ImGui::TextDisabled(text); */ @@ -1153,21 +1153,21 @@ public final class ImGui { * Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, * yoy may need to set a size using SetNextWindowSize(). */ - public static native void TextWrapped(String text); /* + public static native void textWrapped(String text); /* ImGui::TextWrapped(text); */ /** * Display text+label aligned the same way as value+label widgets */ - public static native void LabelText(String label, String text); /* + public static native void labelText(String label, String text); /* ImGui::LabelText(label, text); */ /** * Shortcut for Bullet()+Text() */ - public static native void BulletText(String text); /* + public static native void bulletText(String text); /* ImGui::BulletText(text); */ @@ -1178,72 +1178,72 @@ public final class ImGui { /** * Button */ - public static native boolean Button(String label); /* + public static native boolean button(String label); /* return ImGui::Button(label); */ /** * Button */ - public static native boolean Button(String label, float width, float height); /* + public static native boolean button(String label, float width, float height); /* return ImGui::Button(label, ImVec2(width, height)); */ /** * Button with FramePadding=(0,0) to easily embed within text */ - public static native boolean SmallButton(String label); /* + public static native boolean smallButton(String label); /* return ImGui::SmallButton(label); */ /** * Button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) */ - public static native boolean InvisibleButton(String strId, float width, float height); /* + public static native boolean invisibleButton(String strId, float width, float height); /* return ImGui::InvisibleButton(strId, ImVec2(width, height)); */ /** * Square button with an arrow shape */ - public static native boolean ArrowButton(String strId, int dir); /* + public static native boolean arrowButton(String strId, int dir); /* return ImGui::ArrowButton(strId, dir); */ - public static native void Image(int textureID, float sizeX, float sizeY); /* + public static native void image(int textureID, float sizeX, float sizeY); /* ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY)); */ - public static native void Image(int textureID, float sizeX, float sizeY, float uv0_x, float uv0_y, float uv1_x, float uv1_y); /* - ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0_x, uv0_y), ImVec2(uv1_x, uv1_y)); + public static native void image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y); /* + ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y)); */ - public static native void Image(int textureID, float sizeX, float sizeY, float uv0_x, float uv0_y, float uv1_x, float uv1_y, float tint_color_r, float tint_color_g, float tint_color_b, float tint_color_a, float border_col_r, float border_col_g, float border_col_b, float border_col_a); /* - ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0_x, uv0_y), ImVec2(uv1_x, uv1_y), ImVec4(tint_color_r, tint_color_g, tint_color_b, tint_color_a), ImVec4(border_col_r, border_col_g, border_col_b, border_col_a)); + public static native void image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, float tintColorR, float tintColorG, float tintColorB, float tintColorA, float borderR, float borderG, float borderB, float borderA); /* + ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), ImVec4(tintColorR, tintColorG, tintColorB, tintColorA), ImVec4(borderR, borderG, borderB, borderA)); */ /** - * {@code <0} frame_padding uses default frame padding settings. 0 for no padding + * {@code <0} framePadding uses default frame padding settings. 0 for no padding */ - public static native boolean ImageButton(int textureID, float sizeX, float sizeY); /* + public static native boolean imageButton(int textureID, float sizeX, float sizeY); /* return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY)); */ /** - * {@code <0} frame_padding uses default frame padding settings. 0 for no padding + * {@code <0} framePadding uses default frame padding settings. 0 for no padding */ - public static native boolean ImageButton(int textureID, float sizeX, float sizeY, float uv0_x, float uv0_y, float uv1_x, float uv1_y, int frame_padding); /* - return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0_x, uv0_y), ImVec2(uv1_x, uv1_y), frame_padding); + public static native boolean imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding); /* + return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding); */ /** - * {@code <0} frame_padding uses default frame padding settings. 0 for no padding + * {@code <0} framePadding uses default frame padding settings. 0 for no padding */ - public static native boolean ImageButton(int textureID, float sizeX, float sizeY, float uv0_x, float uv0_y, float uv1_x, float uv1_y, int frame_padding, float bg_color_r, float bg_color_g, float bg_color_b, float bg_color_a, float tint_col_r, float tint_col_g, float tint_col_b, float tint_col_a); /* - return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0_x, uv0_y), ImVec2(uv1_x, uv1_y), frame_padding, ImVec4(bg_color_r, bg_color_g, bg_color_b, bg_color_a), ImVec4(tint_col_r, tint_col_g, tint_col_b, tint_col_a)); + public static native boolean imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding, float bgColorR, float bgColorG, float bgColorB, float bgColorA, float tintR, float tintG, float tintB, float tintA); /* + return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding, ImVec4(bgColorR, bgColorG, bgColorB, bgColorA), ImVec4(tintR, tintG, tintB, tintA)); */ - public static boolean Checkbox(String label, ImBool active) { + public static boolean checkbox(String label, ImBool active) { return nCheckbox(label, active.data); } @@ -1251,7 +1251,7 @@ public final class ImGui { return ImGui::Checkbox(label, &data[0]); */ - public static boolean CheckboxFlags(String label, ImInt v, int flagsValue) { + public static boolean checkboxFlags(String label, ImInt v, int flagsValue) { return nCheckboxFlags(label, v.data, flagsValue); } @@ -1262,37 +1262,37 @@ public final class ImGui { /** * Use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } */ - public static native boolean RadioButton(String label, boolean active); /* + public static native boolean radioButton(String label, boolean active); /* return ImGui::RadioButton(label, active); */ /** * Shortcut to handle the above pattern when value is an integer */ - public static boolean RadioButton(String label, ImInt v, int v_button) { - return nRadioButton(label, v.data, v_button); + public static boolean radioButton(String label, ImInt v, int vButton) { + return nRadioButton(label, v.data, vButton); } - private static native boolean nRadioButton(String label, int[] data, int v_button); /* - return ImGui::RadioButton(label, &data[0], v_button); + private static native boolean nRadioButton(String label, int[] data, int vButton); /* + return ImGui::RadioButton(label, &data[0], vButton); */ - public static native void ProgressBar(float fraction); /* + public static native void progressBar(float fraction); /* ImGui::ProgressBar(fraction); */ - public static native void ProgressBar(float fraction, float size_arg_x, float size_arg_y); /* - ImGui::ProgressBar(fraction, ImVec2(size_arg_x, size_arg_y)); + public static native void progressBar(float fraction, float sizeArgX, float sizeArgY); /* + ImGui::ProgressBar(fraction, ImVec2(sizeArgX, sizeArgY)); */ - public static native void ProgressBar(float fraction, float size_arg_x, float size_arg_y, String overlay); /* - ImGui::ProgressBar(fraction, ImVec2(size_arg_x, size_arg_y), overlay); + public static native void progressBar(float fraction, float sizeArgX, float sizeArgY, String overlay); /* + ImGui::ProgressBar(fraction, ImVec2(sizeArgX, sizeArgY), overlay); */ /** * Draw a small circle and keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses */ - public static native void Bullet(); /* + public static native void bullet(); /* ImGui::Bullet(); */ @@ -1300,659 +1300,659 @@ public final class ImGui { // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. - public static native boolean BeginCombo(String label, String preview_value); /* - return ImGui::BeginCombo(label, preview_value); + public static native boolean beginCombo(String label, String previewValue); /* + return ImGui::BeginCombo(label, previewValue); */ - public static native boolean BeginCombo(String label, String preview_value, int imGuiComboFlags); /* - return ImGui::BeginCombo(label, preview_value, imGuiComboFlags); + public static native boolean beginCombo(String label, String previewValue, int imGuiComboFlags); /* + return ImGui::BeginCombo(label, previewValue, imGuiComboFlags); */ /** * Only call EndCombo() if BeginCombo() returns true! */ - public static native void EndCombo(); /* + public static native void endCombo(); /* ImGui::EndCombo(); */ - public static boolean Combo(String label, ImInt current_item, String[] items, int items_count) { - return nCombo(label, current_item.data, items, items_count, -1); + public static boolean combo(String label, ImInt currentItem, String[] items, int itemsCount) { + return nCombo(label, currentItem.data, items, itemsCount, -1); } - public static boolean Combo(String label, ImInt current_item, String[] items, int items_count, int popup_max_height_in_items) { - return nCombo(label, current_item.data, items, items_count, popup_max_height_in_items); + public static boolean combo(String label, ImInt currentItem, String[] items, int itemsCount, int popupMaxHeightInItems) { + return nCombo(label, currentItem.data, items, itemsCount, popupMaxHeightInItems); } - private static native boolean nCombo(String label, int[] current_item, String[] items, int items_count, int popup_max_height_in_items); /* - const char* listbox_items[items_count]; - for(int i = 0; i < items_count; i++) { + private static native boolean nCombo(String label, int[] currentItem, String[] items, int itemsCount, int popupMaxHeightInItems); /* + const char* listbox_items[itemsCount]; + for(int i = 0; i < itemsCount; i++) { jstring string = (jstring)env->GetObjectArrayElement(items, i); const char* rawString = env->GetStringUTFChars(string, 0); listbox_items[i] = rawString; } - return ImGui::Combo(label, ¤t_item[0], listbox_items, items_count, popup_max_height_in_items); + return ImGui::Combo(label, ¤tItem[0], listbox_items, itemsCount, popupMaxHeightInItems); */ /** * Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" */ - public static boolean Combo(String label, ImInt current_item, String items_separated_by_zeros) { - return nCombo(label, current_item.data, items_separated_by_zeros, -1); + public static boolean combo(String label, ImInt currentItem, String itemsSeparatedByZeros) { + return nCombo(label, currentItem.data, itemsSeparatedByZeros, -1); } - public static boolean Combo(String label, ImInt current_item, String items_separated_by_zeros, int popup_max_height_in_items) { - return nCombo(label, current_item.data, items_separated_by_zeros, popup_max_height_in_items); + public static boolean combo(String label, ImInt currentItem, String itemsSeparatedByZeros, int popupMaxHeightInItems) { + return nCombo(label, currentItem.data, itemsSeparatedByZeros, popupMaxHeightInItems); } - private static native boolean nCombo(String label, int[] current_item, String items_separated_by_zeros, int popup_max_height_in_items); /* - return ImGui::Combo(label, ¤t_item[0], items_separated_by_zeros, popup_max_height_in_items); + private static native boolean nCombo(String label, int[] currentItem, String itemsSeparatedByZeros, int popupMaxHeightInItems); /* + return ImGui::Combo(label, ¤tItem[0], itemsSeparatedByZeros, popupMaxHeightInItems); */ // Widgets: Drags // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds. // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. - // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). - // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits. - // - Use v_min > v_max to lock edits. + // - Speed are per-pixel of mouse movement (vSpeed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(vSpeed, minimum_step_at_given_precision). + // - Use vMin < vMax to clamp edits to given limits. Note that CTRL+Click manual input can override those limits. + // - Use vMin > vMax to lock edits. - public static native boolean DragFloat(String label, float[] v); /* + public static native boolean dragFloat(String label, float[] v); /* return ImGui::DragFloat(label, &v[0]); */ - public static native boolean DragFloat(String label, float[] v, float v_speed); /* - return ImGui::DragFloat(label, &v[0], v_speed); + public static native boolean dragFloat(String label, float[] v, float vSpeed); /* + return ImGui::DragFloat(label, &v[0], vSpeed); */ /** - * If {@code v_min >= v_max} we have no bound + * If {@code vMin >= vMax} we have no bound */ - public static native boolean DragFloat(String label, float[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragFloat(label, &v[0], v_speed, v_min, v_max); + public static native boolean dragFloat(String label, float[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax); */ /** - * If {@code v_min >= v_max} we have no bound + * If {@code vMin >= vMax} we have no bound */ - public static native boolean DragFloat(String label, float[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragFloat(label, &v[0], v_speed, v_min, v_max, format); + public static native boolean dragFloat(String label, float[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax, format); */ /** - * If {@code v_min >= v_max} we have no bound + * If {@code vMin >= vMax} we have no bound */ - public static native boolean DragFloat(String label, float[] v, float v_speed, float v_min, float v_max, String format, float power); /* - return ImGui::DragFloat(label, &v[0], v_speed, v_min, v_max, format, power); + public static native boolean dragFloat(String label, float[] v, float vSpeed, float vMin, float vMax, String format, float power); /* + return ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax, format, power); */ - public static native boolean DragFloat2(String label, float[] v); /* + public static native boolean dragFloat2(String label, float[] v); /* return ImGui::DragFloat2(label, v); */ - public static native boolean DragFloat2(String label, float[] v, float v_speed); /* - return ImGui::DragFloat2(label, v, v_speed); + public static native boolean dragFloat2(String label, float[] v, float vSpeed); /* + return ImGui::DragFloat2(label, v, vSpeed); */ - public static native boolean DragFloat2(String label, float[] v, float v_speed, float v_min); /* - return ImGui::DragFloat2(label, v, v_speed, v_min); + public static native boolean dragFloat2(String label, float[] v, float vSpeed, float vMin); /* + return ImGui::DragFloat2(label, v, vSpeed, vMin); */ - public static native boolean DragFloat2(String label, float[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragFloat2(label, v, v_speed, v_min, v_max); + public static native boolean dragFloat2(String label, float[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragFloat2(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragFloat2(String label, float[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragFloat2(label, v, v_speed, v_min, v_max, format); + public static native boolean dragFloat2(String label, float[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragFloat2(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragFloat2(String label, float[] v, float v_speed, float v_min, float v_max, String format, float power); /* - return ImGui::DragFloat2(label, v, v_speed, v_min, v_max, format, power); + public static native boolean dragFloat2(String label, float[] v, float vSpeed, float vMin, float vMax, String format, float power); /* + return ImGui::DragFloat2(label, v, vSpeed, vMin, vMax, format, power); */ - public static native boolean DragFloat3(String label, float[] v); /* + public static native boolean dragFloat3(String label, float[] v); /* return ImGui::DragFloat3(label, v); */ - public static native boolean DragFloat3(String label, float[] v, float v_speed); /* - return ImGui::DragFloat3(label, v, v_speed); + public static native boolean dragFloat3(String label, float[] v, float vSpeed); /* + return ImGui::DragFloat3(label, v, vSpeed); */ - public static native boolean DragFloat3(String label, float[] v, float v_speed, float v_min); /* - return ImGui::DragFloat3(label, v, v_speed, v_min); + public static native boolean dragFloat3(String label, float[] v, float vSpeed, float vMin); /* + return ImGui::DragFloat3(label, v, vSpeed, vMin); */ - public static native boolean DragFloat3(String label, float[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragFloat3(label, v, v_speed, v_min, v_max); + public static native boolean dragFloat3(String label, float[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragFloat3(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragFloat3(String label, float[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragFloat3(label, v, v_speed, v_min, v_max, format); + public static native boolean dragFloat3(String label, float[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragFloat3(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragFloat3(String label, float[] v, float v_speed, float v_min, float v_max, String format, float power); /* - return ImGui::DragFloat3(label, v, v_speed, v_min, v_max, format, power); + public static native boolean dragFloat3(String label, float[] v, float vSpeed, float vMin, float vMax, String format, float power); /* + return ImGui::DragFloat3(label, v, vSpeed, vMin, vMax, format, power); */ - public static native boolean DragFloat4(String label, float[] v); /* + public static native boolean dragFloat4(String label, float[] v); /* return ImGui::DragFloat4(label, v); */ - public static native boolean DragFloat4(String label, float[] v, float v_speed); /* - return ImGui::DragFloat4(label, v, v_speed); + public static native boolean dragFloat4(String label, float[] v, float vSpeed); /* + return ImGui::DragFloat4(label, v, vSpeed); */ - public static native boolean DragFloat4(String label, float[] v, float v_speed, float v_min); /* - return ImGui::DragFloat4(label, v, v_speed, v_min); + public static native boolean dragFloat4(String label, float[] v, float vSpeed, float vMin); /* + return ImGui::DragFloat4(label, v, vSpeed, vMin); */ - public static native boolean DragFloat4(String label, float[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragFloat4(label, v, v_speed, v_min, v_max); + public static native boolean dragFloat4(String label, float[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragFloat4(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragFloat4(String label, float[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragFloat4(label, v, v_speed, v_min, v_max, format); + public static native boolean dragFloat4(String label, float[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragFloat4(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragFloat4(String label, float[] v, float v_speed, float v_min, float v_max, String format, float power); /* - return ImGui::DragFloat4(label, v, v_speed, v_min, v_max, format, power); + public static native boolean dragFloat4(String label, float[] v, float vSpeed, float vMin, float vMax, String format, float power); /* + return ImGui::DragFloat4(label, v, vSpeed, vMin, vMax, format, power); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0]); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0]); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed, float v_min); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed, float v_min, float v_max); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max, format); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed, float v_min, float v_max, String format, String format_max); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max, format, format_max); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, String format, String formatMax); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax); */ - public static native boolean DragFloatRange2(String label, float[] v_current_min, float[] v_current_max, float v_speed, float v_min, float v_max, String format, String format_max, float power); /* - return ImGui::DragFloatRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max, format, format_max, power); + public static native boolean dragFloatRange2(String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, String format, String formatMax, float power); /* + return ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax, power); */ - public static native boolean DragInt(String label, int[] v); /* + public static native boolean dragInt(String label, int[] v); /* return ImGui::DragInt(label, &v[0]); */ - public static native boolean DragInt(String label, int[] v, float v_speed); /* - return ImGui::DragInt(label, &v[0], v_speed); + public static native boolean dragInt(String label, int[] v, float vSpeed); /* + return ImGui::DragInt(label, &v[0], vSpeed); */ - public static native boolean DragInt(String label, int[] v, float v_speed, float v_min); /* - return ImGui::DragInt(label, &v[0], v_speed, v_min); + public static native boolean dragInt(String label, int[] v, float vSpeed, float vMin); /* + return ImGui::DragInt(label, &v[0], vSpeed, vMin); */ /** - * If {@code v_min >= v_max} we have no bound + * If {@code vMin >= vMax} we have no bound */ - public static native boolean DragInt(String label, int[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragInt(label, &v[0], v_speed, v_min, v_max); + public static native boolean dragInt(String label, int[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax); */ /** - * If {@code v_min >= v_max} we have no bound + * If {@code vMin >= vMax} we have no bound */ - public static native boolean DragInt(String label, int[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragInt(label, &v[0], v_speed, v_min, v_max, format); + public static native boolean dragInt(String label, int[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax, format); */ - public static native boolean DragInt2(String label, int[] v); /* + public static native boolean dragInt2(String label, int[] v); /* return ImGui::DragInt2(label, v); */ - public static native boolean DragInt2(String label, int[] v, float v_speed); /* - return ImGui::DragInt2(label, v, v_speed); + public static native boolean dragInt2(String label, int[] v, float vSpeed); /* + return ImGui::DragInt2(label, v, vSpeed); */ - public static native boolean DragInt2(String label, int[] v, float v_speed, float v_min); /* - return ImGui::DragInt2(label, v, v_speed, v_min); + public static native boolean dragInt2(String label, int[] v, float vSpeed, float vMin); /* + return ImGui::DragInt2(label, v, vSpeed, vMin); */ - public static native boolean DragInt2(String label, int[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragInt2(label, v, v_speed, v_min, v_max); + public static native boolean dragInt2(String label, int[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragInt2(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragInt2(String label, int[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragInt2(label, v, v_speed, v_min, v_max, format); + public static native boolean dragInt2(String label, int[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragInt2(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragInt3(String label, int[] v); /* + public static native boolean dragInt3(String label, int[] v); /* return ImGui::DragInt2(label, v); */ - public static native boolean DragInt3(String label, int[] v, float v_speed); /* - return ImGui::DragInt2(label, v, v_speed); + public static native boolean dragInt3(String label, int[] v, float vSpeed); /* + return ImGui::DragInt2(label, v, vSpeed); */ - public static native boolean DragInt3(String label, int[] v, float v_speed, float v_min); /* - return ImGui::DragInt2(label, v, v_speed, v_min); + public static native boolean dragInt3(String label, int[] v, float vSpeed, float vMin); /* + return ImGui::DragInt2(label, v, vSpeed, vMin); */ - public static native boolean DragInt3(String label, int[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragInt2(label, v, v_speed, v_min, v_max); + public static native boolean dragInt3(String label, int[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragInt2(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragInt3(String label, int[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragInt2(label, v, v_speed, v_min, v_max, format); + public static native boolean dragInt3(String label, int[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragInt2(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragInt4(String label, int[] v); /* + public static native boolean dragInt4(String label, int[] v); /* return ImGui::DragInt4(label, v); */ - public static native boolean DragInt4(String label, int[] v, float v_speed); /* - return ImGui::DragInt4(label, v, v_speed); + public static native boolean dragInt4(String label, int[] v, float vSpeed); /* + return ImGui::DragInt4(label, v, vSpeed); */ - public static native boolean DragInt4(String label, int[] v, float v_speed, float v_min); /* - return ImGui::DragInt4(label, v, v_speed, v_min); + public static native boolean dragInt4(String label, int[] v, float vSpeed, float vMin); /* + return ImGui::DragInt4(label, v, vSpeed, vMin); */ - public static native boolean DragInt4(String label, int[] v, float v_speed, float v_min, float v_max); /* - return ImGui::DragInt4(label, v, v_speed, v_min, v_max); + public static native boolean dragInt4(String label, int[] v, float vSpeed, float vMin, float vMax); /* + return ImGui::DragInt4(label, v, vSpeed, vMin, vMax); */ - public static native boolean DragInt4(String label, int[] v, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragInt4(label, v, v_speed, v_min, v_max, format); + public static native boolean dragInt4(String label, int[] v, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragInt4(label, v, vSpeed, vMin, vMax, format); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0]); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0]); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max, float v_speed); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0], v_speed); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max, float v_speed, float v_min); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max, float v_speed, float v_min, float v_max); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max, float v_speed, float v_min, float v_max, String format); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max, format); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, String format); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format); */ - public static native boolean DragIntRange2(String label, int[] v_current_min, int[] v_current_max, float v_speed, float v_min, float v_max, String format, String format_max); /* - return ImGui::DragIntRange2(label, &v_current_min[0], &v_current_max[0], v_speed, v_min, v_max, format, format_max); + public static native boolean dragIntRange2(String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, String format, String formatMax); /* + return ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax); */ - public static boolean DragScalar(String label, int data_type, ImInt p_data, float v_speed) { - return nDragScalar(label, data_type, p_data.data, v_speed); + public static boolean dragScalar(String label, int dataType, ImInt pData, float vSpeed) { + return nDragScalar(label, dataType, pData.data, vSpeed); } - private static native boolean nDragScalar(String label, int data_type, int[] p_data, float v_speed); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed); + private static native boolean nDragScalar(String label, int dataType, int[] pData, float vSpeed); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed); */ - public static boolean DragScalar(String label, int data_type, ImInt p_data, float v_speed, int p_min) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min); + public static boolean dragScalar(String label, int dataType, ImInt pData, float vSpeed, int pMin) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin); } - private static native boolean nDragScalar(String label, int data_type, int[] p_data, float v_speed, int p_min); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min); + private static native boolean nDragScalar(String label, int dataType, int[] pData, float vSpeed, int pMin); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin); */ - public static boolean DragScalar(String label, int data_type, ImInt p_data, float v_speed, int p_min, int p_max) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max); + public static boolean dragScalar(String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax); } - private static native boolean nDragScalar(String label, int data_type, int[] p_data, float v_speed, int p_min, int p_max); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max); + private static native boolean nDragScalar(String label, int dataType, int[] pData, float vSpeed, int pMin, int pMax); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax); */ - public static boolean DragScalar(String label, int data_type, ImInt p_data, float v_speed, int p_min, int p_max, String format) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalar(String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, String format) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalar(String label, int data_type, ImInt p_data, float v_speed, int p_min, int p_max, String format, float power) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, power); + public static boolean dragScalar(String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, String format, float power) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalar(String label, int data_type, int[] p_data, float v_speed, int p_min, int p_max, String format, float power); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalar(String label, int dataType, int[] pData, float vSpeed, int pMin, int pMax, String format, float power); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalar(String label, int data_type, ImFloat p_data, float v_speed) { - return nDragScalar(label, data_type, p_data.data, v_speed); + public static boolean dragScalar(String label, int dataType, ImFloat pData, float vSpeed) { + return nDragScalar(label, dataType, pData.data, vSpeed); } - private static native boolean nDragScalar(String label, int data_type, float[] p_data, float v_speed); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed); + private static native boolean nDragScalar(String label, int dataType, float[] pData, float vSpeed); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed); */ - public static boolean DragScalar(String label, int data_type, ImFloat p_data, float v_speed, float p_min) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min); + public static boolean dragScalar(String label, int dataType, ImFloat pData, float vSpeed, float pMin) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin); } - private static native boolean nDragScalar(String label, int data_type, float[] p_data, float v_speed, float p_min); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min); + private static native boolean nDragScalar(String label, int dataType, float[] pData, float vSpeed, float pMin); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin); */ - public static boolean DragScalar(String label, int data_type, ImFloat p_data, float v_speed, float p_min, float p_max) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max); + public static boolean dragScalar(String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax); } - private static native boolean nDragScalar(String label, int data_type, float[] p_data, float v_speed, float p_min, float p_max); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max); + private static native boolean nDragScalar(String label, int dataType, float[] pData, float vSpeed, float pMin, float pMax); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax); */ - public static boolean DragScalar(String label, int data_type, ImFloat p_data, float v_speed, float p_min, float p_max, String format) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalar(String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, String format) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalar(String label, int data_type, ImFloat p_data, float v_speed, float p_min, float p_max, String format, float power) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, power); + public static boolean dragScalar(String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, String format, float power) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalar(String label, int data_type, float[] p_data, float v_speed, float p_min, float p_max, String format, float power); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalar(String label, int dataType, float[] pData, float vSpeed, float pMin, float pMax, String format, float power); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalar(String label, int data_type, ImDouble p_data, float v_speed) { - return nDragScalar(label, data_type, p_data.data, v_speed); + public static boolean dragScalar(String label, int dataType, ImDouble pData, float vSpeed) { + return nDragScalar(label, dataType, pData.data, vSpeed); } - private static native boolean nDragScalar(String label, int data_type, double[] p_data, float v_speed); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed); + private static native boolean nDragScalar(String label, int dataType, double[] pData, float vSpeed); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed); */ - public static boolean DragScalar(String label, int data_type, ImDouble p_data, float v_speed, double p_min) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min); + public static boolean dragScalar(String label, int dataType, ImDouble pData, float vSpeed, double pMin) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin); } - private static native boolean nDragScalar(String label, int data_type, double[] p_data, float v_speed, double p_min); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min); + private static native boolean nDragScalar(String label, int dataType, double[] pData, float vSpeed, double pMin); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin); */ - public static boolean DragScalar(String label, int data_type, ImDouble p_data, float v_speed, double p_min, double p_max) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max); + public static boolean dragScalar(String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax); } - private static native boolean nDragScalar(String label, int data_type, double[] p_data, float v_speed, double p_min, double p_max); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max); + private static native boolean nDragScalar(String label, int dataType, double[] pData, float vSpeed, double pMin, double pMax); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax); */ - public static boolean DragScalar(String label, int data_type, ImDouble p_data, float v_speed, double p_min, double p_max, String format) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalar(String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, String format) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalar(String label, int data_type, ImDouble p_data, float v_speed, double p_min, double p_max, String format, float power) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, power); + public static boolean dragScalar(String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, String format, float power) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalar(String label, int data_type, double[] p_data, float v_speed, double p_min, double p_max, String format, float power); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalar(String label, int dataType, double[] pData, float vSpeed, double pMin, double pMax, String format, float power); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalar(String label, int data_type, ImLong p_data, float v_speed) { - return nDragScalar(label, data_type, p_data.data, v_speed); + public static boolean dragScalar(String label, int dataType, ImLong pData, float vSpeed) { + return nDragScalar(label, dataType, pData.data, vSpeed); } - private static native boolean nDragScalar(String label, int data_type, long[] p_data, float v_speed); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed); + private static native boolean nDragScalar(String label, int dataType, long[] pData, float vSpeed); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed); */ - public static boolean DragScalar(String label, int data_type, ImLong p_data, float v_speed, long p_min) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min); + public static boolean dragScalar(String label, int dataType, ImLong pData, float vSpeed, long pMin) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin); } - private static native boolean nDragScalar(String label, int data_type, long[] p_data, float v_speed, long p_min); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min); + private static native boolean nDragScalar(String label, int dataType, long[] pData, float vSpeed, long pMin); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin); */ - public static boolean DragScalar(String label, int data_type, ImLong p_data, float v_speed, long p_min, long p_max) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max); + public static boolean dragScalar(String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax); } - private static native boolean nDragScalar(String label, int data_type, long[] p_data, float v_speed, long p_min, long p_max); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max); + private static native boolean nDragScalar(String label, int dataType, long[] pData, float vSpeed, long pMin, long pMax); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax); */ - public static boolean DragScalar(String label, int data_type, ImLong p_data, float v_speed, long p_min, long p_max, String format) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalar(String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, String format) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalar(String label, int data_type, ImLong p_data, float v_speed, long p_min, long p_max, String format, float power) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, power); + public static boolean dragScalar(String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, String format, float power) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalar(String label, int data_type, long[] p_data, float v_speed, long p_min, long p_max, String format, float power); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalar(String label, int dataType, long[] pData, float vSpeed, long pMin, long pMax, String format, float power); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalar(String label, int data_type, ImShort p_data, float v_speed) { - return nDragScalar(label, data_type, p_data.data, v_speed); + public static boolean dragScalar(String label, int dataType, ImShort pData, float vSpeed) { + return nDragScalar(label, dataType, pData.data, vSpeed); } - private static native boolean nDragScalar(String label, int data_type, short[] p_data, float v_speed); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed); + private static native boolean nDragScalar(String label, int dataType, short[] pData, float vSpeed); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed); */ - public static boolean DragScalar(String label, int data_type, ImShort p_data, float v_speed, short p_min) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min); + public static boolean dragScalar(String label, int dataType, ImShort pData, float vSpeed, short pMin) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin); } - private static native boolean nDragScalar(String label, int data_type, short[] p_data, float v_speed, short p_min); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min); + private static native boolean nDragScalar(String label, int dataType, short[] pData, float vSpeed, short pMin); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin); */ - public static boolean DragScalar(String label, int data_type, ImShort p_data, float v_speed, short p_min, short p_max) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max); + public static boolean dragScalar(String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax); } - private static native boolean nDragScalar(String label, int data_type, short[] p_data, float v_speed, short p_min, short p_max); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max); + private static native boolean nDragScalar(String label, int dataType, short[] pData, float vSpeed, short pMin, short pMax); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax); */ - public static boolean DragScalar(String label, int data_type, ImShort p_data, float v_speed, short p_min, short p_max, String format) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalar(String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, String format) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalar(String label, int data_type, ImShort p_data, float v_speed, short p_min, short p_max, String format, float power) { - return nDragScalar(label, data_type, p_data.data, v_speed, p_min, p_max, format, power); + public static boolean dragScalar(String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, String format, float power) { + return nDragScalar(label, dataType, pData.data, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalar(String label, int data_type, short[] p_data, float v_speed, short p_min, short p_max, String format, float power); /* - return ImGui::DragScalar(label, data_type, &p_data[0], v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalar(String label, int dataType, short[] pData, float vSpeed, short pMin, short pMax, String format, float power); /* + return ImGui::DragScalar(label, dataType, &pData[0], vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalarN(String label, int data_type, ImInt p_data, int components, float v_speed) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed); + public static boolean dragScalarN(String label, int dataType, ImInt pData, int components, float vSpeed) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed); } - private static native boolean nDragScalarN(String label, int data_type, int[] p_data, int components, float v_speed); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed); + private static native boolean nDragScalarN(String label, int dataType, int[] pData, int components, float vSpeed); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed); */ - public static boolean DragScalarN(String label, int data_type, ImInt p_data, int components, float v_speed, int p_min) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min); + public static boolean dragScalarN(String label, int dataType, ImInt pData, int components, float vSpeed, int pMin) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin); } - private static native boolean nDragScalarN(String label, int data_type, int[] p_data, int components, float v_speed, int p_min); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min); + private static native boolean nDragScalarN(String label, int dataType, int[] pData, int components, float vSpeed, int pMin); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin); */ - public static boolean DragScalarN(String label, int data_type, ImInt p_data, int components, float v_speed, int p_min, int p_max) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max); + public static boolean dragScalarN(String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax); } - private static native boolean nDragScalarN(String label, int data_type, int[] p_data, int components, float v_speed, int p_min, int p_max); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max); + private static native boolean nDragScalarN(String label, int dataType, int[] pData, int components, float vSpeed, int pMin, int pMax); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax); */ - public static boolean DragScalarN(String label, int data_type, ImInt p_data, int components, float v_speed, int p_min, int p_max, String format) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalarN(String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, String format) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalarN(String label, int data_type, ImInt p_data, int components, float v_speed, int p_min, int p_max, String format, float power) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, power); + public static boolean dragScalarN(String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, String format, float power) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalarN(String label, int data_type, int[] p_data, int components, float v_speed, int p_min, int p_max, String format, float power); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalarN(String label, int dataType, int[] pData, int components, float vSpeed, int pMin, int pMax, String format, float power); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalarN(String label, int data_type, ImFloat p_data, int components, float v_speed) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed); + public static boolean dragScalarN(String label, int dataType, ImFloat pData, int components, float vSpeed) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed); } - private static native boolean nDragScalarN(String label, int data_type, float[] p_data, int components, float v_speed); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed); + private static native boolean nDragScalarN(String label, int dataType, float[] pData, int components, float vSpeed); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed); */ - public static boolean DragScalarN(String label, int data_type, ImFloat p_data, int components, float v_speed, float p_min) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min); + public static boolean dragScalarN(String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin); } - private static native boolean nDragScalarN(String label, int data_type, float[] p_data, int components, float v_speed, float p_min); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min); + private static native boolean nDragScalarN(String label, int dataType, float[] pData, int components, float vSpeed, float pMin); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin); */ - public static boolean DragScalarN(String label, int data_type, ImFloat p_data, int components, float v_speed, float p_min, float p_max) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max); + public static boolean dragScalarN(String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax); } - private static native boolean nDragScalarN(String label, int data_type, float[] p_data, int components, float v_speed, float p_min, float p_max); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max); + private static native boolean nDragScalarN(String label, int dataType, float[] pData, int components, float vSpeed, float pMin, float pMax); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax); */ - public static boolean DragScalarN(String label, int data_type, ImFloat p_data, int components, float v_speed, float p_min, float p_max, String format) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalarN(String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, String format) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalarN(String label, int data_type, ImFloat p_data, int components, float v_speed, float p_min, float p_max, String format, float power) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, power); + public static boolean dragScalarN(String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, String format, float power) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalarN(String label, int data_type, float[] p_data, int components, float v_speed, float p_min, float p_max, String format, float power); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalarN(String label, int dataType, float[] pData, int components, float vSpeed, float pMin, float pMax, String format, float power); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalarN(String label, int data_type, ImDouble p_data, int components, float v_speed) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed); + public static boolean dragScalarN(String label, int dataType, ImDouble pData, int components, float vSpeed) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed); } - private static native boolean nDragScalarN(String label, int data_type, double[] p_data, int components, float v_speed); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed); + private static native boolean nDragScalarN(String label, int dataType, double[] pData, int components, float vSpeed); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed); */ - public static boolean DragScalarN(String label, int data_type, ImDouble p_data, int components, float v_speed, double p_min) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min); + public static boolean dragScalarN(String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin); } - private static native boolean nDragScalarN(String label, int data_type, double[] p_data, int components, float v_speed, double p_min); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min); + private static native boolean nDragScalarN(String label, int dataType, double[] pData, int components, float vSpeed, double pMin); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin); */ - public static boolean DragScalarN(String label, int data_type, ImDouble p_data, int components, float v_speed, double p_min, double p_max) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max); + public static boolean dragScalarN(String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax); } - private static native boolean nDragScalarN(String label, int data_type, double[] p_data, int components, float v_speed, double p_min, double p_max); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max); + private static native boolean nDragScalarN(String label, int dataType, double[] pData, int components, float vSpeed, double pMin, double pMax); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax); */ - public static boolean DragScalarN(String label, int data_type, ImDouble p_data, int components, float v_speed, double p_min, double p_max, String format) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalarN(String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, String format) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalarN(String label, int data_type, ImDouble p_data, int components, float v_speed, double p_min, double p_max, String format, float power) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, power); + public static boolean dragScalarN(String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, String format, float power) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalarN(String label, int data_type, double[] p_data, int components, float v_speed, double p_min, double p_max, String format, float power); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalarN(String label, int dataType, double[] pData, int components, float vSpeed, double pMin, double pMax, String format, float power); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalarN(String label, int data_type, ImLong p_data, int components, float v_speed) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed); + public static boolean dragScalarN(String label, int dataType, ImLong pData, int components, float vSpeed) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed); } - private static native boolean nDragScalarN(String label, int data_type, long[] p_data, int components, float v_speed); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed); + private static native boolean nDragScalarN(String label, int dataType, long[] pData, int components, float vSpeed); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed); */ - public static boolean DragScalarN(String label, int data_type, ImLong p_data, int components, float v_speed, long p_min) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min); + public static boolean dragScalarN(String label, int dataType, ImLong pData, int components, float vSpeed, long pMin) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin); } - private static native boolean nDragScalarN(String label, int data_type, long[] p_data, int components, float v_speed, long p_min); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min); + private static native boolean nDragScalarN(String label, int dataType, long[] pData, int components, float vSpeed, long pMin); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin); */ - public static boolean DragScalarN(String label, int data_type, ImLong p_data, int components, float v_speed, long p_min, long p_max) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max); + public static boolean dragScalarN(String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax); } - private static native boolean nDragScalarN(String label, int data_type, long[] p_data, int components, float v_speed, long p_min, long p_max); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max); + private static native boolean nDragScalarN(String label, int dataType, long[] pData, int components, float vSpeed, long pMin, long pMax); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax); */ - public static boolean DragScalarN(String label, int data_type, ImLong p_data, int components, float v_speed, long p_min, long p_max, String format) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalarN(String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, String format) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalarN(String label, int data_type, ImLong p_data, int components, float v_speed, long p_min, long p_max, String format, float power) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, power); + public static boolean dragScalarN(String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, String format, float power) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalarN(String label, int data_type, long[] p_data, int components, float v_speed, long p_min, long p_max, String format, float power); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalarN(String label, int dataType, long[] pData, int components, float vSpeed, long pMin, long pMax, String format, float power); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax, format, power); */ - public static boolean DragScalarN(String label, int data_type, ImShort p_data, int components, float v_speed) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed); + public static boolean dragScalarN(String label, int dataType, ImShort pData, int components, float vSpeed) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed); } - private static native boolean nDragScalarN(String label, int data_type, short[] p_data, int components, float v_speed); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed); + private static native boolean nDragScalarN(String label, int dataType, short[] pData, int components, float vSpeed); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed); */ - public static boolean DragScalarN(String label, int data_type, ImShort p_data, int components, float v_speed, short p_min) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min); + public static boolean dragScalarN(String label, int dataType, ImShort pData, int components, float vSpeed, short pMin) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin); } - private static native boolean nDragScalarN(String label, int data_type, short[] p_data, int components, float v_speed, short p_min); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min); + private static native boolean nDragScalarN(String label, int dataType, short[] pData, int components, float vSpeed, short pMin); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin); */ - public static boolean DragScalarN(String label, int data_type, ImShort p_data, int components, float v_speed, short p_min, short p_max) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max); + public static boolean dragScalarN(String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax); } - private static native boolean nDragScalarN(String label, int data_type, short[] p_data, int components, float v_speed, short p_min, short p_max); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max); + private static native boolean nDragScalarN(String label, int dataType, short[] pData, int components, float vSpeed, short pMin, short pMax); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax); */ - public static boolean DragScalarN(String label, int data_type, ImShort p_data, int components, float v_speed, short p_min, short p_max, String format) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, 1.0f); + public static boolean dragScalarN(String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, String format) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, 1.0f); } - public static boolean DragScalarN(String label, int data_type, ImShort p_data, int components, float v_speed, short p_min, short p_max, String format, float power) { - return nDragScalarN(label, data_type, p_data.data, components, v_speed, p_min, p_max, format, power); + public static boolean dragScalarN(String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, String format, float power) { + return nDragScalarN(label, dataType, pData.data, components, vSpeed, pMin, pMax, format, power); } - private static native boolean nDragScalarN(String label, int data_type, short[] p_data, int components, float v_speed, short p_min, short p_max, String format, float power); /* - return ImGui::DragScalarN(label, data_type, &p_data[0], components, v_speed, &p_min, &p_max, format, power); + private static native boolean nDragScalarN(String label, int dataType, short[] pData, int components, float vSpeed, short pMin, short pMax, String format, float power); /* + return ImGui::DragScalarN(label, dataType, &pData[0], components, vSpeed, &pMin, &pMax, format, power); */ // Widgets: Sliders @@ -1962,420 +1962,420 @@ public final class ImGui { /** * Adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. Use power!=1.0 for power curve sliders */ - public static native boolean SliderFloat(String label, float[] v, float v_min, float v_max); /* - return ImGui::SliderFloat(label, &v[0],v_min, v_max); + public static native boolean sliderFloat(String label, float[] v, float vMin, float vMax); /* + return ImGui::SliderFloat(label, &v[0],vMin, vMax); */ - public static native boolean SliderFloat(String label, float[] v, float v_min, float v_max, String format); /* - return ImGui::SliderFloat(label, &v[0], v_min, v_max, format); + public static native boolean sliderFloat(String label, float[] v, float vMin, float vMax, String format); /* + return ImGui::SliderFloat(label, &v[0], vMin, vMax, format); */ - public static native boolean SliderFloat(String label, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderFloat(label, &v[0], v_min, v_max, format, power); + public static native boolean sliderFloat(String label, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderFloat(label, &v[0], vMin, vMax, format, power); */ - public static native boolean SliderFloat2(String label, float[] v, float v_min, float v_max); /* - return ImGui::SliderFloat2(label, v, v_min, v_max); + public static native boolean sliderFloat2(String label, float[] v, float vMin, float vMax); /* + return ImGui::SliderFloat2(label, v, vMin, vMax); */ - public static native boolean SliderFloat2(String label, float[] v, float v_min, float v_max, String format); /* - return ImGui::SliderFloat2(label, v, v_min, v_max, format); + public static native boolean sliderFloat2(String label, float[] v, float vMin, float vMax, String format); /* + return ImGui::SliderFloat2(label, v, vMin, vMax, format); */ - public static native boolean SliderFloat2(String label, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderFloat2(label, v, v_min, v_max, format, power); + public static native boolean sliderFloat2(String label, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderFloat2(label, v, vMin, vMax, format, power); */ - public static native boolean SliderFloat3(String label, float[] v, float v_min, float v_max); /* - return ImGui::SliderFloat3(label, v, v_min, v_max); + public static native boolean sliderFloat3(String label, float[] v, float vMin, float vMax); /* + return ImGui::SliderFloat3(label, v, vMin, vMax); */ - public static native boolean SliderFloat3(String label, float[] v, float v_min, float v_max, String format); /* - return ImGui::SliderFloat3(label, v, v_min, v_max, format); + public static native boolean sliderFloat3(String label, float[] v, float vMin, float vMax, String format); /* + return ImGui::SliderFloat3(label, v, vMin, vMax, format); */ - public static native boolean SliderFloat3(String label, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderFloat3(label, v, v_min, v_max, format, power); + public static native boolean sliderFloat3(String label, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderFloat3(label, v, vMin, vMax, format, power); */ - public static native boolean SliderFloat4(String label, float[] v, float v_min, float v_max); /* - return ImGui::SliderFloat4(label, v, v_min, v_max); + public static native boolean sliderFloat4(String label, float[] v, float vMin, float vMax); /* + return ImGui::SliderFloat4(label, v, vMin, vMax); */ - public static native boolean SliderFloat4(String label, float[] v, float v_min, float v_max, String format); /* - return ImGui::SliderFloat4(label, v, v_min, v_max, format); + public static native boolean sliderFloat4(String label, float[] v, float vMin, float vMax, String format); /* + return ImGui::SliderFloat4(label, v, vMin, vMax, format); */ - public static native boolean SliderFloat4(String label, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderFloat4(label, v, v_min, v_max, format, power); + public static native boolean sliderFloat4(String label, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderFloat4(label, v, vMin, vMax, format, power); */ - public static native boolean SliderAngle(String label, float[] v_rad); /* - return ImGui::SliderAngle(label, &v_rad[0]); + public static native boolean sliderAngle(String label, float[] vRad); /* + return ImGui::SliderAngle(label, &vRad[0]); */ - public static native boolean SliderAngle(String label, float[] v_rad, float v_degrees_min); /* - return ImGui::SliderAngle(label, &v_rad[0], v_degrees_min); + public static native boolean sliderAngle(String label, float[] vRad, float vDegreesMin); /* + return ImGui::SliderAngle(label, &vRad[0], vDegreesMin); */ - public static native boolean SliderAngle(String label, float[] v_rad, float v_degrees_min, float v_degrees_max); /* - return ImGui::SliderAngle(label, &v_rad[0], v_degrees_min, v_degrees_max); + public static native boolean sliderAngle(String label, float[] vRad, float vDegreesMin, float vDegreesMax); /* + return ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax); */ - public static native boolean SliderAngle(String label, float[] v_rad, float v_degrees_min, float v_degrees_max, String format); /* - return ImGui::SliderAngle(label, &v_rad[0], v_degrees_min, v_degrees_max, format); + public static native boolean sliderAngle(String label, float[] vRad, float vDegreesMin, float vDegreesMax, String format); /* + return ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax, format); */ - public static native boolean SliderInt(String label, int[] v, int v_min, int v_max); /* - return ImGui::SliderInt(label, &v[0], v_min, v_max); + public static native boolean sliderInt(String label, int[] v, int vMin, int vMax); /* + return ImGui::SliderInt(label, &v[0], vMin, vMax); */ - public static native boolean SliderInt(String label, int[] v, int v_min, int v_max, String format); /* - return ImGui::SliderInt(label, &v[0], v_min, v_max, format); + public static native boolean sliderInt(String label, int[] v, int vMin, int vMax, String format); /* + return ImGui::SliderInt(label, &v[0], vMin, vMax, format); */ - public static native boolean SliderInt2(String label, int[] v, int v_min, int v_max); /* - return ImGui::SliderInt2(label, v, v_min, v_max); + public static native boolean sliderInt2(String label, int[] v, int vMin, int vMax); /* + return ImGui::SliderInt2(label, v, vMin, vMax); */ - public static native boolean SliderInt2(String label, int[] v, int v_min, int v_max, String format); /* - return ImGui::SliderInt2(label, v, v_min, v_max, format); + public static native boolean sliderInt2(String label, int[] v, int vMin, int vMax, String format); /* + return ImGui::SliderInt2(label, v, vMin, vMax, format); */ - public static native boolean SliderInt3(String label, int[] v, int v_min, int v_max); /* - return ImGui::SliderInt3(label, v, v_min, v_max); + public static native boolean sliderInt3(String label, int[] v, int vMin, int vMax); /* + return ImGui::SliderInt3(label, v, vMin, vMax); */ - public static native boolean SliderInt3(String label, int[] v, int v_min, int v_max, String format); /* - return ImGui::SliderInt3(label, v, v_min, v_max, format); + public static native boolean sliderInt3(String label, int[] v, int vMin, int vMax, String format); /* + return ImGui::SliderInt3(label, v, vMin, vMax, format); */ - public static native boolean SliderInt4(String label, int[] v, int v_min, int v_max); /* - return ImGui::SliderInt4(label, v, v_min, v_max); + public static native boolean sliderInt4(String label, int[] v, int vMin, int vMax); /* + return ImGui::SliderInt4(label, v, vMin, vMax); */ - public static native boolean SliderInt4(String label, int[] v, int v_min, int v_max, String format); /* - return ImGui::SliderInt4(label, v, v_min, v_max, format); + public static native boolean sliderInt4(String label, int[] v, int vMin, int vMax, String format); /* + return ImGui::SliderInt4(label, v, vMin, vMax, format); */ - public static boolean SliderScalar(String label, int data_type, ImInt v, int v_min, int v_max) { - return nSliderScalar(label, data_type, v.data, v_min, v_max); + public static boolean sliderScalar(String label, int dataType, ImInt v, int vMin, int vMax) { + return nSliderScalar(label, dataType, v.data, vMin, vMax); } - private static native boolean nSliderScalar(String label, int data_type, int[] v, int v_min, int v_max); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max); + private static native boolean nSliderScalar(String label, int dataType, int[] v, int vMin, int vMax); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax); */ - public static boolean SliderScalar(String label, int data_type, ImInt v, int v_min, int v_max, String format) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalar(String label, int dataType, ImInt v, int vMin, int vMax, String format) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalar(String label, int data_type, ImInt v, int v_min, int v_max, String format, float power) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, power); + public static boolean sliderScalar(String label, int dataType, ImInt v, int vMin, int vMax, String format, float power) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalar(String label, int data_type, int[] v, int v_min, int v_max, String format, float power); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nSliderScalar(String label, int dataType, int[] v, int vMin, int vMax, String format, float power); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean SliderScalar(String label, int data_type, ImFloat v, float v_min, float v_max) { - return nSliderScalar(label, data_type, v.data, v_min, v_max); + public static boolean sliderScalar(String label, int dataType, ImFloat v, float vMin, float vMax) { + return nSliderScalar(label, dataType, v.data, vMin, vMax); } - private static native boolean nSliderScalar(String label, int data_type, float[] v, float v_min, float v_max); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max); + private static native boolean nSliderScalar(String label, int dataType, float[] v, float vMin, float vMax); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax); */ - public static boolean SliderScalar(String label, int data_type, ImFloat v, float v_min, float v_max, String format) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalar(String label, int dataType, ImFloat v, float vMin, float vMax, String format) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalar(String label, int data_type, ImFloat v, float v_min, float v_max, String format, float power) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, power); + public static boolean sliderScalar(String label, int dataType, ImFloat v, float vMin, float vMax, String format, float power) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalar(String label, int data_type, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nSliderScalar(String label, int dataType, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean SliderScalar(String label, int data_type, ImLong v, long v_min, long v_max) { - return nSliderScalar(label, data_type, v.data, v_min, v_max); + public static boolean sliderScalar(String label, int dataType, ImLong v, long vMin, long vMax) { + return nSliderScalar(label, dataType, v.data, vMin, vMax); } - private static native boolean nSliderScalar(String label, int data_type, long[] v, long v_min, long v_max); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max); + private static native boolean nSliderScalar(String label, int dataType, long[] v, long vMin, long vMax); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax); */ - public static boolean SliderScalar(String label, int data_type, ImLong v, long v_min, long v_max, String format) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalar(String label, int dataType, ImLong v, long vMin, long vMax, String format) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalar(String label, int data_type, ImLong v, long v_min, long v_max, String format, float power) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, power); + public static boolean sliderScalar(String label, int dataType, ImLong v, long vMin, long vMax, String format, float power) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalar(String label, int data_type, long[] v, long v_min, long v_max, String format, float power); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nSliderScalar(String label, int dataType, long[] v, long vMin, long vMax, String format, float power); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean SliderScalar(String label, int data_type, ImDouble v, double v_min, double v_max) { - return nSliderScalar(label, data_type, v.data, v_min, v_max); + public static boolean sliderScalar(String label, int dataType, ImDouble v, double vMin, double vMax) { + return nSliderScalar(label, dataType, v.data, vMin, vMax); } - private static native boolean nSliderScalar(String label, int data_type, double[] v, double v_min, double v_max); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max); + private static native boolean nSliderScalar(String label, int dataType, double[] v, double vMin, double vMax); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax); */ - public static boolean SliderScalar(String label, int data_type, ImDouble v, double v_min, double v_max, String format) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalar(String label, int dataType, ImDouble v, double vMin, double vMax, String format) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalar(String label, int data_type, ImDouble v, double v_min, double v_max, String format, float power) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, power); + public static boolean sliderScalar(String label, int dataType, ImDouble v, double vMin, double vMax, String format, float power) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalar(String label, int data_type, double[] v, double v_min, double v_max, String format, float power); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nSliderScalar(String label, int dataType, double[] v, double vMin, double vMax, String format, float power); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean SliderScalar(String label, int data_type, ImShort v, short v_min, short v_max) { - return nSliderScalar(label, data_type, v.data, v_min, v_max); + public static boolean sliderScalar(String label, int dataType, ImShort v, short vMin, short vMax) { + return nSliderScalar(label, dataType, v.data, vMin, vMax); } - private static native boolean nSliderScalar(String label, int data_type, short[] v, short v_min, short v_max); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max); + private static native boolean nSliderScalar(String label, int dataType, short[] v, short vMin, short vMax); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax); */ - public static boolean SliderScalar(String label, int data_type, ImShort v, short v_min, short v_max, String format) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalar(String label, int dataType, ImShort v, short vMin, short vMax, String format) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalar(String label, int data_type, ImShort v, short v_min, short v_max, String format, float power) { - return nSliderScalar(label, data_type, v.data, v_min, v_max, format, power); + public static boolean sliderScalar(String label, int dataType, ImShort v, short vMin, short vMax, String format, float power) { + return nSliderScalar(label, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalar(String label, int data_type, short[] v, short v_min, short v_max, String format, float power); /* - return ImGui::SliderScalar(label, data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nSliderScalar(String label, int dataType, short[] v, short vMin, short vMax, String format, float power); /* + return ImGui::SliderScalar(label, dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImInt v, int v_min, int v_max) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max); + public static boolean sliderScalarN(String label, int dataType, int components, ImInt v, int vMin, int vMax) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax); } - private static native boolean nSliderScalarN(String label, int data_type, int components, int[] v, int v_min, int v_max); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max); + private static native boolean nSliderScalarN(String label, int dataType, int components, int[] v, int vMin, int vMax); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImInt v, int v_min, int v_max, String format) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalarN(String label, int dataType, int components, ImInt v, int vMin, int vMax, String format) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalarN(String label, int data_type, int components, ImInt v, int v_min, int v_max, String format, float power) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, power); + public static boolean sliderScalarN(String label, int dataType, int components, ImInt v, int vMin, int vMax, String format, float power) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalarN(String label, int data_type, int components, int[] v, int v_min, int v_max, String format, float power); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max, format, power); + private static native boolean nSliderScalarN(String label, int dataType, int components, int[] v, int vMin, int vMax, String format, float power); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax, format, power); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImFloat v, float v_min, float v_max) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max); + public static boolean sliderScalarN(String label, int dataType, int components, ImFloat v, float vMin, float vMax) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax); } - private static native boolean nSliderScalarN(String label, int data_type, int components, float[] v, float v_min, float v_max); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max); + private static native boolean nSliderScalarN(String label, int dataType, int components, float[] v, float vMin, float vMax); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImFloat v, float v_min, float v_max, String format) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalarN(String label, int dataType, int components, ImFloat v, float vMin, float vMax, String format) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalarN(String label, int data_type, int components, ImFloat v, float v_min, float v_max, String format, float power) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, power); + public static boolean sliderScalarN(String label, int dataType, int components, ImFloat v, float vMin, float vMax, String format, float power) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalarN(String label, int data_type, int components, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max, format, power); + private static native boolean nSliderScalarN(String label, int dataType, int components, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax, format, power); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImLong v, long v_min, long v_max) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max); + public static boolean sliderScalarN(String label, int dataType, int components, ImLong v, long vMin, long vMax) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax); } - private static native boolean nSliderScalarN(String label, int data_type, int components, long[] v, long v_min, long v_max); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max); + private static native boolean nSliderScalarN(String label, int dataType, int components, long[] v, long vMin, long vMax); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImLong v, long v_min, long v_max, String format) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalarN(String label, int dataType, int components, ImLong v, long vMin, long vMax, String format) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalarN(String label, int data_type, int components, ImLong v, long v_min, long v_max, String format, float power) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, power); + public static boolean sliderScalarN(String label, int dataType, int components, ImLong v, long vMin, long vMax, String format, float power) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalarN(String label, int data_type, int components, long[] v, long v_min, long v_max, String format, float power); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max, format, power); + private static native boolean nSliderScalarN(String label, int dataType, int components, long[] v, long vMin, long vMax, String format, float power); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax, format, power); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImDouble v, double v_min, double v_max) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max); + public static boolean sliderScalarN(String label, int dataType, int components, ImDouble v, double vMin, double vMax) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax); } - private static native boolean nSliderScalarN(String label, int data_type, int components, double[] v, double v_min, double v_max); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max); + private static native boolean nSliderScalarN(String label, int dataType, int components, double[] v, double vMin, double vMax); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImDouble v, double v_min, double v_max, String format) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalarN(String label, int dataType, int components, ImDouble v, double vMin, double vMax, String format) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalarN(String label, int data_type, int components, ImDouble v, double v_min, double v_max, String format, float power) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, power); + public static boolean sliderScalarN(String label, int dataType, int components, ImDouble v, double vMin, double vMax, String format, float power) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalarN(String label, int data_type, int components, double[] v, double v_min, double v_max, String format, float power); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max, format, power); + private static native boolean nSliderScalarN(String label, int dataType, int components, double[] v, double vMin, double vMax, String format, float power); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax, format, power); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImShort v, short v_min, short v_max) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max); + public static boolean sliderScalarN(String label, int dataType, int components, ImShort v, short vMin, short vMax) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax); } - private static native boolean nSliderScalarN(String label, int data_type, int components, short[] v, short v_min, short v_max); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max); + private static native boolean nSliderScalarN(String label, int dataType, int components, short[] v, short vMin, short vMax); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax); */ - public static boolean SliderScalarN(String label, int data_type, int components, ImShort v, short v_min, short v_max, String format) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, 1.0f); + public static boolean sliderScalarN(String label, int dataType, int components, ImShort v, short vMin, short vMax, String format) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, 1.0f); } - public static boolean SliderScalarN(String label, int data_type, int components, ImShort v, short v_min, short v_max, String format, float power) { - return nSliderScalarN(label, data_type, components, v.data, v_min, v_max, format, power); + public static boolean sliderScalarN(String label, int dataType, int components, ImShort v, short vMin, short vMax, String format, float power) { + return nSliderScalarN(label, dataType, components, v.data, vMin, vMax, format, power); } - private static native boolean nSliderScalarN(String label, int data_type, int components, short[] v, short v_min, short v_max, String format, float power); /* - return ImGui::SliderScalarN(label, data_type, &v[0], components, &v_min, &v_max, format, power); + private static native boolean nSliderScalarN(String label, int dataType, int components, short[] v, short vMin, short vMax, String format, float power); /* + return ImGui::SliderScalarN(label, dataType, &v[0], components, &vMin, &vMax, format, power); */ - public static native boolean VSliderFloat(String label, float sizeX, float sizeY, float[] v, float v_min, float v_max); /* - return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], v_min, v_max); + public static native boolean vSliderFloat(String label, float sizeX, float sizeY, float[] v, float vMin, float vMax); /* + return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], vMin, vMax); */ - public static native boolean VSliderFloat(String label, float sizeX, float sizeY, float[] v, float v_min, float v_max, String format); /* - return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], v_min, v_max); + public static native boolean vSliderFloat(String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, String format); /* + return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], vMin, vMax); */ - public static native boolean VSliderFloat(String label, float sizeX, float sizeY, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], v_min, v_max, format, power); + public static native boolean vSliderFloat(String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::VSliderFloat(label, ImVec2(sizeX, sizeY), &v[0], vMin, vMax, format, power); */ - public static native boolean VSliderInt(String label, float sizeX, float sizeY, int[] v, int v_min, int v_max); /* - return ImGui::VSliderInt(label, ImVec2(sizeX, sizeY), &v[0], v_min, v_max); + public static native boolean vSliderInt(String label, float sizeX, float sizeY, int[] v, int vMin, int vMax); /* + return ImGui::VSliderInt(label, ImVec2(sizeX, sizeY), &v[0], vMin, vMax); */ - public static native boolean VSliderInt(String label, float sizeX, float sizeY, int[] v, int v_min, int v_max, String format); /* - return ImGui::VSliderInt(label, ImVec2(sizeX, sizeY), &v[0], v_min, v_max, format); + public static native boolean vSliderInt(String label, float sizeX, float sizeY, int[] v, int vMin, int vMax, String format); /* + return ImGui::VSliderInt(label, ImVec2(sizeX, sizeY), &v[0], vMin, vMax, format); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImInt v, int v_min, int v_max) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, int[] v, int v_min, int v_max); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, int[] v, int vMin, int vMax); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImInt v, int v_min, int v_max, String format) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, String format) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImInt v, int v_min, int v_max, String format, float power) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, power); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, String format, float power) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, int[] v, int v_min, int v_max, String format, float power); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, int[] v, int vMin, int vMax, String format, float power); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImFloat v, float v_min, float v_max) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, float[] v, float v_min, float v_max); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, float[] v, float vMin, float vMax); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImFloat v, float v_min, float v_max, String format) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, String format) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImFloat v, float v_min, float v_max, String format, float power) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, power); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, String format, float power) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, float[] v, float v_min, float v_max, String format, float power); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, float[] v, float vMin, float vMax, String format, float power); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImLong v, long v_min, long v_max) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, long[] v, long v_min, long v_max); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, long[] v, long vMin, long vMax); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImLong v, long v_min, long v_max, String format) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, String format) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImLong v, long v_min, long v_max, String format, float power) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, power); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, String format, float power) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, long[] v, long v_min, long v_max, String format, float power); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, long[] v, long vMin, long vMax, String format, float power); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImDouble v, double v_min, double v_max) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, double[] v, double v_min, double v_max); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, double[] v, double vMin, double vMax); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImDouble v, double v_min, double v_max, String format) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, String format) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImDouble v, double v_min, double v_max, String format, float power) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, power); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, String format, float power) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, double[] v, double v_min, double v_max, String format, float power); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, double[] v, double vMin, double vMax, String format, float power); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax, format, power); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImShort v, short v_min, short v_max) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, short[] v, short v_min, short v_max); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, short[] v, short vMin, short vMax); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax); */ - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImShort v, short v_min, short v_max, String format) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, 1.0f); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, String format) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, 1.0f); } - public static boolean VSliderScalar(String label, float sizeX, float sizeY, int data_type, ImShort v, short v_min, short v_max, String format, float power) { - return nVSliderScalar(label, sizeX, sizeY, data_type, v.data, v_min, v_max, format, power); + public static boolean vSliderScalar(String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, String format, float power) { + return nVSliderScalar(label, sizeX, sizeY, dataType, v.data, vMin, vMax, format, power); } - private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int data_type, short[] v, short v_min, short v_max, String format, float power); /* - return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), data_type, &v[0], &v_min, &v_max, format, power); + private static native boolean nVSliderScalar(String label, float sizeX, float sizeY, int dataType, short[] v, short vMin, short vMax, String format, float power); /* + return ImGui::VSliderScalar(label, ImVec2(sizeX, sizeY), dataType, &v[0], &vMin, &vMax, format, power); */ // Widgets: Input with Keyboard @@ -2424,38 +2424,38 @@ public final class ImGui { imTextInputDataIsResizedID = env->GetFieldID(jImInputTextDataClass, "isResized", "Z"); */ - public static boolean InputText(String label, ImString text) { + public static boolean inputText(String label, ImString text) { return preInputText(false, label, text, 0, 0, 0); } - public static boolean InputText(String label, ImString text, int imGuiInputTextFlags) { + public static boolean inputText(String label, ImString text, int imGuiInputTextFlags) { return preInputText(false, label, text, 0, 0, imGuiInputTextFlags); } - public static boolean InputTextMultiline(String label, ImString text) { + public static boolean inputTextMultiline(String label, ImString text) { return preInputText(true, label, text, 0, 0, 0); } - public static boolean InputTextMultiline(String label, ImString text, float width, float height) { + public static boolean inputTextMultiline(String label, ImString text, float width, float height) { return preInputText(true, label, text, width, height, 0); } - public static boolean InputTextMultiline(String label, ImString text, int imGuiInputTextFlags) { + public static boolean inputTextMultiline(String label, ImString text, int imGuiInputTextFlags) { return preInputText(true, label, text, 0, 0, imGuiInputTextFlags); } - public static boolean InputTextMultiline(String label, ImString text, float width, float height, int imGuiInputTextFlags) { + public static boolean inputTextMultiline(String label, ImString text, float width, float height, int imGuiInputTextFlags) { return preInputText(true, label, text, width, height, imGuiInputTextFlags); } private static boolean preInputText(boolean multiline, String label, ImString text, float width, float height, int flags) { - ImGuiInputTextData inputData = text.inputData; + final ImGuiInputTextData inputData = text.inputData; if (inputData.isResizable) { flags |= ImGuiInputTextFlags.CallbackResize; } - boolean hasInput = nInputText(multiline, label, text.data, text.data.length, width, height, flags, inputData, inputData.allowedChars); + final boolean hasInput = nInputText(multiline, label, text.data, text.data.length, width, height, flags, inputData, inputData.allowedChars); if (inputData.isResized) { inputData.isResized = false; @@ -2502,607 +2502,607 @@ public final class ImGui { return env->NewStringUTF(resizedBuf); */ - public static boolean InputFloat(String label, ImFloat v) { + public static boolean inputFloat(String label, ImFloat v) { return nInputFloat(label, v.data, 0, 0, "%.3f", 0); } - public static boolean InputFloat(String label, ImFloat v, float step) { + public static boolean inputFloat(String label, ImFloat v, float step) { return nInputFloat(label, v.data, step, 0, "%.3f", 0); } - public static boolean InputFloat(String label, ImFloat v, float step, float step_fast) { - return nInputFloat(label, v.data, step, step_fast, "%.3f", 0); + public static boolean inputFloat(String label, ImFloat v, float step, float stepFast) { + return nInputFloat(label, v.data, step, stepFast, "%.3f", 0); } - public static boolean InputFloat(String label, ImFloat v, float step, float step_fast, String format) { - return nInputFloat(label, v.data, step, step_fast, format, 0); + public static boolean inputFloat(String label, ImFloat v, float step, float stepFast, String format) { + return nInputFloat(label, v.data, step, stepFast, format, 0); } - public static boolean InputFloat(String label, ImFloat v, float step, float step_fast, String format, int imGuiInputTextFlags) { - return nInputFloat(label, v.data, step, step_fast, format, imGuiInputTextFlags); + public static boolean inputFloat(String label, ImFloat v, float step, float stepFast, String format, int imGuiInputTextFlags) { + return nInputFloat(label, v.data, step, stepFast, format, imGuiInputTextFlags); } - private static native boolean nInputFloat(String label, float[] v, float step, float step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputFloat(label, &v[0], step, step_fast, format, imGuiInputTextFlags); + private static native boolean nInputFloat(String label, float[] v, float step, float stepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputFloat(label, &v[0], step, stepFast, format, imGuiInputTextFlags); */ - public static native boolean InputFloat2(String label, float[] v); /* + public static native boolean inputFloat2(String label, float[] v); /* return ImGui::InputFloat2(label, v, "%.3f", 0); */ - public static native boolean InputFloat2(String label, float[] v, String format); /* + public static native boolean inputFloat2(String label, float[] v, String format); /* return ImGui::InputFloat2(label, v, format, 0); */ - public static native boolean InputFloat2(String label, float[] v, String format, int imGuiInputTextFlags); /* + public static native boolean inputFloat2(String label, float[] v, String format, int imGuiInputTextFlags); /* return ImGui::InputFloat2(label, v, format, imGuiInputTextFlags); */ - public static native boolean InputFloat3(String label, float[] v); /* + public static native boolean inputFloat3(String label, float[] v); /* return ImGui::InputFloat2(label, v, "%.3f", 0); */ - public static native boolean InputFloat3(String label, float[] v, String format); /* + public static native boolean inputFloat3(String label, float[] v, String format); /* return ImGui::InputFloat2(label, v, format, 0); */ - public static native boolean InputFloat3(String label, float[] v, String format, int imGuiInputTextFlags); /* + public static native boolean inputFloat3(String label, float[] v, String format, int imGuiInputTextFlags); /* return ImGui::InputFloat2(label, v, format, imGuiInputTextFlags); */ - public static native boolean InputFloat4(String label, float[] v); /* + public static native boolean inputFloat4(String label, float[] v); /* return ImGui::InputFloat2(label, v, "%.3f", 0); */ - public static native boolean InputFloat4(String label, float[] v, String format); /* + public static native boolean inputFloat4(String label, float[] v, String format); /* return ImGui::InputFloat2(label, v, format, 0); */ - public static native boolean InputFloat4(String label, float[] v, String format, int imGuiInputTextFlags); /* + public static native boolean inputFloat4(String label, float[] v, String format, int imGuiInputTextFlags); /* return ImGui::InputFloat2(label, v, format, imGuiInputTextFlags); */ - public static boolean InputInt(String label, ImInt v) { + public static boolean inputInt(String label, ImInt v) { return nInputInt(label, v.data, 1, 100, 0); } - public static boolean InputInt(String label, ImInt v, int step) { + public static boolean inputInt(String label, ImInt v, int step) { return nInputInt(label, v.data, step, 100, 0); } - public static boolean InputInt(String label, ImInt v, int step, int step_fast) { - return nInputInt(label, v.data, step, step_fast, 0); + public static boolean inputInt(String label, ImInt v, int step, int stepFast) { + return nInputInt(label, v.data, step, stepFast, 0); } - public static boolean InputInt(String label, ImInt v, int step, int step_fast, int imGuiInputTextFlags) { - return nInputInt(label, v.data, step, step_fast, imGuiInputTextFlags); + public static boolean inputInt(String label, ImInt v, int step, int stepFast, int imGuiInputTextFlags) { + return nInputInt(label, v.data, step, stepFast, imGuiInputTextFlags); } - private static native boolean nInputInt(String label, int[] v, int step, int step_fast, int imGuiInputTextFlags); /* - return ImGui::InputInt(label, &v[0], step, step_fast, imGuiInputTextFlags); + private static native boolean nInputInt(String label, int[] v, int step, int stepFast, int imGuiInputTextFlags); /* + return ImGui::InputInt(label, &v[0], step, stepFast, imGuiInputTextFlags); */ - public static native boolean InputInt2(String label, int[] v); /* + public static native boolean inputInt2(String label, int[] v); /* return ImGui::InputInt2(label, v, 0); */ - public static native boolean InputInt2(String label, int[] v, int imGuiInputTextFlags); /* + public static native boolean inputInt2(String label, int[] v, int imGuiInputTextFlags); /* return ImGui::InputInt2(label, v, imGuiInputTextFlags); */ - public static native boolean InputInt3(String label, int[] v); /* + public static native boolean inputInt3(String label, int[] v); /* return ImGui::InputInt2(label, v, 0); */ - public static native boolean InputInt3(String label, int[] v, int imGuiInputTextFlags); /* + public static native boolean inputInt3(String label, int[] v, int imGuiInputTextFlags); /* return ImGui::InputInt2(label, v, imGuiInputTextFlags); */ - public static native boolean InputInt4(String label, int[] v); /* + public static native boolean inputInt4(String label, int[] v); /* return ImGui::InputInt2(label, v, 0); */ - public static native boolean InputInt4(String label, int[] v, int imGuiInputTextFlags); /* + public static native boolean inputInt4(String label, int[] v, int imGuiInputTextFlags); /* return ImGui::InputInt2(label, v, imGuiInputTextFlags); */ - public static boolean InputDouble(String label, ImDouble v) { + public static boolean inputDouble(String label, ImDouble v) { return nInputDouble(label, v.data, 0, 0, "%.6f", 0); } - public static boolean InputDouble(String label, ImDouble v, double step) { + public static boolean inputDouble(String label, ImDouble v, double step) { return nInputDouble(label, v.data, step, 0, "%.6f", 0); } - public static boolean InputDouble(String label, ImDouble v, double step, double step_fast) { - return nInputDouble(label, v.data, step, step_fast, "%.6f", 0); + public static boolean inputDouble(String label, ImDouble v, double step, double stepFast) { + return nInputDouble(label, v.data, step, stepFast, "%.6f", 0); } - public static boolean InputDouble(String label, ImDouble v, double step, double step_fast, String format) { - return nInputDouble(label, v.data, step, step_fast, format, 0); + public static boolean inputDouble(String label, ImDouble v, double step, double stepFast, String format) { + return nInputDouble(label, v.data, step, stepFast, format, 0); } - public static boolean InputDouble(String label, ImDouble v, double step, double step_fast, String format, int imGuiInputTextFlags) { - return nInputDouble(label, v.data, step, step_fast, format, imGuiInputTextFlags); + public static boolean inputDouble(String label, ImDouble v, double step, double stepFast, String format, int imGuiInputTextFlags) { + return nInputDouble(label, v.data, step, stepFast, format, imGuiInputTextFlags); } - private static native boolean nInputDouble(String label, double[] v, double step, double step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputDouble(label, &v[0], step, step_fast, format, imGuiInputTextFlags); + private static native boolean nInputDouble(String label, double[] v, double step, double stepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputDouble(label, &v[0], step, stepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalar(String label, int data_type, ImInt p_data) { - return nInputScalar(label, data_type, p_data.data); + public static boolean inputScalar(String label, int dataType, ImInt pData) { + return nInputScalar(label, dataType, pData.data); } - private static native boolean nInputScalar(String label, int data_type, int[] p_data); /* - return ImGui::InputScalar(label, data_type, &p_data[0]); + private static native boolean nInputScalar(String label, int dataType, int[] pData); /* + return ImGui::InputScalar(label, dataType, &pData[0]); */ - public static boolean InputScalar(String label, int data_type, ImInt p_data, int p_step) { - return nInputScalar(label, data_type, p_data.data, p_step); + public static boolean inputScalar(String label, int dataType, ImInt pData, int pStep) { + return nInputScalar(label, dataType, pData.data, pStep); } - private static native boolean nInputScalar(String label, int data_type, int[] p_data, int p_step); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step); + private static native boolean nInputScalar(String label, int dataType, int[] pData, int pStep); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep); */ - public static boolean InputScalar(String label, int data_type, ImInt p_data, int p_step, int p_step_fast) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast); + public static boolean inputScalar(String label, int dataType, ImInt pData, int pStep, int pStepFast) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast); } - private static native boolean nInputScalar(String label, int data_type, int[] p_data, int p_step, int p_step_fast); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast); + private static native boolean nInputScalar(String label, int dataType, int[] pData, int pStep, int pStepFast); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast); */ - public static boolean InputScalar(String label, int data_type, ImInt p_data, int p_step, int p_step_fast, String format) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format); + public static boolean inputScalar(String label, int dataType, ImInt pData, int pStep, int pStepFast, String format) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format); } - private static native boolean nInputScalar(String label, int data_type, int[] p_data, int p_step, int p_step_fast, String format); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format); + private static native boolean nInputScalar(String label, int dataType, int[] pData, int pStep, int pStepFast, String format); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format); */ - public static boolean InputScalar(String label, int data_type, ImInt p_data, int p_step, int p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalar(String label, int dataType, ImInt pData, int pStep, int pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalar(String label, int data_type, int[] p_data, int p_step, int p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalar(String label, int dataType, int[] pData, int pStep, int pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalar(String label, int data_type, ImFloat p_data) { - return nInputScalar(label, data_type, p_data.data); + public static boolean inputScalar(String label, int dataType, ImFloat pData) { + return nInputScalar(label, dataType, pData.data); } - private static native boolean nInputScalar(String label, int data_type, float[] p_data); /* - return ImGui::InputScalar(label, data_type, &p_data[0]); + private static native boolean nInputScalar(String label, int dataType, float[] pData); /* + return ImGui::InputScalar(label, dataType, &pData[0]); */ - public static boolean InputScalar(String label, int data_type, ImFloat p_data, float p_step) { - return nInputScalar(label, data_type, p_data.data, p_step); + public static boolean inputScalar(String label, int dataType, ImFloat pData, float pStep) { + return nInputScalar(label, dataType, pData.data, pStep); } - private static native boolean nInputScalar(String label, int data_type, float[] p_data, float p_step); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step); + private static native boolean nInputScalar(String label, int dataType, float[] pData, float pStep); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep); */ - public static boolean InputScalar(String label, int data_type, ImFloat p_data, float p_step, float p_step_fast) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast); + public static boolean inputScalar(String label, int dataType, ImFloat pData, float pStep, float pStepFast) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast); } - private static native boolean nInputScalar(String label, int data_type, float[] p_data, float p_step, float p_step_fast); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast); + private static native boolean nInputScalar(String label, int dataType, float[] pData, float pStep, float pStepFast); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast); */ - public static boolean InputScalar(String label, int data_type, ImFloat p_data, float p_step, float p_step_fast, String format) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format); + public static boolean inputScalar(String label, int dataType, ImFloat pData, float pStep, float pStepFast, String format) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format); } - private static native boolean nInputScalar(String label, int data_type, float[] p_data, float p_step, float p_step_fast, String format); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format); + private static native boolean nInputScalar(String label, int dataType, float[] pData, float pStep, float pStepFast, String format); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format); */ - public static boolean InputScalar(String label, int data_type, ImFloat p_data, float p_step, float p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalar(String label, int dataType, ImFloat pData, float pStep, float pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalar(String label, int data_type, float[] p_data, float p_step, float p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalar(String label, int dataType, float[] pData, float pStep, float pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalar(String label, int data_type, ImLong p_data) { - return nInputScalar(label, data_type, p_data.data); + public static boolean inputScalar(String label, int dataType, ImLong pData) { + return nInputScalar(label, dataType, pData.data); } - private static native boolean nInputScalar(String label, int data_type, long[] p_data); /* - return ImGui::InputScalar(label, data_type, &p_data[0]); + private static native boolean nInputScalar(String label, int dataType, long[] pData); /* + return ImGui::InputScalar(label, dataType, &pData[0]); */ - public static boolean InputScalar(String label, int data_type, ImLong p_data, long p_step) { - return nInputScalar(label, data_type, p_data.data, p_step); + public static boolean inputScalar(String label, int dataType, ImLong pData, long pStep) { + return nInputScalar(label, dataType, pData.data, pStep); } - private static native boolean nInputScalar(String label, int data_type, long[] p_data, long p_step); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step); + private static native boolean nInputScalar(String label, int dataType, long[] pData, long pStep); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep); */ - public static boolean InputScalar(String label, int data_type, ImLong p_data, long p_step, long p_step_fast) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast); + public static boolean inputScalar(String label, int dataType, ImLong pData, long pStep, long pStepFast) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast); } - private static native boolean nInputScalar(String label, int data_type, long[] p_data, long p_step, long p_step_fast); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast); + private static native boolean nInputScalar(String label, int dataType, long[] pData, long pStep, long pStepFast); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast); */ - public static boolean InputScalar(String label, int data_type, ImLong p_data, long p_step, long p_step_fast, String format) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format); + public static boolean inputScalar(String label, int dataType, ImLong pData, long pStep, long pStepFast, String format) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format); } - private static native boolean nInputScalar(String label, int data_type, long[] p_data, long p_step, long p_step_fast, String format); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format); + private static native boolean nInputScalar(String label, int dataType, long[] pData, long pStep, long pStepFast, String format); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format); */ - public static boolean InputScalar(String label, int data_type, ImLong p_data, long p_step, long p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalar(String label, int dataType, ImLong pData, long pStep, long pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalar(String label, int data_type, long[] p_data, long p_step, long p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalar(String label, int dataType, long[] pData, long pStep, long pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalar(String label, int data_type, ImDouble p_data) { - return nInputScalar(label, data_type, p_data.data); + public static boolean inputScalar(String label, int dataType, ImDouble pData) { + return nInputScalar(label, dataType, pData.data); } - private static native boolean nInputScalar(String label, int data_type, double[] p_data); /* - return ImGui::InputScalar(label, data_type, &p_data[0]); + private static native boolean nInputScalar(String label, int dataType, double[] pData); /* + return ImGui::InputScalar(label, dataType, &pData[0]); */ - public static boolean InputScalar(String label, int data_type, ImDouble p_data, double p_step) { - return nInputScalar(label, data_type, p_data.data, p_step); + public static boolean inputScalar(String label, int dataType, ImDouble pData, double pStep) { + return nInputScalar(label, dataType, pData.data, pStep); } - private static native boolean nInputScalar(String label, int data_type, double[] p_data, double p_step); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step); + private static native boolean nInputScalar(String label, int dataType, double[] pData, double pStep); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep); */ - public static boolean InputScalar(String label, int data_type, ImDouble p_data, double p_step, double p_step_fast) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast); + public static boolean inputScalar(String label, int dataType, ImDouble pData, double pStep, double pStepFast) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast); } - private static native boolean nInputScalar(String label, int data_type, double[] p_data, double p_step, double p_step_fast); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast); + private static native boolean nInputScalar(String label, int dataType, double[] pData, double pStep, double pStepFast); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast); */ - public static boolean InputScalar(String label, int data_type, ImDouble p_data, double p_step, double p_step_fast, String format) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format); + public static boolean inputScalar(String label, int dataType, ImDouble pData, double pStep, double pStepFast, String format) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format); } - private static native boolean nInputScalar(String label, int data_type, double[] p_data, double p_step, double p_step_fast, String format); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format); + private static native boolean nInputScalar(String label, int dataType, double[] pData, double pStep, double pStepFast, String format); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format); */ - public static boolean InputScalar(String label, int data_type, ImDouble p_data, double p_step, double p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalar(String label, int dataType, ImDouble pData, double pStep, double pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalar(String label, int data_type, double[] p_data, double p_step, double p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalar(String label, int dataType, double[] pData, double pStep, double pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalar(String label, int data_type, ImShort p_data) { - return nInputScalar(label, data_type, p_data.data); + public static boolean inputScalar(String label, int dataType, ImShort pData) { + return nInputScalar(label, dataType, pData.data); } - private static native boolean nInputScalar(String label, int data_type, short[] p_data); /* - return ImGui::InputScalar(label, data_type, &p_data[0]); + private static native boolean nInputScalar(String label, int dataType, short[] pData); /* + return ImGui::InputScalar(label, dataType, &pData[0]); */ - public static boolean InputScalar(String label, int data_type, ImShort p_data, short p_step) { - return nInputScalar(label, data_type, p_data.data, p_step); + public static boolean inputScalar(String label, int dataType, ImShort pData, short pStep) { + return nInputScalar(label, dataType, pData.data, pStep); } - private static native boolean nInputScalar(String label, int data_type, short[] p_data, short p_step); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step); + private static native boolean nInputScalar(String label, int dataType, short[] pData, short pStep); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep); */ - public static boolean InputScalar(String label, int data_type, ImShort p_data, short p_step, short p_step_fast) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast); + public static boolean inputScalar(String label, int dataType, ImShort pData, short pStep, short pStepFast) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast); } - private static native boolean nInputScalar(String label, int data_type, short[] p_data, short p_step, short p_step_fast); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast); + private static native boolean nInputScalar(String label, int dataType, short[] pData, short pStep, short pStepFast); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast); */ - public static boolean InputScalar(String label, int data_type, ImShort p_data, short p_step, short p_step_fast, String format) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format); + public static boolean inputScalar(String label, int dataType, ImShort pData, short pStep, short pStepFast, String format) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format); } - private static native boolean nInputScalar(String label, int data_type, short[] p_data, short p_step, short p_step_fast, String format); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format); + private static native boolean nInputScalar(String label, int dataType, short[] pData, short pStep, short pStepFast, String format); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format); */ - public static boolean InputScalar(String label, int data_type, ImShort p_data, short p_step, short p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalar(label, data_type, p_data.data, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalar(String label, int dataType, ImShort pData, short pStep, short pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalar(label, dataType, pData.data, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalar(String label, int data_type, short[] p_data, short p_step, short p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalar(label, data_type, &p_data[0], &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalar(String label, int dataType, short[] pData, short pStep, short pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalar(label, dataType, &pData[0], &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalarN(String label, int data_type, ImInt p_data, int components) { - return nInputScalarN(label, data_type, p_data.data, components); + public static boolean inputScalarN(String label, int dataType, ImInt pData, int components) { + return nInputScalarN(label, dataType, pData.data, components); } - private static native boolean nInputScalarN(String label, int data_type, int[] p_data, int components); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components); + private static native boolean nInputScalarN(String label, int dataType, int[] pData, int components); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components); */ - public static boolean InputScalarN(String label, int data_type, ImInt p_data, int components, int p_step) { - return nInputScalarN(label, data_type, p_data.data, components, p_step); + public static boolean inputScalarN(String label, int dataType, ImInt pData, int components, int pStep) { + return nInputScalarN(label, dataType, pData.data, components, pStep); } - private static native boolean nInputScalarN(String label, int data_type, int[] p_data, int components, int p_step); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step); + private static native boolean nInputScalarN(String label, int dataType, int[] pData, int components, int pStep); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); */ - public static boolean InputScalarN(String label, int data_type, ImInt p_data, int components, int p_step, int p_step_fast) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast); + public static boolean inputScalarN(String label, int dataType, ImInt pData, int components, int pStep, int pStepFast) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast); } - private static native boolean nInputScalarN(String label, int data_type, int[] p_data, int components, int p_step, int p_step_fast); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast); + private static native boolean nInputScalarN(String label, int dataType, int[] pData, int components, int pStep, int pStepFast); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); */ - public static boolean InputScalarN(String label, int data_type, ImInt p_data, int components, int p_step, int p_step_fast, String format) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format); + public static boolean inputScalarN(String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, String format) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format); } - private static native boolean nInputScalarN(String label, int data_type, int[] p_data, int components, int p_step, int p_step_fast, String format); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format); + private static native boolean nInputScalarN(String label, int dataType, int[] pData, int components, int pStep, int pStepFast, String format); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); */ - public static boolean InputScalarN(String label, int data_type, ImInt p_data, int components, int p_step, int p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalarN(String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalarN(String label, int data_type, int[] p_data, int components, int p_step, int p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalarN(String label, int dataType, int[] pData, int components, int pStep, int pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalarN(String label, int data_type, ImFloat p_data, int components) { - return nInputScalarN(label, data_type, p_data.data, components); + public static boolean inputScalarN(String label, int dataType, ImFloat pData, int components) { + return nInputScalarN(label, dataType, pData.data, components); } - private static native boolean nInputScalarN(String label, int data_type, float[] p_data, int components); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components); + private static native boolean nInputScalarN(String label, int dataType, float[] pData, int components); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components); */ - public static boolean InputScalarN(String label, int data_type, ImFloat p_data, int components, float p_step) { - return nInputScalarN(label, data_type, p_data.data, components, p_step); + public static boolean inputScalarN(String label, int dataType, ImFloat pData, int components, float pStep) { + return nInputScalarN(label, dataType, pData.data, components, pStep); } - private static native boolean nInputScalarN(String label, int data_type, float[] p_data, int components, float p_step); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step); + private static native boolean nInputScalarN(String label, int dataType, float[] pData, int components, float pStep); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); */ - public static boolean InputScalarN(String label, int data_type, ImFloat p_data, int components, float p_step, float p_step_fast) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast); + public static boolean inputScalarN(String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast); } - private static native boolean nInputScalarN(String label, int data_type, float[] p_data, int components, float p_step, float p_step_fast); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast); + private static native boolean nInputScalarN(String label, int dataType, float[] pData, int components, float pStep, float pStepFast); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); */ - public static boolean InputScalarN(String label, int data_type, ImFloat p_data, int components, float p_step, float p_step_fast, String format) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format); + public static boolean inputScalarN(String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, String format) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format); } - private static native boolean nInputScalarN(String label, int data_type, float[] p_data, int components, float p_step, float p_step_fast, String format); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format); + private static native boolean nInputScalarN(String label, int dataType, float[] pData, int components, float pStep, float pStepFast, String format); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); */ - public static boolean InputScalarN(String label, int data_type, ImFloat p_data, int components, float p_step, float p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalarN(String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalarN(String label, int data_type, float[] p_data, int components, float p_step, float p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalarN(String label, int dataType, float[] pData, int components, float pStep, float pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalarN(String label, int data_type, ImLong p_data, int components) { - return nInputScalarN(label, data_type, p_data.data, components); + public static boolean inputScalarN(String label, int dataType, ImLong pData, int components) { + return nInputScalarN(label, dataType, pData.data, components); } - private static native boolean nInputScalarN(String label, int data_type, long[] p_data, int components); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components); + private static native boolean nInputScalarN(String label, int dataType, long[] pData, int components); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components); */ - public static boolean InputScalarN(String label, int data_type, ImLong p_data, int components, long p_step) { - return nInputScalarN(label, data_type, p_data.data, components, p_step); + public static boolean inputScalarN(String label, int dataType, ImLong pData, int components, long pStep) { + return nInputScalarN(label, dataType, pData.data, components, pStep); } - private static native boolean nInputScalarN(String label, int data_type, long[] p_data, int components, long p_step); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step); + private static native boolean nInputScalarN(String label, int dataType, long[] pData, int components, long pStep); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); */ - public static boolean InputScalarN(String label, int data_type, ImLong p_data, int components, long p_step, long p_step_fast) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast); + public static boolean inputScalarN(String label, int dataType, ImLong pData, int components, long pStep, long pStepFast) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast); } - private static native boolean nInputScalarN(String label, int data_type, long[] p_data, int components, long p_step, long p_step_fast); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast); + private static native boolean nInputScalarN(String label, int dataType, long[] pData, int components, long pStep, long pStepFast); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); */ - public static boolean InputScalarN(String label, int data_type, ImLong p_data, int components, long p_step, long p_step_fast, String format) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format); + public static boolean inputScalarN(String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, String format) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format); } - private static native boolean nInputScalarN(String label, int data_type, long[] p_data, int components, long p_step, long p_step_fast, String format); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format); + private static native boolean nInputScalarN(String label, int dataType, long[] pData, int components, long pStep, long pStepFast, String format); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); */ - public static boolean InputScalarN(String label, int data_type, ImLong p_data, int components, long p_step, long p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalarN(String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalarN(String label, int data_type, long[] p_data, int components, long p_step, long p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalarN(String label, int dataType, long[] pData, int components, long pStep, long pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalarN(String label, int data_type, ImDouble p_data, int components) { - return nInputScalarN(label, data_type, p_data.data, components); + public static boolean inputScalarN(String label, int dataType, ImDouble pData, int components) { + return nInputScalarN(label, dataType, pData.data, components); } - private static native boolean nInputScalarN(String label, int data_type, double[] p_data, int components); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components); + private static native boolean nInputScalarN(String label, int dataType, double[] pData, int components); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components); */ - public static boolean InputScalarN(String label, int data_type, ImDouble p_data, int components, double p_step) { - return nInputScalarN(label, data_type, p_data.data, components, p_step); + public static boolean inputScalarN(String label, int dataType, ImDouble pData, int components, double pStep) { + return nInputScalarN(label, dataType, pData.data, components, pStep); } - private static native boolean nInputScalarN(String label, int data_type, double[] p_data, int components, double p_step); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step); + private static native boolean nInputScalarN(String label, int dataType, double[] pData, int components, double pStep); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); */ - public static boolean InputScalarN(String label, int data_type, ImDouble p_data, int components, double p_step, double p_step_fast) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast); + public static boolean inputScalarN(String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast); } - private static native boolean nInputScalarN(String label, int data_type, double[] p_data, int components, double p_step, double p_step_fast); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast); + private static native boolean nInputScalarN(String label, int dataType, double[] pData, int components, double pStep, double pStepFast); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); */ - public static boolean InputScalarN(String label, int data_type, ImDouble p_data, int components, double p_step, double p_step_fast, String format) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format); + public static boolean inputScalarN(String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, String format) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format); } - private static native boolean nInputScalarN(String label, int data_type, double[] p_data, int components, double p_step, double p_step_fast, String format); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format); + private static native boolean nInputScalarN(String label, int dataType, double[] pData, int components, double pStep, double pStepFast, String format); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); */ - public static boolean InputScalarN(String label, int data_type, ImDouble p_data, int components, double p_step, double p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalarN(String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalarN(String label, int data_type, double[] p_data, int components, double p_step, double p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalarN(String label, int dataType, double[] pData, int components, double pStep, double pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiInputTextFlags); */ - public static boolean InputScalarN(String label, int data_type, ImShort p_data, int components) { - return nInputScalarN(label, data_type, p_data.data, components); + public static boolean inputScalarN(String label, int dataType, ImShort pData, int components) { + return nInputScalarN(label, dataType, pData.data, components); } - private static native boolean nInputScalarN(String label, int data_type, short[] p_data, int components); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components); + private static native boolean nInputScalarN(String label, int dataType, short[] pData, int components); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components); */ - public static boolean InputScalarN(String label, int data_type, ImShort p_data, int components, short p_step) { - return nInputScalarN(label, data_type, p_data.data, components, p_step); + public static boolean inputScalarN(String label, int dataType, ImShort pData, int components, short pStep) { + return nInputScalarN(label, dataType, pData.data, components, pStep); } - private static native boolean nInputScalarN(String label, int data_type, short[] p_data, int components, short p_step); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step); + private static native boolean nInputScalarN(String label, int dataType, short[] pData, int components, short pStep); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); */ - public static boolean InputScalarN(String label, int data_type, ImShort p_data, int components, short p_step, short p_step_fast) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast); + public static boolean inputScalarN(String label, int dataType, ImShort pData, int components, short pStep, short pStepFast) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast); } - private static native boolean nInputScalarN(String label, int data_type, short[] p_data, int components, short p_step, short p_step_fast); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast); + private static native boolean nInputScalarN(String label, int dataType, short[] pData, int components, short pStep, short pStepFast); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); */ - public static boolean InputScalarN(String label, int data_type, ImShort p_data, int components, short p_step, short p_step_fast, String format) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format); + public static boolean inputScalarN(String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, String format) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format); } - private static native boolean nInputScalarN(String label, int data_type, short[] p_data, int components, short p_step, short p_step_fast, String format); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format); + private static native boolean nInputScalarN(String label, int dataType, short[] pData, int components, short pStep, short pStepFast, String format); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); */ - public static boolean InputScalarN(String label, int data_type, ImShort p_data, int components, short p_step, short p_step_fast, String format, int imGuiInputTextFlags) { - return nInputScalarN(label, data_type, p_data.data, components, p_step, p_step_fast, format, imGuiInputTextFlags); + public static boolean inputScalarN(String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, String format, int imGuiInputTextFlags) { + return nInputScalarN(label, dataType, pData.data, components, pStep, pStepFast, format, imGuiInputTextFlags); } - private static native boolean nInputScalarN(String label, int data_type, short[] p_data, int components, short p_step, short p_step_fast, String format, int imGuiInputTextFlags); /* - return ImGui::InputScalarN(label, data_type, &p_data[0], components, &p_step, &p_step_fast, format, imGuiInputTextFlags); + private static native boolean nInputScalarN(String label, int dataType, short[] pData, int components, short pStep, short pStepFast, String format, int imGuiInputTextFlags); /* + return ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiInputTextFlags); */ // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little colored preview square that can be left-clicked to open a picker, and right-clicked to open an option menu.) // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x - public static native boolean ColorEdit3(String label, float[] col); /* + public static native boolean colorEdit3(String label, float[] col); /* return ImGui::ColorEdit3(label, col); */ - public static native boolean ColorEdit3(String label, float[] col, int imGuiColorEditFlags); /* + public static native boolean colorEdit3(String label, float[] col, int imGuiColorEditFlags); /* return ImGui::ColorEdit3(label, col, imGuiColorEditFlags); */ - public static native boolean ColorEdit4(String label, float[] col); /* + public static native boolean colorEdit4(String label, float[] col); /* return ImGui::ColorEdit4(label, col); */ - public static native boolean ColorEdit4(String label, float[] col, int imGuiColorEditFlags); /* + public static native boolean colorEdit4(String label, float[] col, int imGuiColorEditFlags); /* return ImGui::ColorEdit4(label, col, imGuiColorEditFlags); */ - public static native boolean ColorPicker3(String label, float[] col); /* + public static native boolean colorPicker3(String label, float[] col); /* return ImGui::ColorPicker3(label, col); */ - public static native boolean ColorPicker3(String label, float[] col, int imGuiColorEditFlags); /* + public static native boolean colorPicker3(String label, float[] col, int imGuiColorEditFlags); /* return ImGui::ColorPicker3(label, col, imGuiColorEditFlags); */ - public static native boolean ColorPicker4(String label, float[] col); /* + public static native boolean colorPicker4(String label, float[] col); /* return ImGui::ColorPicker4(label, col); */ - public static native boolean ColorPicker4(String label, float[] col, int imGuiColorEditFlags); /* + public static native boolean colorPicker4(String label, float[] col, int imGuiColorEditFlags); /* return ImGui::ColorPicker4(label, col, imGuiColorEditFlags); */ - public static native boolean ColorPicker4(String label, float[] col, int imGuiColorEditFlags, float ref_col); /* - return ImGui::ColorPicker4(label, col, imGuiColorEditFlags, &ref_col); + public static native boolean colorPicker4(String label, float[] col, int imGuiColorEditFlags, float refCol); /* + return ImGui::ColorPicker4(label, col, imGuiColorEditFlags, &refCol); */ /** * Display a colored square/button, hover for details, return true when pressed. */ - public static native boolean ColorButton(String desc_id, float[] col); /* - return ImGui::ColorButton(desc_id, ImVec4(col[0], col[1], col[2], col[3])); + public static native boolean colorButton(String descId, float[] col); /* + return ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3])); */ /** * Display a colored square/button, hover for details, return true when pressed. */ - public static native boolean ColorButton(String desc_id, float[] col, int imGuiColorEditFlags); /* - return ImGui::ColorButton(desc_id, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags); + public static native boolean colorButton(String descId, float[] col, int imGuiColorEditFlags); /* + return ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags); */ /** * Display a colored square/button, hover for details, return true when pressed. */ - public static native boolean ColorButton(String desc_id, float[] col, int imGuiColorEditFlags, float width, float height); /* - return ImGui::ColorButton(desc_id, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags, ImVec2(width, height)); + public static native boolean colorButton(String descId, float[] col, int imGuiColorEditFlags, float width, float height); /* + return ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags, ImVec2(width, height)); */ /** * Initialize current options (generally on application startup) if you want to select a default format, * picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. */ - public static native void SetColorEditOptions(int imGuiColorEditFlags); /* + public static native void setColorEditOptions(int imGuiColorEditFlags); /* ImGui::SetColorEditOptions(imGuiColorEditFlags); */ // Widgets: Trees // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. - public static native boolean TreeNode(String label); /* + public static native boolean treeNode(String label); /* return ImGui::TreeNode(label); */ @@ -3110,138 +3110,138 @@ public final class ImGui { * Helper variation to easily decorelate the id from the displayed string. * Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). */ - public static native boolean TreeNode(String str_id, String label); /* - return ImGui::TreeNode(str_id, label); + public static native boolean treeNode(String strId, String label); /* + return ImGui::TreeNode(strId, label); */ - public static native boolean TreeNode(long ptr_id, String label); /* - return ImGui::TreeNode((void*)ptr_id, label); + public static native boolean treeNode(long ptrId, String label); /* + return ImGui::TreeNode((void*)ptrId, label); */ - public static native boolean TreeNodeEx(String label); /* + public static native boolean treeNodeEx(String label); /* return ImGui::TreeNodeEx(label); */ - public static native boolean TreeNodeEx(String label, int imGuiTreeNodeFlags); /* + public static native boolean treeNodeEx(String label, int imGuiTreeNodeFlags); /* return ImGui::TreeNodeEx(label, imGuiTreeNodeFlags); */ - public static native boolean TreeNodeEx(String str_id, int imGuiTreeNodeFlags, String label); /* - return ImGui::TreeNodeEx(str_id, imGuiTreeNodeFlags, label); + public static native boolean treeNodeEx(String strId, int imGuiTreeNodeFlags, String label); /* + return ImGui::TreeNodeEx(strId, imGuiTreeNodeFlags, label); */ - public static native boolean TreeNodeEx(int ptr_id, int imGuiTreeNodeFlags, String label); /* - return ImGui::TreeNodeEx((void*)(intptr_t)ptr_id, imGuiTreeNodeFlags, label); + public static native boolean treeNodeEx(int ptrId, int imGuiTreeNodeFlags, String label); /* + return ImGui::TreeNodeEx((void*)(intptr_t)ptrId, imGuiTreeNodeFlags, label); */ /** * ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. */ - public static native void TreePush(); /* + public static native void treePush(); /* ImGui::TreePush(); */ - public static native void TreePush(String str_id); /* - ImGui::TreePush(str_id); + public static native void treePush(String strId); /* + ImGui::TreePush(strId); */ - public static native void TreePush(long ptr_id); /* - ImGui::TreePush((void*)(intptr_t)ptr_id); + public static native void treePush(long ptrId); /* + ImGui::TreePush((void*)(intptr_t)ptrId); */ /** * ~ Unindent()+PopId() */ - public static native void TreePop(); /* + public static native void treePop(); /* ImGui::TreePop(); */ - public static native void TreeAdvanceToLabelPos(); /* + public static native void treeAdvanceToLabelPos(); /* ImGui::TreeAdvanceToLabelPos(); */ /** * Horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode */ - public static native float GetTreeNodeToLabelSpacing(); /* + public static native float getTreeNodeToLabelSpacing(); /* return ImGui::GetTreeNodeToLabelSpacing(); */ /** * If returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). */ - public static native boolean CollapsingHeader(String label); /* + public static native boolean collapsingHeader(String label); /* return ImGui::CollapsingHeader(label); */ /** * If returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). */ - public static native boolean CollapsingHeader(String label, int imGuiTreeNodeFlags); /* + public static native boolean collapsingHeader(String label, int imGuiTreeNodeFlags); /* return ImGui::CollapsingHeader(label, imGuiTreeNodeFlags); */ /** - * When 'p_open' isn't NULL, display an additional small close button on upper right of the header + * When 'pOpen' isn't NULL, display an additional small close button on upper right of the header */ - public static boolean CollapsingHeader(String label, ImBool p_open) { - return nCollapsingHeader(label, p_open.data, 0); + public static boolean collapsingHeader(String label, ImBool pOpen) { + return nCollapsingHeader(label, pOpen.data, 0); } /** - * When 'p_open' isn't NULL, display an additional small close button on upper right of the header + * When 'pOpen' isn't NULL, display an additional small close button on upper right of the header */ - public static boolean CollapsingHeader(String label, ImBool p_open, int imGuiTreeNodeFlags) { - return nCollapsingHeader(label, p_open.data, imGuiTreeNodeFlags); + public static boolean collapsingHeader(String label, ImBool pOpen, int imGuiTreeNodeFlags) { + return nCollapsingHeader(label, pOpen.data, imGuiTreeNodeFlags); } - private static native boolean nCollapsingHeader(String label, boolean[] p_open, int imGuiTreeNodeFlags); /* - return ImGui::CollapsingHeader(label, p_open, imGuiTreeNodeFlags); + private static native boolean nCollapsingHeader(String label, boolean[] pOpen, int imGuiTreeNodeFlags); /* + return ImGui::CollapsingHeader(label, pOpen, imGuiTreeNodeFlags); */ /** * Set next TreeNode/CollapsingHeader open state. */ - public static native void SetNextItemOpen(boolean is_open); /* - ImGui::SetNextItemOpen(is_open); + public static native void setNextItemOpen(boolean isOpen); /* + ImGui::SetNextItemOpen(isOpen); */ /** * Set next TreeNode/CollapsingHeader open state. */ - public static native void SetNextItemOpen(boolean is_open, int cond); /* - ImGui::SetNextItemOpen(is_open, cond); + public static native void setNextItemOpen(boolean isOpen, int cond); /* + ImGui::SetNextItemOpen(isOpen, cond); */ // Widgets: Selectables // - A selectable highlights when hovered, and can display another color when selected. // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. - public static native boolean Selectable(String label); /* + public static native boolean selectable(String label); /* return ImGui::Selectable(label); */ - public static native boolean Selectable(String label, boolean selected); /* + public static native boolean selectable(String label, boolean selected); /* return ImGui::Selectable(label, selected); */ - public static native boolean Selectable(String label, boolean selected, int imGuiSelectableFlags); /* + public static native boolean selectable(String label, boolean selected, int imGuiSelectableFlags); /* return ImGui::Selectable(label, selected, imGuiSelectableFlags); */ - public static native boolean Selectable(String label, boolean selected, int imGuiSelectableFlags, float sizeX, float sizeY); /* + public static native boolean selectable(String label, boolean selected, int imGuiSelectableFlags, float sizeX, float sizeY); /* return ImGui::Selectable(label, selected, imGuiSelectableFlags, ImVec2(sizeX, sizeY)); */ - public static boolean Selectable(String label, ImBool selected) { + public static boolean selectable(String label, ImBool selected) { return nSelectable(label, selected.data, 0, 0, 0); } - public static boolean Selectable(String label, ImBool selected, int imGuiSelectableFlags) { + public static boolean selectable(String label, ImBool selected, int imGuiSelectableFlags) { return nSelectable(label, selected.data, imGuiSelectableFlags, 0, 0); } - public static boolean Selectable(String label, ImBool selected, int imGuiSelectableFlags, float sizeX, float sizeY) { + public static boolean selectable(String label, ImBool selected, int imGuiSelectableFlags, float sizeX, float sizeY) { return nSelectable(label, selected.data, imGuiSelectableFlags, sizeX, sizeY); } @@ -3252,31 +3252,31 @@ public final class ImGui { // Widgets: List Boxes // - FIXME: To be consistent with all the newer API, ListBoxHeader/ListBoxFooter should in reality be called BeginListBox/EndListBox. Will rename them. - public static void ListBox(String label, ImInt current_item, String[] items, int items_count) { - nListBox(label, current_item.data, items, items_count, -1); + public static void listBox(String label, ImInt currentItem, String[] items, int itemsCount) { + nListBox(label, currentItem.data, items, itemsCount, -1); } - public static void ListBox(String label, ImInt current_item, String[] items, int items_count, int height_in_items) { - nListBox(label, current_item.data, items, items_count, height_in_items); + public static void listBox(String label, ImInt currentItem, String[] items, int itemsCount, int heightInItems) { + nListBox(label, currentItem.data, items, itemsCount, heightInItems); } - private static native boolean nListBox(String label, int[] current_item, String [] items, int items_count, int height_in_items); /* - const char* listbox_items[items_count]; + private static native boolean nListBox(String label, int[] currentItem, String[] items, int itemsCount, int heightInItems); /* + const char* listbox_items[itemsCount]; - for(int i = 0; i < items_count; i++) { + for(int i = 0; i < itemsCount; i++) { jstring string = (jstring)env->GetObjectArrayElement(items, i); const char *rawString = env->GetStringUTFChars(string, 0); listbox_items[i] = rawString; } - return ImGui::ListBox(label, ¤t_item[0], listbox_items, items_count, height_in_items); + return ImGui::ListBox(label, ¤tItem[0], listbox_items, itemsCount, heightInItems); */ /** * Use if you want to reimplement ListBox() will custom data or interactions. * If the function return true, you can output elements then call ListBoxFooter() afterwards. */ - public static native boolean ListBoxHeader(String label); /* + public static native boolean listBoxHeader(String label); /* return ImGui::ListBoxHeader(label); */ @@ -3284,104 +3284,104 @@ public final class ImGui { * Use if you want to reimplement ListBox() will custom data or interactions. * If the function return true, you can output elements then call ListBoxFooter() afterwards. */ - public static native boolean ListBoxHeader(String label, float sizeX, float sizeY); /* + public static native boolean listBoxHeader(String label, float sizeX, float sizeY); /* return ImGui::ListBoxHeader(label, ImVec2(sizeX, sizeY)); */ - public static native boolean ListBoxHeader(String label, int items_count); /* - return ImGui::ListBoxHeader(label, items_count); + public static native boolean listBoxHeader(String label, int itemsCount); /* + return ImGui::ListBoxHeader(label, itemsCount); */ - public static native boolean ListBoxHeader(String label, int items_count, int height_in_items); /* - return ImGui::ListBoxHeader(label, items_count, height_in_items); + public static native boolean listBoxHeader(String label, int itemsCount, int heightInItems); /* + return ImGui::ListBoxHeader(label, itemsCount, heightInItems); */ /** * Terminate the scrolling region. Only call ListBoxFooter() if ListBoxHeader() returned true! */ - public static native void ListBoxFooter(); /* + public static native void listBoxFooter(); /* ImGui::ListBoxFooter(); */ // Widgets: Data Plotting - public static native void PlotLines(String label, float[] values, int values_count); /* - ImGui::PlotLines(label, &values[0], values_count); + public static native void plotLines(String label, float[] values, int valuesCount); /* + ImGui::PlotLines(label, &values[0], valuesCount); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset, String overlay_text); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset, overlay_text); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset, overlay_text, scale_min); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max, float graph_width, float graph_height); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max, ImVec2(graph_width, graph_height)); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(graphWidth, graphHeight)); */ - public static native void PlotLines(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max, float graph_width, float graph_height, int stride); /* - ImGui::PlotLines(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max, ImVec2(graph_width, graph_height), stride); + public static native void plotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride); /* + ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(graphWidth, graphHeight), stride); */ - public static native void PlotHistogram(String label, float[] values, int values_count); /* - ImGui::PlotHistogram(label, &values[0], values_count); + public static native void plotHistogram(String label, float[] values, int valuesCount); /* + ImGui::PlotHistogram(label, &values[0], valuesCount); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset, String overlay_text); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset, overlay_text); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset, overlay_text, scale_min); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max, float graph_width, float graph_height); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max, ImVec2(graph_width, graph_height)); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(graphWidth, graphHeight)); */ - public static native void PlotHistogram(String label, float[] values, int values_count, int values_offset, String overlay_text, float scale_min, float scale_max, float graph_width, float graph_height, int stride); /* - ImGui::PlotHistogram(label, &values[0], values_count, values_offset, overlay_text, scale_min, scale_max, ImVec2(graph_width, graph_height), stride); + public static native void plotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride); /* + ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(graphWidth, graphHeight), stride); */ // Widgets: Value() Helpers. // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) - public static native void Value(String prefix, boolean b); /* + public static native void value(String prefix, boolean b); /* ImGui::Value(prefix, b); */ - public static native void Value(String prefix, int v); /* + public static native void value(String prefix, int v); /* ImGui::Value(prefix, (int)v); */ - public static native void Value(String prefix, long v); /* + public static native void value(String prefix, long v); /* ImGui::Value(prefix, (unsigned int)v); */ - public static native void Value(String prefix, float f); /* + public static native void value(String prefix, float f); /* ImGui::Value(prefix, f); */ - public static native void Value(String prefix, float f, String float_format); /* - ImGui::Value(prefix, f, float_format); + public static native void value(String prefix, float f, String floatFormat); /* + ImGui::Value(prefix, f, floatFormat); */ // Widgets: Menus @@ -3391,99 +3391,99 @@ public final class ImGui { /** * Append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). */ - public static native boolean BeginMenuBar(); /* + public static native boolean beginMenuBar(); /* return ImGui::BeginMenuBar(); */ /** * Only call EndMenuBar() if BeginMenuBar() returns true! */ - public static native void EndMenuBar(); /* + public static native void endMenuBar(); /* ImGui::EndMenuBar(); */ /** * Create and append to a full screen menu-bar. */ - public static native boolean BeginMainMenuBar(); /* + public static native boolean beginMainMenuBar(); /* return ImGui::BeginMainMenuBar(); */ /** * Only call EndMainMenuBar() if BeginMainMenuBar() returns true! */ - public static native void EndMainMenuBar(); /* + public static native void endMainMenuBar(); /* ImGui::EndMainMenuBar(); */ /** * Create a sub-menu entry. only call EndMenu() if this returns true! */ - public static native boolean BeginMenu(String label); /* + public static native boolean beginMenu(String label); /* return ImGui::BeginMenu(label); */ /** * Create a sub-menu entry. only call EndMenu() if this returns true! */ - public static native boolean BeginMenu(String label, boolean enabled); /* + public static native boolean beginMenu(String label, boolean enabled); /* return ImGui::BeginMenu(label, enabled); */ /** * Only call EndMenu() if BeginMenu() returns true! */ - public static native void EndMenu(); /* + public static native void endMenu(); /* ImGui::EndMenu(); */ /** * Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment */ - public static native boolean MenuItem(String label); /* + public static native boolean menuItem(String label); /* return ImGui::MenuItem(label); */ /** * Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment */ - public static native boolean MenuItem(String label, String shortcut); /* + public static native boolean menuItem(String label, String shortcut); /* return ImGui::MenuItem(label, shortcut); */ /** * Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment */ - public static native boolean MenuItem(String label, String shortcut, boolean selected); /* + public static native boolean menuItem(String label, String shortcut, boolean selected); /* return ImGui::MenuItem(label, shortcut, selected); */ /** * Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment */ - public static native boolean MenuItem(String label, String shortcut, boolean selected, boolean enabled); /* + public static native boolean menuItem(String label, String shortcut, boolean selected, boolean enabled); /* return ImGui::MenuItem(label, shortcut, selected, enabled); */ /** - * Return true when activated + toggle (*p_selected) if p_selected != NULL + * Return true when activated + toggle (*pSelected) if pSelected != NULL */ - public static boolean MenuItem(String label, String shortcut, ImBool p_selected) { - return nMenuItem(label, shortcut, p_selected.data, true); + public static boolean menuItem(String label, String shortcut, ImBool pSelected) { + return nMenuItem(label, shortcut, pSelected.data, true); } /** - * Return true when activated + toggle (*p_selected) if p_selected != NULL + * Return true when activated + toggle (*pSelected) if pSelected != NULL */ - public static boolean MenuItem(String label, String shortcut, ImBool p_selected, boolean enabled) { - return nMenuItem(label, shortcut, p_selected.data, enabled); + public static boolean menuItem(String label, String shortcut, ImBool pSelected, boolean enabled) { + return nMenuItem(label, shortcut, pSelected.data, enabled); } /** - * Return true when activated + toggle (*p_selected) if p_selected != NULL + * Return true when activated + toggle (*pSelected) if pSelected != NULL */ - private static native boolean nMenuItem(String label, String shortcut, boolean[] p_selected, boolean enabled); /* - return ImGui::MenuItem(label, shortcut, &p_selected[0], enabled); + private static native boolean nMenuItem(String label, String shortcut, boolean[] pSelected, boolean enabled); /* + return ImGui::MenuItem(label, shortcut, &pSelected[0], enabled); */ // Tooltips @@ -3492,18 +3492,18 @@ public final class ImGui { /** * Begin/append a tooltip window. to create full-featured tooltip (with any kind of items). */ - public static native void BeginTooltip(); /* + public static native void beginTooltip(); /* ImGui::BeginTooltip(); */ - public static native void EndTooltip(); /* + public static native void endTooltip(); /* ImGui::EndTooltip(); */ /** * Set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). */ - public static native void SetTooltip(String text); /* + public static native void setTooltip(String text); /* ImGui::SetTooltip(text); */ @@ -3522,126 +3522,126 @@ public final class ImGui { * By default, Selectable()/MenuItem() are calling CloseCurrentPopup(). * Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). */ - public static native void OpenPopup(String str_id); /* - ImGui::OpenPopup(str_id); + public static native void openPopup(String strId); /* + ImGui::OpenPopup(strId); */ /** * Return true if the popup is open, and you can start outputting to it. only call EndPopup() if BeginPopup() returns true! */ - public static native boolean BeginPopup(String str_id); /* - return ImGui::BeginPopup(str_id); + public static native boolean beginPopup(String strId); /* + return ImGui::BeginPopup(strId); */ /** * Return true if the popup is open, and you can start outputting to it. only call EndPopup() if BeginPopup() returns true! */ - public static native boolean BeginPopup(String str_id, int imGuiWindowFlags); /* - return ImGui::BeginPopup(str_id, imGuiWindowFlags); + public static native boolean beginPopup(String strId, int imGuiWindowFlags); /* + return ImGui::BeginPopup(strId, imGuiWindowFlags); */ /** - * helper to open and begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. + * helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. * If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! */ - public static native boolean BeginPopupContextItem(); /* + public static native boolean beginPopupContextItem(); /* return ImGui::BeginPopupContextItem(); */ /** - * helper to open and begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. + * helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. * If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! */ - public static native boolean BeginPopupContextItem(String str_id); /* - return ImGui::BeginPopupContextItem(str_id); + public static native boolean beginPopupContextItem(String strId); /* + return ImGui::BeginPopupContextItem(strId); */ /** - * helper to open and begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. + * helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. * If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! */ - public static native boolean BeginPopupContextItem(String str_id, int mouse_button); /* - return ImGui::BeginPopupContextItem(str_id, mouse_button); + public static native boolean beginPopupContextItem(String strId, int mouseButton); /* + return ImGui::BeginPopupContextItem(strId, mouseButton); */ /** * Helper to open and begin popup when clicked on current window. */ - public static native boolean BeginPopupContextWindow(); /* + public static native boolean beginPopupContextWindow(); /* return ImGui::BeginPopupContextWindow(); */ /** * Helper to open and begin popup when clicked on current window. */ - public static native boolean BeginPopupContextWindow(String str_id); /* - return ImGui::BeginPopupContextWindow(str_id); + public static native boolean beginPopupContextWindow(String strId); /* + return ImGui::BeginPopupContextWindow(strId); */ /** * Helper to open and begin popup when clicked on current window. */ - public static native boolean BeginPopupContextWindow(String str_id, int mouse_button); /* - return ImGui::BeginPopupContextWindow(str_id, mouse_button); + public static native boolean beginPopupContextWindow(String strId, int mouseButton); /* + return ImGui::BeginPopupContextWindow(strId, mouseButton); */ /** * Helper to open and begin popup when clicked on current window. */ - public static native boolean BeginPopupContextWindow(String str_id, int mouse_button, boolean also_over_items); /* - return ImGui::BeginPopupContextWindow(str_id, mouse_button, also_over_items); + public static native boolean beginPopupContextWindow(String strId, int mouseButton, boolean alsoOverItems); /* + return ImGui::BeginPopupContextWindow(strId, mouseButton, alsoOverItems); */ /** * Helper to open and begin popup when clicked in void (where there are no imgui windows). */ - public static native boolean BeginPopupContextVoid(); /* + public static native boolean beginPopupContextVoid(); /* return ImGui::BeginPopupContextVoid(); */ /** * Helper to open and begin popup when clicked in void (where there are no imgui windows). */ - public static native boolean BeginPopupContextVoid(String str_id); /* - return ImGui::BeginPopupContextVoid(str_id); + public static native boolean beginPopupContextVoid(String strId); /* + return ImGui::BeginPopupContextVoid(strId); */ /** * Helper to open and begin popup when clicked in void (where there are no imgui windows). */ - public static native boolean BeginPopupContextVoid(String str_id, int mouse_button); /* - return ImGui::BeginPopupContextVoid(str_id, mouse_button); + public static native boolean beginPopupContextVoid(String strId, int mouseButton); /* + return ImGui::BeginPopupContextVoid(strId, mouseButton); */ /** * Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) */ - public static native boolean BeginPopupModal(String name); /* + public static native boolean beginPopupModal(String name); /* return ImGui::BeginPopupModal(name); */ /** * Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) */ - public static boolean BeginPopupModal(String name, ImBool p_open) { - return nBeginPopupModal(name, p_open.data, 0); + public static boolean beginPopupModal(String name, ImBool pOpen) { + return nBeginPopupModal(name, pOpen.data, 0); } /** * Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) */ - public static boolean BeginPopupModal(String name, ImBool p_open, int imGuiWindowFlags) { - return nBeginPopupModal(name, p_open.data, imGuiWindowFlags); + public static boolean beginPopupModal(String name, ImBool pOpen, int imGuiWindowFlags) { + return nBeginPopupModal(name, pOpen.data, imGuiWindowFlags); } - private static native boolean nBeginPopupModal(String name, boolean[] p_open, int imGuiWindowFlags); /* - return ImGui::BeginPopupModal(name, &p_open[0], imGuiWindowFlags); + private static native boolean nBeginPopupModal(String name, boolean[] pOpen, int imGuiWindowFlags); /* + return ImGui::BeginPopupModal(name, &pOpen[0], imGuiWindowFlags); */ /** * only call EndPopup() if BeginPopupXXX() returns true! */ - public static native void EndPopup(); /* + public static native void endPopup(); /* ImGui::EndPopup(); */ @@ -3649,7 +3649,7 @@ public final class ImGui { * Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). * return true when just opened. */ - public static native boolean OpenPopupOnItemClick(); /* + public static native boolean openPopupOnItemClick(); /* return ImGui::OpenPopupOnItemClick(); */ @@ -3657,110 +3657,110 @@ public final class ImGui { * Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). * return true when just opened. */ - public static native boolean OpenPopupOnItemClick(String str_id); /* - return ImGui::OpenPopupOnItemClick(str_id); + public static native boolean openPopupOnItemClick(String strId); /* + return ImGui::OpenPopupOnItemClick(strId); */ /** * Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). * return true when just opened. */ - public static native boolean OpenPopupOnItemClick(String str_id, int mouse_button); /* - return ImGui::OpenPopupOnItemClick(str_id, mouse_button); + public static native boolean openPopupOnItemClick(String strId, int mouseButton); /* + return ImGui::OpenPopupOnItemClick(strId, mouseButton); */ /** * Return true if the popup is open at the current begin-ed level of the popup stack. */ - public static native boolean IsPopupOpen(String str_id); /* - return ImGui::IsPopupOpen(str_id); + public static native boolean isPopupOpen(String strId); /* + return ImGui::IsPopupOpen(strId); */ /** * Close the popup we have begin-ed into. clicking on a MenuItem or Selectable automatically close the current popup. */ - public static native void CloseCurrentPopup(); /* + public static native void closeCurrentPopup(); /* ImGui::CloseCurrentPopup(); */ // Columns - // - You can also use SameLine(pos_x) to mimic simplified columns. + // - You can also use SameLine(posX) to mimic simplified columns. // - The columns API is work-in-progress and rather lacking (columns are arguably the worst part of dear imgui at the moment!) // - By end of the 2019 we will expose a new 'Table' api which will replace columns. - public static native void Columns(); /* + public static native void columns(); /* ImGui::Columns(); */ - public static native void Columns(int count); /* + public static native void columns(int count); /* ImGui::Columns(count); */ - public static native void Columns(int count, String id); /* + public static native void columns(int count, String id); /* ImGui::Columns(count, id); */ - public static native void Columns(int count, String id, boolean border); /* + public static native void columns(int count, String id, boolean border); /* ImGui::Columns(count, id, border); */ /** * Next column, defaults to current row or next row if the current row is finished */ - public static native void NextColumn(); /* + public static native void nextColumn(); /* ImGui::NextColumn(); */ /** * Get current column index */ - public static native int GetColumnIndex(); /* + public static native int getColumnIndex(); /* return ImGui::GetColumnIndex(); */ /** * Get column width (in pixels). pass -1 to use current column */ - public static native float GetColumnWidth(); /* + public static native float getColumnWidth(); /* return ImGui::GetColumnWidth(); */ /** * Get column width (in pixels). pass -1 to use current column */ - public static native float GetColumnWidth(int column_index); /* - return ImGui::GetColumnWidth(column_index); + public static native float getColumnWidth(int columnIndex); /* + return ImGui::GetColumnWidth(columnIndex); */ /** * Set column width (in pixels). pass -1 to use current column */ - public static native void SetColumnWidth(int column_index, float width); /* - ImGui::SetColumnWidth(column_index, width); + public static native void setColumnWidth(int columnIndex, float width); /* + ImGui::SetColumnWidth(columnIndex, width); */ /** * Get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f */ - public static native float GetColumnOffset(); /* + public static native float getColumnOffset(); /* return ImGui::GetColumnOffset(); */ /** * Get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f */ - public static native float GetColumnOffset(int column_index); /* - return ImGui::GetColumnOffset(column_index); + public static native float getColumnOffset(int columnIndex); /* + return ImGui::GetColumnOffset(columnIndex); */ /** * Set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column */ - public static native void SetColumnOffset(int column_index, float offset_x); /* - ImGui::SetColumnOffset(column_index, offset_x); + public static native void setColumnOffset(int columnIndex, float offsetX); /* + ImGui::SetColumnOffset(columnIndex, offsetX); */ - public static native int GetColumnsCount(); /* + public static native int getColumnsCount(); /* return ImGui::GetColumnsCount(); */ @@ -3769,53 +3769,53 @@ public final class ImGui { /** * Create and append into a TabBar */ - public static native boolean BeginTabBar(String str_id); /* - return ImGui::BeginTabBar(str_id); + public static native boolean beginTabBar(String strId); /* + return ImGui::BeginTabBar(strId); */ /** * Create and append into a TabBar */ - public static native boolean BeginTabBar(String str_id, int imGuiTabBarFlags); /* - return ImGui::BeginTabBar(str_id, imGuiTabBarFlags); + public static native boolean beginTabBar(String strId, int imGuiTabBarFlags); /* + return ImGui::BeginTabBar(strId, imGuiTabBarFlags); */ /** * Only call EndTabBar() if BeginTabBar() returns true! */ - public static native void EndTabBar(); /* + public static native void endTabBar(); /* ImGui::EndTabBar(); */ /** * Create a Tab. Returns true if the Tab is selected. */ - public static native boolean BeginTabItem(String label); /* + public static native boolean beginTabItem(String label); /* return ImGui::BeginTabItem(label); */ /** * Create a Tab. Returns true if the Tab is selected. */ - public static boolean BeginTabItem(String label, ImBool p_open) { - return nBeginTabItem(label, p_open.data, 0); + public static boolean beginTabItem(String label, ImBool pOpen) { + return nBeginTabItem(label, pOpen.data, 0); } /** * Create a Tab. Returns true if the Tab is selected. */ - public static boolean BeginTabItem(String label, ImBool p_open, int imGuiTabBarFlags) { - return nBeginTabItem(label, p_open.data, imGuiTabBarFlags); + public static boolean beginTabItem(String label, ImBool pOpen, int imGuiTabBarFlags) { + return nBeginTabItem(label, pOpen.data, imGuiTabBarFlags); } - private static native boolean nBeginTabItem(String label, boolean[] p_open, int imGuiTabBarFlags); /* - return ImGui::BeginTabItem(label, &p_open[0], imGuiTabBarFlags); + private static native boolean nBeginTabItem(String label, boolean[] pOpen, int imGuiTabBarFlags); /* + return ImGui::BeginTabItem(label, &pOpen[0], imGuiTabBarFlags); */ /** * Only call EndTabItem() if BeginTabItem() returns true! */ - public static native void EndTabItem(); /* + public static native void endTabItem(); /* ImGui::EndTabItem(); */ @@ -3823,8 +3823,8 @@ public final class ImGui { * Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). * For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. */ - public static native void SetTabItemClosed(String tab_or_docked_window_label); /* - ImGui::SetTabItemClosed(tab_or_docked_window_label); + public static native void setTabItemClosed(String tabOrDockedWindowLabel); /* + ImGui::SetTabItemClosed(tabOrDockedWindowLabel); */ // Logging/Capture @@ -3833,42 +3833,42 @@ public final class ImGui { /** * Start logging to tty (stdout) */ - public static native void LogToTTY(); /* + public static native void logToTTY(); /* ImGui::LogToTTY(); */ /** * Start logging to tty (stdout) */ - public static native void LogToTTY(int auto_open_depth); /* - ImGui::LogToTTY(auto_open_depth); + public static native void logToTTY(int autoOpenDepth); /* + ImGui::LogToTTY(autoOpenDepth); */ /** * Start logging to file */ - public static native void LogToFile(); /* + public static native void logToFile(); /* ImGui::LogToFile(); */ /** * Start logging to file */ - public static native void LogToFile(int auto_open_depth); /* - ImGui::LogToFile(auto_open_depth); + public static native void logToFile(int autoOpenDepth); /* + ImGui::LogToFile(autoOpenDepth); */ /** * Start logging to file */ - public static native void LogToFile(int auto_open_depth, String filename); /* - ImGui::LogToFile(auto_open_depth, filename); + public static native void logToFile(int autoOpenDepth, String filename); /* + ImGui::LogToFile(autoOpenDepth, filename); */ /** * Start logging to OS clipboard */ - public static native void LogToClipboard(); /* + public static native void logToClipboard(); /* ImGui::LogToClipboard(); */ @@ -3876,28 +3876,28 @@ public final class ImGui { /** * Start logging to OS clipboard */ - public static native void LogToClipboard(int auto_open_depth); /* - ImGui::LogToClipboard(auto_open_depth); + public static native void logToClipboard(int autoOpenDepth); /* + ImGui::LogToClipboard(autoOpenDepth); */ /** * Stop logging (close file, etc.) */ - public static native void LogFinish(); /* + public static native void logFinish(); /* ImGui::LogFinish(); */ /** * Helper to display buttons for logging to tty/file/clipboard */ - public static native void LogButtons(); /* + public static native void logButtons(); /* ImGui::LogButtons(); */ /** * Pass text data straight to log (without being displayed) */ - public static native void LogText(String text); /* + public static native void logText(String text); /* ImGui::LogText(text); */ @@ -3907,14 +3907,14 @@ public final class ImGui { /** * Call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() */ - public static native boolean BeginDragDropSource(); /* + public static native boolean beginDragDropSource(); /* return ImGui::BeginDragDropSource(); */ /** * Call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() */ - public static native boolean BeginDragDropSource(int imGuiDragDropFlags); /* + public static native boolean beginDragDropSource(int imGuiDragDropFlags); /* return ImGui::BeginDragDropSource(imGuiDragDropFlags); */ @@ -3922,7 +3922,7 @@ public final class ImGui { * Type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. * Data is copied and held by imgui. */ - public static native boolean SetDragDropPayload(String type, byte[] data, int sz); /* + public static native boolean setDragDropPayload(String type, byte[] data, int sz); /* return ImGui::SetDragDropPayload(type, &data[0], sz); */ @@ -3930,35 +3930,35 @@ public final class ImGui { * Type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. * Data is copied and held by imgui. */ - public static native boolean SetDragDropPayload(String type, byte[] data, int sz, int imGuiCond); /* + public static native boolean setDragDropPayload(String type, byte[] data, int sz, int imGuiCond); /* return ImGui::SetDragDropPayload(type, &data[0], sz, imGuiCond); */ /** * Only call EndDragDropSource() if BeginDragDropSource() returns true! */ - public static native void EndDragDropSource(); /* + public static native void endDragDropSource(); /* ImGui::EndDragDropSource(); */ /** * Call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() */ - public static native boolean BeginDragDropTarget(); /* + public static native boolean beginDragDropTarget(); /* return ImGui::BeginDragDropTarget(); */ /** * Accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. */ - public static byte[] AcceptDragDropPayload(String type) { + public static byte[] acceptDragDropPayload(String type) { return nAcceptDragDropPayload(type, 0); } /** * Accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. */ - public static byte[] AcceptDragDropPayload(String type, int imGuiDragDropFlags) { + public static byte[] acceptDragDropPayload(String type, int imGuiDragDropFlags) { return nAcceptDragDropPayload(type, imGuiDragDropFlags); } @@ -3974,7 +3974,7 @@ public final class ImGui { /** * Only call EndDragDropTarget() if BeginDragDropTarget() returns true! */ - public static native void EndDragDropTarget(); /* + public static native void endDragDropTarget(); /* ImGui::EndDragDropTarget(); */ @@ -3982,7 +3982,7 @@ public final class ImGui { * Peek directly into the current payload from anywhere. May return NULL. use ImGuiPayload::IsDataType() to test for the payload type. * TODO implement ImGuiPayload class */ - public static native byte[] GetDragDropPayload(); /* + public static native byte[] getDragDropPayload(); /* if (const ImGuiPayload* payload = ImGui::GetDragDropPayload()) { jbyteArray array = env->NewByteArray(payload->DataSize); env->SetByteArrayRegion(array, 0, payload->DataSize, (jbyte*)payload->Data); @@ -3993,11 +3993,11 @@ public final class ImGui { // Clipping - public static native void PushClipRect(float clip_rect_min_x, float clip_rect_min_y, float clip_rect_max_x, float clip_rect_max_y, boolean intersect_with_current_clip_rect); /* - ImGui::PushClipRect(ImVec2(clip_rect_min_x, clip_rect_min_y), ImVec2(clip_rect_max_x, clip_rect_max_y), intersect_with_current_clip_rect); + public static native void pushClipRect(float clipRectMinX, float clipRectMinY, float clipRectMaxX, float clipRectMaxY, boolean intersectWithCurrentClipRect); /* + ImGui::PushClipRect(ImVec2(clipRectMinX, clipRectMinY), ImVec2(clipRectMaxX, clipRectMaxY), intersectWithCurrentClipRect); */ - public static native void PopClipRect(); /* + public static native void popClipRect(); /* ImGui::PopClipRect(); */ @@ -4007,21 +4007,21 @@ public final class ImGui { /** * Make last item the default focused item of a window. */ - public static native void SetItemDefaultFocus(); /* + public static native void setItemDefaultFocus(); /* ImGui::SetItemDefaultFocus(); */ /** * Focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ - public static native void SetKeyboardFocusHere(); /* + public static native void setKeyboardFocusHere(); /* ImGui::SetKeyboardFocusHere(); */ /** * Focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. */ - public static native void SetKeyboardFocusHere(int offset); /* + public static native void setKeyboardFocusHere(int offset); /* ImGui::SetKeyboardFocusHere(offset); */ @@ -4032,14 +4032,14 @@ public final class ImGui { /** * Is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. */ - public static native boolean IsItemHovered(); /* + public static native boolean isItemHovered(); /* return ImGui::IsItemHovered(); */ /** * Is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. */ - public static native boolean IsItemHovered(int imGuiHoveredFlags); /* + public static native boolean isItemHovered(int imGuiHoveredFlags); /* return ImGui::IsItemHovered(imGuiHoveredFlags); */ @@ -4048,56 +4048,56 @@ public final class ImGui { * This will continuously return true while holding mouse button on an item. * Items that don't interact will always return false) */ - public static native boolean IsItemActive(); /* + public static native boolean isItemActive(); /* return ImGui::IsItemActive(); */ /** * Is the last item focused for keyboard/gamepad navigation? */ - public static native boolean IsItemFocused(); /* + public static native boolean isItemFocused(); /* return ImGui::IsItemFocused(); */ /** - * Is the last item clicked? (e.g. button/node just clicked on) == {@code IsMouseClicked(mouse_button) && IsItemHovered()} + * Is the last item clicked? (e.g. button/node just clicked on) == {@code IsMouseClicked(mouseButton) && IsItemHovered()} */ - public static native boolean IsItemClicked(); /* + public static native boolean isItemClicked(); /* return ImGui::IsItemClicked(); */ /** - * Is the last item clicked? (e.g. button/node just clicked on) == {@code IsMouseClicked(mouse_button) && IsItemHovered()} + * Is the last item clicked? (e.g. button/node just clicked on) == {@code IsMouseClicked(mouseButton) && IsItemHovered()} */ - public static native boolean IsItemClicked(int mouse_button); /* - return ImGui::IsItemClicked(mouse_button); + public static native boolean isItemClicked(int mouseButton); /* + return ImGui::IsItemClicked(mouseButton); */ /** * Is the last item visible? (items may be out of sight because of clipping/scrolling) */ - public static native boolean IsItemVisible(); /* + public static native boolean isItemVisible(); /* return ImGui::IsItemVisible(); */ /** * Did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. */ - public static native boolean IsItemEdited(); /* + public static native boolean isItemEdited(); /* return ImGui::IsItemEdited(); */ /** * Was the last item just made active (item was previously inactive). */ - public static native boolean IsItemActivated(); /* + public static native boolean isItemActivated(); /* return ImGui::IsItemActivated(); */ /** * Was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. */ - public static native boolean IsItemDeactivated(); /* + public static native boolean isItemDeactivated(); /* return ImGui::IsItemDeactivated(); */ @@ -4106,63 +4106,63 @@ public final class ImGui { * Useful for Undo/Redo patterns with widgets that requires continuous editing. * Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). */ - public static native boolean IsItemDeactivatedAfterEdit(); /* + public static native boolean isItemDeactivatedAfterEdit(); /* return ImGui::IsItemDeactivatedAfterEdit(); */ /** * Was the last item open state toggled? set by TreeNode(). */ - public static native boolean IsItemToggledOpen(); /* + public static native boolean isItemToggledOpen(); /* return ImGui::IsItemToggledOpen(); */ /** * Is any item hovered? */ - public static native boolean IsAnyItemHovered(); /* + public static native boolean isAnyItemHovered(); /* return ImGui::IsAnyItemHovered(); */ /** * Is any item active? */ - public static native boolean IsAnyItemActive(); /* + public static native boolean isAnyItemActive(); /* return ImGui::IsAnyItemActive(); */ /** * Is any item focused? */ - public static native boolean IsAnyItemFocused(); /* + public static native boolean isAnyItemFocused(); /* return ImGui::IsAnyItemFocused(); */ /** * Get upper-left bounding rectangle of the last item (screen space) */ - public static native void GetItemRectMin(ImVec2 dstImVec2); /* + public static native void getItemRectMin(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetItemRectMin(), dstImVec2); */ /** * Get lower-right bounding rectangle of the last item (screen space) */ - public static native void GetItemRectMax(ImVec2 dstImVec2); /* + public static native void getItemRectMax(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetItemRectMax(), dstImVec2); */ /** * Get size of last item */ - public static native void GetItemRectSize(ImVec2 dstImVec2); /* + public static native void getItemRectSize(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetItemRectSize(), dstImVec2); */ /** * Allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. */ - public static native void SetItemAllowOverlap(); /* + public static native void setItemAllowOverlap(); /* ImGui::SetItemAllowOverlap(); */ @@ -4171,42 +4171,42 @@ public final class ImGui { /** * Test if rectangle (of given size, starting from cursor position) is visible / not clipped. */ - public static native boolean IsRectVisible(float width, float height); /* + public static native boolean isRectVisible(float width, float height); /* return ImGui::IsRectVisible(ImVec2(width, height)); */ /** * Test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. */ - public static native boolean IsRectVisible(float min_x, float min_y, float max_x, float max_y); /* - return ImGui::IsRectVisible(ImVec2(min_x, min_y), ImVec2(max_x, max_y)); + public static native boolean isRectVisible(float minX, float minY, float maxX, float maxY); /* + return ImGui::IsRectVisible(ImVec2(minX, minY), ImVec2(maxX, maxY)); */ /** * Get global imgui time. incremented by io.DeltaTime every frame. */ - public static native double GetTime(); /* + public static native double getTime(); /* return ImGui::GetTime(); */ /** * Get global imgui frame count. incremented by 1 every frame. */ - public static native int GetFrameCount(); /* + public static native int getFrameCount(); /* return ImGui::GetFrameCount(); */ /** * This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. */ - public static ImDrawList GetBackgroundDrawList() { + public static ImDrawList getBackgroundDrawList() { return IM_DRAW_LIST_BACKGROUND; } /** * This draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. */ - public static ImDrawList GetForegroundDrawList() { + public static ImDrawList getForegroundDrawList() { return IM_DRAW_LIST_FOREGROUND; } @@ -4215,75 +4215,75 @@ public final class ImGui { /** * Get a string corresponding to the enum value (for display, saving, etc.). */ - public static native String GetStyleColorName(int imGuiCol); /* + public static native String getStyleColorName(int imGuiCol); /* return env->NewStringUTF(ImGui::GetStyleColorName(imGuiCol)); */ // TODO SetStateStorage, GetStateStorage - public static native void CalcTextSize(ImVec2 dstImVec2, String text); /* + public static native void calcTextSize(ImVec2 dstImVec2, String text); /* ImVec2 src = ImGui::CalcTextSize(text); Jni::ImVec2Cpy(env, src, dstImVec2); */ - public static native void CalcTextSize(ImVec2 dstImVec2, String text, String text_end); /* - ImVec2 src = ImGui::CalcTextSize(text, text_end); + public static native void calcTextSize(ImVec2 dstImVec2, String text, String textEnd); /* + ImVec2 src = ImGui::CalcTextSize(text, textEnd); Jni::ImVec2Cpy(env, src, dstImVec2); */ - public static native void CalcTextSize(ImVec2 dstImVec2, String text, String text_end, boolean hide_text_after_double_has); /* - ImVec2 src = ImGui::CalcTextSize(text, text_end, hide_text_after_double_has); + public static native void calcTextSize(ImVec2 dstImVec2, String text, String textEnd, boolean hideTextAfterDoubleHas); /* + ImVec2 src = ImGui::CalcTextSize(text, textEnd, hideTextAfterDoubleHas); Jni::ImVec2Cpy(env, src, dstImVec2); */ - public static native void CalcTextSize(ImVec2 dstImVec2, String text, String text_end, boolean hide_text_after_double_has, float wrap_width); /* - ImVec2 src = ImGui::CalcTextSize(text, text_end, hide_text_after_double_has, wrap_width); + public static native void calcTextSize(ImVec2 dstImVec2, String text, String textEnd, boolean hideTextAfterDoubleHas, float wrapWidth); /* + ImVec2 src = ImGui::CalcTextSize(text, textEnd, hideTextAfterDoubleHas, wrapWidth); Jni::ImVec2Cpy(env, src, dstImVec2); */ /** * Calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can. */ - public static native void CalcListClipping(int item_count, float items_height, int[] out_items_display_start, int[] out_items_display_end); /* - ImGui::CalcListClipping(item_count, items_height, &out_items_display_start[0], &out_items_display_end[0]); + public static native void calcListClipping(int itemCount, float itemsHeight, int[] outItemsDisplayStart, int[] outItemsDisplayEnd); /* + ImGui::CalcListClipping(itemCount, itemsHeight, &outItemsDisplayStart[0], &outItemsDisplayEnd[0]); */ /** * Helper to create a child window / scrolling region that looks like a normal widget frame */ - public static native boolean BeginChildFrame(int id, float width, float height); /* + public static native boolean beginChildFrame(int id, float width, float height); /* return ImGui::BeginChildFrame(id, ImVec2(width, height)); */ /** * Helper to create a child window / scrolling region that looks like a normal widget frame */ - public static native boolean BeginChildFrame(int id, float width, float height, int imGuiWindowFlags); /* + public static native boolean beginChildFrame(int id, float width, float height, int imGuiWindowFlags); /* return ImGui::BeginChildFrame(id, ImVec2(width, height), imGuiWindowFlags); */ /** * Always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) */ - public static native void EndChildFrame(); /* + public static native void endChildFrame(); /* ImGui::EndChildFrame(); */ // Color Utilities - public static native void ColorConvertU32ToFloat4(long in, ImVec4 dstImVec4); /* + public static native void colorConvertU32ToFloat4(long in, ImVec4 dstImVec4); /* Jni::ImVec4Cpy(env, ImGui::ColorConvertU32ToFloat4(in), dstImVec4); */ - public static native long ColorConvertFloat4ToU32(float r, float g, float b, float a); /* + public static native long colorConvertFloat4ToU32(float r, float g, float b, float a); /* return ImGui::ColorConvertFloat4ToU32(ImVec4(r, g, b, a)); */ - public static native void ColorConvertRGBtoHSV(float[] rgb, float[] hsv); /* + public static native void colorConvertRGBtoHSV(float[] rgb, float[] hsv); /* ImGui::ColorConvertRGBtoHSV(rgb[0], rgb[1], rgb[2], hsv[0], hsv[1], hsv[2]); */ - public static native void ColorConvertHSVtoRGB(float[] hsv, float[] rgb); /* + public static native void colorConvertHSVtoRGB(float[] hsv, float[] rgb); /* ImGui::ColorConvertHSVtoRGB(hsv[0], hsv[1], hsv[2], rgb[0], rgb[1], rgb[2]); */ @@ -4292,179 +4292,179 @@ public final class ImGui { /** * Map ImGuiKey_* values into user's key index. == io.KeyMap[key] */ - public static native int GetKeyIndex(int imgui_key); /* - return ImGui::GetKeyIndex(imgui_key); + public static native int getKeyIndex(int imguiKey); /* + return ImGui::GetKeyIndex(imguiKey); */ /** - * Is key being held. == io.KeysDown[user_key_index]. note that imgui doesn't know the semantic of each entry of io.KeysDown[]. + * Is key being held. == io.KeysDown[userKeyIndex]. note that imgui doesn't know the semantic of each entry of io.KeysDown[]. * Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]! */ - public static native boolean IsKeyDown(int user_key_index); /* - return ImGui::IsKeyDown(user_key_index); + public static native boolean isKeyDown(int userKeyIndex); /* + return ImGui::IsKeyDown(userKeyIndex); */ /** * Was key pressed (went from !Down to Down). if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ - public static native boolean IsKeyPressed(int user_key_index); /* - return ImGui::IsKeyPressed(user_key_index); + public static native boolean isKeyPressed(int userKeyIndex); /* + return ImGui::IsKeyPressed(userKeyIndex); */ /** * Was key pressed (went from !Down to Down). if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate */ - public static native boolean IsKeyPressed(int user_key_index, boolean repeat); /* - return ImGui::IsKeyPressed(user_key_index, repeat); + public static native boolean isKeyPressed(int userKeyIndex, boolean repeat); /* + return ImGui::IsKeyPressed(userKeyIndex, repeat); */ /** * Was key released (went from Down to !Down).. */ - public static native boolean IsKeyReleased(int user_key_index); /* - return ImGui::IsKeyReleased(user_key_index); + public static native boolean isKeyReleased(int userKeyIndex); /* + return ImGui::IsKeyReleased(userKeyIndex); */ /** * Uses provided repeat rate/delay. * Return a count, most often 0 or 1 but might be {@code >1} if RepeatRate is small enough that {@code DeltaTime > RepeatRate} */ - public static native boolean GetKeyPressedAmount(int key_index, float repeat_delay, float rate); /* - return ImGui::GetKeyPressedAmount(key_index, repeat_delay, rate); + public static native boolean getKeyPressedAmount(int keyIndex, float repeatDelay, float rate); /* + return ImGui::GetKeyPressedAmount(keyIndex, repeatDelay, rate); */ /** * Is mouse button held (0=left, 1=right, 2=middle) */ - public static native boolean IsMouseDown(int button); /* + public static native boolean isMouseDown(int button); /* return ImGui::IsMouseDown(button); */ /** * Is any mouse button held */ - public static native boolean IsAnyMouseDown(); /* + public static native boolean isAnyMouseDown(); /* return ImGui::IsAnyMouseDown(); */ /** * Did mouse button clicked (went from !Down to Down) (0=left, 1=right, 2=middle) */ - public static native boolean IsMouseClicked(int button); /* + public static native boolean isMouseClicked(int button); /* return ImGui::IsMouseClicked(button); */ - public static native boolean IsMouseClicked(int button, boolean repeat); /* + public static native boolean isMouseClicked(int button, boolean repeat); /* return ImGui::IsMouseClicked(button, repeat); */ /** * Did mouse button double-clicked. a double-click returns false in IsMouseClicked(). uses io.MouseDoubleClickTime. */ - public static native boolean IsMouseDoubleClicked(int button); /* + public static native boolean isMouseDoubleClicked(int button); /* return ImGui::IsMouseDoubleClicked(button); */ /** * Did mouse button released (went from Down to !Down) */ - public static native boolean IsMouseReleased(int button); /* + public static native boolean isMouseReleased(int button); /* return ImGui::IsMouseReleased(button); */ /** - * Is mouse dragging. if lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold + * Is mouse dragging. if lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold */ - public static native boolean IsMouseDragging(); /* + public static native boolean isMouseDragging(); /* return ImGui::IsMouseDragging(); */ /** - * Is mouse dragging. if lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold + * Is mouse dragging. if lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold */ - public static native boolean IsMouseDragging(int button); /* + public static native boolean isMouseDragging(int button); /* return ImGui::IsMouseDragging(button); */ /** - * Is mouse dragging. if lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold + * Is mouse dragging. if lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold */ - public static native boolean IsMouseDragging(int button, float lock_threshold); /* - return ImGui::IsMouseDragging(button, lock_threshold); + public static native boolean isMouseDragging(int button, float lockThreshold); /* + return ImGui::IsMouseDragging(button, lockThreshold); */ /** * Is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. */ - public static native boolean IsMouseHoveringRect(float minX, float minY, float maxX, float maxY); /* + public static native boolean isMouseHoveringRect(float minX, float minY, float maxX, float maxY); /* return ImGui::IsMouseHoveringRect(ImVec2(minX, minY), ImVec2(maxX, maxY)); */ /** * Is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. */ - public static native boolean IsMouseHoveringRect(float minX, float minY, float maxX, float maxY, boolean clip); /* + public static native boolean isMouseHoveringRect(float minX, float minY, float maxX, float maxY, boolean clip); /* return ImGui::IsMouseHoveringRect(ImVec2(minX, minY), ImVec2(maxX, maxY), clip); */ /** * By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse */ - public static native boolean IsMousePosValid(); /* + public static native boolean isMousePosValid(); /* return ImGui::IsMousePosValid(); */ /** * By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse */ - public static native boolean IsMousePosValid(float mouse_pos_x, float mouse_pos_y); /* - ImVec2 pos = ImVec2(mouse_pos_x, mouse_pos_y); + public static native boolean isMousePosValid(float mousePosX, float mousePosY); /* + ImVec2 pos = ImVec2(mousePosX, mousePosY); return ImGui::IsMousePosValid(&pos); */ /** * Shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls */ - public static native void GetMousePos(ImVec2 dstImVec2); /* + public static native void getMousePos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetMousePos(), dstImVec2); */ /** * Retrieve backup of mouse position at the time of opening popup we have BeginPopup() into */ - public static native void GetMousePosOnOpeningCurrentPopup(ImVec2 dstImVec2); /* + public static native void getMousePosOnOpeningCurrentPopup(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetMousePosOnOpeningCurrentPopup(), dstImVec2); */ /** * Return the delta from the initial clicking position while the mouse button is pressed or was just released. - * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold. + * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold. */ - public static native void GetMouseDragDelta(ImVec2 dstImVec2); /* + public static native void getMouseDragDelta(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, ImGui::GetMouseDragDelta(), dstImVec2); */ /** * Return the delta from the initial clicking position while the mouse button is pressed or was just released. - * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold. + * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold. */ - public static native void GetMouseDragDelta(ImVec2 dstImVec2, int button); /* + public static native void getMouseDragDelta(ImVec2 dstImVec2, int button); /* Jni::ImVec2Cpy(env, ImGui::GetMouseDragDelta(button), dstImVec2); */ /** * Return the delta from the initial clicking position while the mouse button is pressed or was just released. - * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lock_threshold {@code < -1.0f} uses io.MouseDraggingThreshold. + * This is locked and return 0.0f until the mouse moves past a distance threshold at least once. If lockThreshold {@code < -1.0f} uses io.MouseDraggingThreshold. */ - public static native void GetMouseDragDelta(ImVec2 dstImVec2, int button, float lock_threshold); /* - Jni::ImVec2Cpy(env, ImGui::GetMouseDragDelta(button, lock_threshold), dstImVec2); + public static native void getMouseDragDelta(ImVec2 dstImVec2, int button, float lockThreshold); /* + Jni::ImVec2Cpy(env, ImGui::GetMouseDragDelta(button, lockThreshold), dstImVec2); */ - public static native void ResetMouseDragDelta(); /* + public static native void resetMouseDragDelta(); /* ImGui::ResetMouseDragDelta(); */ - public static native void ResetMouseDragDelta(int button); /* + public static native void resetMouseDragDelta(int button); /* ImGui::ResetMouseDragDelta(button); */ @@ -4472,58 +4472,58 @@ public final class ImGui { * Get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). * If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you */ - public static native int GetMouseCursor(); /* + public static native int getMouseCursor(); /* return ImGui::GetMouseCursor(); */ /** * Set desired cursor type */ - public static native void SetMouseCursor(int type); /* + public static native void setMouseCursor(int type); /* ImGui::SetMouseCursor(type); */ /** * Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). * e.g. force capture keyboard when your widget is being hovered. - * This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. + * This is equivalent to setting "io.WantCaptureKeyboard = wantCaptureKeyboardValue"; after the next NewFrame() call. */ - public static native void CaptureKeyboardFromApp(); /* + public static native void captureKeyboardFromApp(); /* ImGui::CaptureKeyboardFromApp(); */ /** * Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). * e.g. force capture keyboard when your widget is being hovered. - * This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. + * This is equivalent to setting "io.WantCaptureKeyboard = wantCaptureKeyboardValue"; after the next NewFrame() call. */ - public static native void CaptureKeyboardFromApp(boolean want_capture_keyboard_value); /* - ImGui::CaptureKeyboardFromApp(want_capture_keyboard_value); + public static native void captureKeyboardFromApp(boolean wantCaptureKeyboardValue); /* + ImGui::CaptureKeyboardFromApp(wantCaptureKeyboardValue); */ /** * Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). - * This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. + * This is equivalent to setting "io.WantCaptureMouse = wantCaptureMouseValue;" after the next NewFrame() call. */ - public static native void CaptureMouseFromApp(); /* + public static native void captureMouseFromApp(); /* ImGui::CaptureMouseFromApp(); */ /** * Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). - * This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. + * This is equivalent to setting "io.WantCaptureMouse = wantCaptureMouseValue;" after the next NewFrame() call. */ - public static native void CaptureMouseFromApp(boolean want_capture_mouse_value); /* - ImGui::CaptureMouseFromApp(want_capture_mouse_value); + public static native void captureMouseFromApp(boolean wantCaptureMouseValue); /* + ImGui::CaptureMouseFromApp(wantCaptureMouseValue); */ // Clipboard Utilities (also see the LogToClipboard() function to capture or output text data to the clipboard) - public static native String GetClipboardText(); /* + public static native String getClipboardText(); /* return env->NewStringUTF(ImGui::GetClipboardText()); */ - public static native void SetClipboardText(String text); /* + public static native void setClipboardText(String text); /* ImGui::SetClipboardText(text); */ @@ -4534,36 +4534,36 @@ public final class ImGui { /** * Call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). */ - public static native void LoadIniSettingsFromDisk(String ini_filename); /* - ImGui::LoadIniSettingsFromDisk(ini_filename); + public static native void loadIniSettingsFromDisk(String iniFilename); /* + ImGui::LoadIniSettingsFromDisk(iniFilename); */ /** * Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. */ - public static native void LoadIniSettingsFromMemory(String ini_data); /* - ImGui::LoadIniSettingsFromMemory(ini_data); + public static native void loadIniSettingsFromMemory(String iniData); /* + ImGui::LoadIniSettingsFromMemory(iniData); */ /** * Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. */ - public static native void LoadIniSettingsFromMemory(String ini_data, int ini_size); /* - ImGui::LoadIniSettingsFromMemory(ini_data, ini_size); + public static native void loadIniSettingsFromMemory(String iniData, int iniSize); /* + ImGui::LoadIniSettingsFromMemory(iniData, iniSize); */ /** * This is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). */ - public static native void SaveIniSettingsToDisk(String ini_filename); /* - ImGui::SaveIniSettingsToDisk(ini_filename); + public static native void saveIniSettingsToDisk(String iniFilename); /* + ImGui::SaveIniSettingsToDisk(iniFilename); */ /** * Return a zero-terminated string with the .ini data which you can save by your own mean. * Call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. */ - public static native String SaveIniSettingsToMemory(); /* + public static native String saveIniSettingsToMemory(); /* return env->NewStringUTF(ImGui::SaveIniSettingsToMemory()); */ @@ -4571,7 +4571,7 @@ public final class ImGui { * Return a zero-terminated string with the .ini data which you can save by your own mean. * Call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. */ - public static native String SaveIniSettingsToMemory(long out_ini_size); /* - return env->NewStringUTF(ImGui::SaveIniSettingsToMemory((size_t*)&out_ini_size)); + public static native String saveIniSettingsToMemory(long outIniSize); /* + return env->NewStringUTF(ImGui::SaveIniSettingsToMemory((size_t*)&outIniSize)); */ } diff --git a/imgui-binding/src/main/java/imgui/ImGuiIO.java b/imgui-binding/src/main/java/imgui/ImGuiIO.java index 7def913..d12bd26 100644 --- a/imgui-binding/src/main/java/imgui/ImGuiIO.java +++ b/imgui-binding/src/main/java/imgui/ImGuiIO.java @@ -124,34 +124,34 @@ public final class ImGuiIO { public native void setKeyMap(int[] keyMap); /* for (int i = 0; i < ImGuiKey_COUNT; i++) ImGui::GetIO().KeyMap[i] = keyMap[i]; - */ + */ // KeyRepeatDelay // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). // public native float getKeyRepeatDelay(); /* return ImGui::GetIO().KeyRepeatDelay; - */ + */ public native void setKeyRepeatDelay(float keyRepeatDelay); /* ImGui::GetIO().KeyRepeatDelay = keyRepeatDelay; - */ + */ // KeyRepeatRate // When holding a key/button, rate at which it repeats, in seconds. // public native float getKeyRepeatRate(); /* return ImGui::GetIO().KeyRepeatRate; - */ + */ public native void setKeyRepeatRate(float keyRepeatRate); /* ImGui::GetIO().KeyRepeatRate = keyRepeatRate; - */ + */ // TODO fonts configuration // BINDING NOTICE: this is a stub to pass important for ImGui info - public native void SetFontsTexID(int id); /* + public native void setFontsTexID(int id); /* ImGui::GetIO().Fonts->TexID = (ImTextureID)id; */ @@ -163,11 +163,11 @@ public final class ImGuiIO { // public native boolean getMouseDrawCursor(); /* return ImGui::GetIO().MouseDrawCursor; - */ + */ public native void setMouseDrawCursor(boolean mouseDrawCursor); /* ImGui::GetIO().MouseDrawCursor = mouseDrawCursor; - */ + */ // ConfigMacOSXBehaviors // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, @@ -176,22 +176,22 @@ public final class ImGuiIO { // public native boolean getConfigMacOSXBehaviors(); /* return ImGui::GetIO().ConfigMacOSXBehaviors; - */ + */ public native void setConfigMacOSXBehaviors(boolean configMacOSXBehaviors); /* ImGui::GetIO().ConfigMacOSXBehaviors = configMacOSXBehaviors; - */ + */ // ConfigInputTextCursorBlink // Set to false to disable blinking cursor, for users who consider it distracting. (was called: io.OptCursorBlink prior to 1.63) // public native boolean getConfigInputTextCursorBlink(); /* return ImGui::GetIO().ConfigInputTextCursorBlink; - */ + */ public native void setConfigInputTextCursorBlink(boolean configInputTextCursorBlink); /* ImGui::GetIO().ConfigInputTextCursorBlink = configInputTextCursorBlink; - */ + */ // ConfigWindowsResizeFromEdges // Enable resizing of windows from their edges and from the lower-left corner. @@ -200,33 +200,33 @@ public final class ImGuiIO { // public native boolean getConfigWindowsResizeFromEdges(); /* return ImGui::GetIO().ConfigWindowsResizeFromEdges; - */ + */ public native void setConfigWindowsResizeFromEdges(boolean configWindowsResizeFromEdges); /* ImGui::GetIO().ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges; - */ + */ // ConfigWindowsMoveFromTitleBarOnly // [BETA] Set to true to only allow moving windows when clicked+dragged from the title bar. Windows without a title bar are not affected. // public native boolean getConfigWindowsMoveFromTitleBarOnly(); /* return ImGui::GetIO().ConfigWindowsMoveFromTitleBarOnly; - */ + */ public native void setConfigWindowsMoveFromTitleBarOnly(boolean configWindowsMoveFromTitleBarOnly); /* ImGui::GetIO().ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly; - */ + */ // ConfigWindowsMemoryCompactTimer // [BETA] Compact window memory usage when unused. Set to -1.0f to disable. // public native float getConfigWindowsMemoryCompactTimer(); /* return ImGui::GetIO().ConfigWindowsMemoryCompactTimer; - */ + */ public native void setConfigWindowsMemoryCompactTimer(float configWindowsMemoryCompactTimer); /* ImGui::GetIO().ConfigWindowsMemoryCompactTimer = configWindowsMemoryCompactTimer; - */ + */ //------------------------------------------------------------------ // Platform Functions @@ -237,7 +237,7 @@ public final class ImGuiIO { // public native String getBackendPlatformName(); /* return env -> NewStringUTF(ImGui::GetIO().BackendPlatformName); - */ + */ public native void setBackendPlatformName(String backendPlatformName); /*MANUAL ImGui::GetIO().BackendPlatformName = obj_backendPlatformName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_backendPlatformName, JNI_FALSE); @@ -247,7 +247,7 @@ public final class ImGuiIO { // public native String getBackendRendererName(); /* return env -> NewStringUTF(ImGui::GetIO().BackendRendererName); - */ + */ public native void setBackendRendererName(String backendRendererName); /*MANUAL ImGui::GetIO().BackendRendererName = obj_backendRendererName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_backendRendererName, JNI_FALSE); @@ -265,12 +265,12 @@ public final class ImGuiIO { // public native void getDisplaySize(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetIO().DisplaySize, dstImVec2); - */ + */ public native void setDisplaySize(float x, float y); /* ImGui::GetIO().DisplaySize.x = x; ImGui::GetIO().DisplaySize.y = y; - */ + */ // DisplayFramebufferScale // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. @@ -278,12 +278,12 @@ public final class ImGuiIO { // public native void getDisplayFramebufferScale(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetIO().DisplayFramebufferScale, dstImVec2); - */ + */ public native void setDisplayFramebufferScale(float x, float y); /* ImGui::GetIO().DisplayFramebufferScale.x = x; ImGui::GetIO().DisplayFramebufferScale.y = y; - */ + */ // DeltaTime // Time elapsed since last frame, in seconds. @@ -291,23 +291,23 @@ public final class ImGuiIO { // public native float getDeltaTime(); /* return ImGui::GetIO().DeltaTime; - */ + */ public native void setDeltaTime(float deltaTime); /* ImGui::GetIO().DeltaTime = deltaTime; - */ + */ // MousePos // Mouse position, in pixels. Set to ImVec2(-FLT_MAX,-FLT_MAX) if mouse is unavailable (on another screen, etc.) // public native void getMousePos(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetIO().MousePos, dstImVec2); - */ + */ public native void setMousePos(float x, float y); /* ImGui::GetIO().MousePos.x = x; ImGui::GetIO().MousePos.y = y; - */ + */ // MouseDown // Mouse buttons: 0=left, 1=right, 2=middle + extras. ImGui itself mostly only uses left button (BeginPopupContext** are using right button). @@ -316,86 +316,86 @@ public final class ImGuiIO { public native void getMouseDown(boolean[] buff); /* for (int i = 0; i < 5; i++) buff[i] = ImGui::GetIO().MouseDown[i]; - */ + */ public native boolean getMouseDown(int idx); /* return ImGui::GetIO().MouseDown[idx]; - */ + */ public native void setMouseDown(int idx, boolean down); /* ImGui::GetIO().MouseDown[idx] = down; - */ + */ public native void setMouseDown(boolean[] mouseDown); /* for (int i = 0; i < 5; i++) ImGui::GetIO().MouseDown[i] = mouseDown[i]; - */ + */ // MouseWheel // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. // public native float getMouseWheel(); /* return ImGui::GetIO().MouseWheel; - */ + */ public native void setMouseWheel(float mouseDeltaY); /* ImGui::GetIO().MouseWheel = mouseDeltaY; - */ + */ // MouseWheelH // Mouse wheel Horizontal. Most users don't have a mouse with an horizontal wheel, may not be filled by all back-ends. // public native float getMouseWheelH(); /* return ImGui::GetIO().MouseWheelH; - */ + */ public native void setMouseWheelH(float mouseDeltaX); /* ImGui::GetIO().MouseWheelH = mouseDeltaX; - */ + */ // KeyCtrl // Keyboard modifier pressed: Control // public native boolean getKeyCtrl(); /* return ImGui::GetIO().KeyCtrl; - */ + */ public native void setKeyCtrl(boolean value); /* ImGui::GetIO().KeyCtrl = value; - */ + */ // KeyShift // Keyboard modifier pressed: Shift // public native boolean getKeyShift(); /* return ImGui::GetIO().KeyShift; - */ + */ public native void setKeyShift(boolean value); /* ImGui::GetIO().KeyShift = value; - */ + */ // KeyAlt // Keyboard modifier pressed: Alt // public native boolean getKeyAlt(); /* return ImGui::GetIO().KeyAlt; - */ + */ public native void setKeyAlt(boolean value); /* ImGui::GetIO().KeyAlt = value; - */ + */ // KeySuper // Keyboard modifier pressed: Cmd/Super/Windows // public native boolean getKeySuper(); /* return ImGui::GetIO().KeySuper; - */ + */ public native void setKeySuper(boolean value); /* ImGui::GetIO().KeySuper = value; - */ + */ // KeysDown // Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). @@ -403,20 +403,20 @@ public final class ImGuiIO { public native void getKeysDown(boolean[] buff); /* for (int i = 0; i < 512; i++) buff[i] = ImGui::GetIO().KeysDown[i]; - */ + */ public native boolean getKeysDown(int idx); /* return ImGui::GetIO().KeysDown[idx]; - */ + */ public native void setKeysDown(int idx, boolean pressed); /* ImGui::GetIO().KeysDown[idx] = pressed; - */ + */ public native void setKeysDown(boolean[] keysDown); /* for (int i = 0; i < 512; i++) ImGui::GetIO().KeysDown[i] = keysDown[i]; - */ + */ //------------------------------------------------------------------ // Output - Retrieve after calling NewFrame() @@ -428,11 +428,11 @@ public final class ImGuiIO { // public native boolean getWantCaptureMouse(); /* return ImGui::GetIO().WantCaptureMouse; - */ + */ public native void setWantCaptureMouse(boolean wantCaptureMouse); /* ImGui::GetIO().WantCaptureMouse = wantCaptureMouse; - */ + */ // WantCaptureKeyboard // When io.WantCaptureKeyboard is true, imgui will use the keyboard inputs, do not dispatch them to your main game/application (in both cases, always pass keyboard inputs to imgui). @@ -440,11 +440,11 @@ public final class ImGuiIO { // public native boolean getWantCaptureKeyboard(); /* return ImGui::GetIO().WantCaptureKeyboard; - */ + */ public native void setWantCaptureKeyboard(boolean wantCaptureKeyboard); /* ImGui::GetIO().WantCaptureKeyboard = wantCaptureKeyboard; - */ + */ // WantTextInput // Mobile/console: when io.WantTextInput is true, you may display an on-screen keyboard. @@ -452,22 +452,22 @@ public final class ImGuiIO { // public native boolean getWantTextInput(); /* return ImGui::GetIO().WantTextInput; - */ + */ public native void setWantTextInput(boolean wantTextInput); /* ImGui::GetIO().WantTextInput = wantTextInput; - */ + */ // WantSetMousePos // MousePos has been altered, back-end should reposition mouse on next frame. Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. // public native boolean getWantSetMousePos(); /* return ImGui::GetIO().WantSetMousePos; - */ + */ public native void setWantSetMousePos(boolean wantSetMousePos); /* ImGui::GetIO().WantSetMousePos = wantSetMousePos; - */ + */ // WantSaveIniSettings // When manual .ini load/save is active (io.IniFilename == NULL), @@ -476,133 +476,133 @@ public final class ImGuiIO { // public native boolean getWantSaveIniSettings(); /* return ImGui::GetIO().WantSaveIniSettings; - */ + */ public native void setWantSaveIniSettings(boolean wantSaveIniSettings); /* ImGui::GetIO().WantSaveIniSettings = wantSaveIniSettings; - */ + */ // NavActive // Directional navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. // public native boolean getNavActive(); /* return ImGui::GetIO().NavActive; - */ + */ public native void setNavActive(boolean navActive); /* ImGui::GetIO().NavActive = navActive; - */ + */ // NavVisible // Directional navigation is visible and allowed (will handle ImGuiKey_NavXXX events). // public native boolean getNavVisible(); /* return ImGui::GetIO().NavVisible; - */ + */ public native void setNavVisible(boolean navVisible); /* ImGui::GetIO().NavVisible = navVisible; - */ + */ // Framerate // Application framerate estimation, in frame per second. Solely for convenience. Rolling average estimation based on IO.DeltaTime over 120 frames // public native float getFramerate(); /* return ImGui::GetIO().Framerate; - */ + */ public native void setFramerate(float framerate); /* ImGui::GetIO().Framerate = framerate; - */ + */ // MetricsRenderVertices // Vertices output during last call to Render() // public native int getMetricsRenderVertices(); /* return ImGui::GetIO().MetricsRenderVertices; - */ + */ public native void setMetricsRenderVertices(int metricsRenderVertices); /* ImGui::GetIO().MetricsRenderVertices = metricsRenderVertices; - */ + */ // MetricsRenderIndices // Indices output during last call to Render() = number of triangles * 3 // public native int getMetricsRenderIndices(); /* return ImGui::GetIO().MetricsRenderIndices; - */ + */ public native void setMetricsRenderIndices(int metricsRenderIndices); /* ImGui::GetIO().MetricsRenderIndices = metricsRenderIndices; - */ + */ // MetricsRenderWindows // Number of visible windows // public native int getMetricsRenderWindows(); /* return ImGui::GetIO().MetricsRenderWindows; - */ + */ public native void setMetricsRenderWindows(int metricsRenderWindows); /* ImGui::GetIO().MetricsRenderWindows = metricsRenderWindows; - */ + */ // MetricsActiveWindows // Number of active windows // public native int getMetricsActiveWindows(); /* return ImGui::GetIO().MetricsActiveWindows; - */ + */ public native void setMetricsActiveWindows(int metricsActiveWindows); /* ImGui::GetIO().MetricsActiveWindows = metricsActiveWindows; - */ + */ // MetricsActiveAllocations // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. // public native int getMetricsActiveAllocations(); /* return ImGui::GetIO().MetricsActiveAllocations; - */ + */ public native void setMetricsActiveAllocations(int metricsActiveAllocations); /* ImGui::GetIO().MetricsActiveAllocations = metricsActiveAllocations; - */ + */ // MouseDelta // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. // public native void getMouseDelta(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetIO().MouseDelta, dstImVec2); - */ + */ public native void setMouseDelta(float x, float y); /* ImGui::GetIO().MouseDelta.x = x; ImGui::GetIO().MouseDelta.y = y; - */ + */ // Functions /** * Queue new character input. */ - public native void AddInputCharacter(int c); /* + public native void addInputCharacter(int c); /* if (c > 0 && c < 0x10000) ImGui::GetIO().AddInputCharacter((unsigned short)c); - */; + */ /** * Queue new characters input from an UTF-8 string. */ - public native void AddInputCharactersUTF8(String str); /* + public native void addInputCharactersUTF8(String str); /* ImGui::GetIO().AddInputCharactersUTF8(str); - */ + */ /** * Clear the text input buffer manually. */ - public native void ClearInputCharacters(); /* + public native void clearInputCharacters(); /* ImGui::GetIO().ClearInputCharacters(); - */ + */ } diff --git a/imgui-binding/src/main/java/imgui/ImGuiStyle.java b/imgui-binding/src/main/java/imgui/ImGuiStyle.java index 90acafb..b287268 100644 --- a/imgui-binding/src/main/java/imgui/ImGuiStyle.java +++ b/imgui-binding/src/main/java/imgui/ImGuiStyle.java @@ -4,7 +4,7 @@ package imgui; * You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). * During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, * and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. - * + *

* BINDING NOTICE: This is not a fully featured representation of ImGuiStyle struct from C++. * Mostly it's a stub which communicates with default ImGuiStyle used by ImGuiIO. * Still can be used to make your interface look different, since all of the fields from the original header file are represented here. @@ -34,12 +34,12 @@ public final class ImGuiStyle { // public native void getWindowPadding(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetStyle().WindowPadding, dstImVec2); - */ + */ public native void setWindowPadding(float x, float y); /* ImGui::GetStyle().WindowPadding.x = x; ImGui::GetStyle().WindowPadding.y = y; - */ + */ // WindowRounding // Radius of window corners rounding. Set to 0.0f to have rectangular windows. @@ -68,24 +68,24 @@ public final class ImGuiStyle { // public native void getWindowMinSize(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetStyle().WindowMinSize, dstImVec2); - */ + */ public native void setWindowMinSize(float x, float y); /* ImGui::GetStyle().WindowMinSize.x = x; ImGui::GetStyle().WindowMinSize.y = y; - */ + */ // WindowTitleAlign // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. // public native void getWindowTitleAlign(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetStyle().WindowTitleAlign, dstImVec2); - */ + */ public native void setWindowTitleAlign(float x, float y); /* ImGui::GetStyle().WindowTitleAlign.x = x; ImGui::GetStyle().WindowTitleAlign.y = y; - */ + */ // WindowMenuButtonPosition // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. @@ -147,12 +147,12 @@ public final class ImGuiStyle { // public native void getFramePadding(ImVec2 dstImVec2); /* Jni::ImVec2Cpy(env, &ImGui::GetStyle().FramePadding, dstImVec2); - */ + */ public native void setFramePadding(float x, float y); /* ImGui::GetStyle().FramePadding.x = x; ImGui::GetStyle().FramePadding.y = y; - */ + */ // FrameRounding // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). @@ -187,6 +187,7 @@ public final class ImGuiStyle { ImGui::GetStyle().ItemSpacing.x = x; ImGui::GetStyle().ItemSpacing.y = y; */ + // ItemInnerSpacing // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). // @@ -198,6 +199,7 @@ public final class ImGuiStyle { ImGui::GetStyle().ItemInnerSpacing.x = x; ImGui::GetStyle().ItemInnerSpacing.y = y; */ + // TouchExtraPadding // Expand reactive bounding box for touch-based system where touch position is not accurate enough. // Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! @@ -305,6 +307,7 @@ public final class ImGuiStyle { public native int getColorButtonPosition(); /* return ImGui::GetStyle().ColorButtonPosition; */ + public native void setColorButtonPosition(int colorButtonPosition); /* ImGui::GetStyle().ColorButtonPosition = colorButtonPosition; */ diff --git a/imgui-binding/src/main/java/imgui/ImInt.java b/imgui-binding/src/main/java/imgui/ImInt.java index 4b54afe..e7e9e6f 100644 --- a/imgui-binding/src/main/java/imgui/ImInt.java +++ b/imgui-binding/src/main/java/imgui/ImInt.java @@ -3,12 +3,12 @@ package imgui; import java.util.Objects; public final class ImInt { - int[] data = new int[]{0}; + final int[] data = new int[]{0}; public ImInt() { } - public ImInt(int value) { + public ImInt(final int value) { set(value); } @@ -16,7 +16,7 @@ public final class ImInt { return this.data[0]; } - public void set(int value) { + public void set(final int value) { this.data[0] = value; } @@ -26,10 +26,14 @@ public final class ImInt { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImInt imInt = (ImInt) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImInt imInt = (ImInt) o; return data[0] == imInt.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImLong.java b/imgui-binding/src/main/java/imgui/ImLong.java index 4f04a31..5c15780 100644 --- a/imgui-binding/src/main/java/imgui/ImLong.java +++ b/imgui-binding/src/main/java/imgui/ImLong.java @@ -2,13 +2,13 @@ package imgui; import java.util.Objects; -public class ImLong { - long[] data = new long[]{0}; +public final class ImLong { + final long[] data = new long[]{0}; public ImLong() { } - public ImLong(long value) { + public ImLong(final long value) { set(value); } @@ -16,7 +16,7 @@ public class ImLong { return this.data[0]; } - public void set(long value) { + public void set(final long value) { this.data[0] = value; } @@ -26,10 +26,14 @@ public class ImLong { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImLong imLong = (ImLong) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImLong imLong = (ImLong) o; return data[0] == imLong.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImShort.java b/imgui-binding/src/main/java/imgui/ImShort.java index 855eb5c..3278052 100644 --- a/imgui-binding/src/main/java/imgui/ImShort.java +++ b/imgui-binding/src/main/java/imgui/ImShort.java @@ -2,13 +2,13 @@ package imgui; import java.util.Objects; -public class ImShort { - short[] data = new short[]{0}; +public final class ImShort { + final short[] data = new short[]{0}; public ImShort() { } - public ImShort(short value) { + public ImShort(final short value) { set(value); } @@ -16,7 +16,7 @@ public class ImShort { return this.data[0]; } - public void set(short value) { + public void set(final short value) { this.data[0] = value; } @@ -26,10 +26,14 @@ public class ImShort { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImShort imShort = (ImShort) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImShort imShort = (ImShort) o; return data[0] == imShort.data[0]; } diff --git a/imgui-binding/src/main/java/imgui/ImString.java b/imgui-binding/src/main/java/imgui/ImString.java index 3228811..f196577 100644 --- a/imgui-binding/src/main/java/imgui/ImString.java +++ b/imgui-binding/src/main/java/imgui/ImString.java @@ -23,16 +23,16 @@ public final class ImString { this(DEFAULT_LENGTH); } - public ImString(int length) { + public ImString(final int length) { data = new byte[length + CARET_LEN]; } - public ImString(String text) { + public ImString(final String text) { this(text.length()); set(text); } - public ImString(String text, int length) { + public ImString(final String text, final int length) { this(length); set(text); } @@ -45,12 +45,12 @@ public final class ImString { return text; } - public void set(String value) { + public void set(final String value) { set(value.getBytes()); } - public void set(String value, boolean resize) { - byte[] str = value.getBytes(); + public void set(final String value, final boolean resize) { + final byte[] str = value.getBytes(); if (resize && data.length - CARET_LEN < str.length) { data = new byte[str.length + resizeFactor + CARET_LEN]; } @@ -73,8 +73,8 @@ public final class ImString { return data.length; } - private void set(byte[] str) { - int len = Math.min(str.length, data.length); + private void set(final byte[] str) { + final int len = Math.min(str.length, data.length); System.arraycopy(str, 0, data, 0, len); inputData.isDirty = true; inputData.size = len; @@ -86,10 +86,14 @@ public final class ImString { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImString imString = (ImString) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImString imString = (ImString) o; return Objects.equals(text, imString.text); } diff --git a/imgui-binding/src/main/java/imgui/ImVec2.java b/imgui-binding/src/main/java/imgui/ImVec2.java index f5e99e9..acc0057 100644 --- a/imgui-binding/src/main/java/imgui/ImVec2.java +++ b/imgui-binding/src/main/java/imgui/ImVec2.java @@ -9,24 +9,28 @@ public final class ImVec2 { public ImVec2() { } - public ImVec2(float x, float y) { + public ImVec2(final float x, final float y) { this.x = x; this.y = y; } @Override public String toString() { - return "ImVec2{" + - "x=" + x + - ", y=" + y + - '}'; + return "ImVec2{" + + "x=" + x + + ", y=" + y + + '}'; } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImVec2 imVec2 = (ImVec2) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImVec2 imVec2 = (ImVec2) o; return Float.compare(imVec2.x, x) == 0 && Float.compare(imVec2.y, y) == 0; } diff --git a/imgui-binding/src/main/java/imgui/ImVec4.java b/imgui-binding/src/main/java/imgui/ImVec4.java index 69e21fd..9da817a 100644 --- a/imgui-binding/src/main/java/imgui/ImVec4.java +++ b/imgui-binding/src/main/java/imgui/ImVec4.java @@ -11,7 +11,7 @@ public final class ImVec4 { public ImVec4() { } - public ImVec4(float x, float y, float z, float w) { + public ImVec4(final float x, final float y, final float z, final float w) { this.x = x; this.y = y; this.z = z; @@ -20,19 +20,23 @@ public final class ImVec4 { @Override public String toString() { - return "ImVec4{" + - "x=" + x + - ", y=" + y + - ", z=" + z + - ", w=" + w + - '}'; + return "ImVec4{" + + "x=" + x + + ", y=" + y + + ", z=" + z + + ", w=" + w + + '}'; } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ImVec4 imVec4 = (ImVec4) o; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + final ImVec4 imVec4 = (ImVec4) o; return Float.compare(imVec4.x, x) == 0 && Float.compare(imVec4.y, y) == 0 && Float.compare(imVec4.z, z) == 0 && Float.compare(imVec4.w, w) == 0; } diff --git a/imgui-binding/src/main/java/imgui/TexDataRGBA32.java b/imgui-binding/src/main/java/imgui/TexDataRGBA32.java index e655455..1ac57a4 100644 --- a/imgui-binding/src/main/java/imgui/TexDataRGBA32.java +++ b/imgui-binding/src/main/java/imgui/TexDataRGBA32.java @@ -11,12 +11,12 @@ public final class TexDataRGBA32 { public ByteBuffer pixelBuffer; private TexDataRGBA32() { - int pixelMax = 131072; + final int pixelMax = 131072; pixelBuffer = ByteBuffer.allocateDirect(pixelMax).order(ByteOrder.nativeOrder()); } public static TexDataRGBA32 create() { - TexDataRGBA32 data = new TexDataRGBA32(); + final TexDataRGBA32 data = new TexDataRGBA32(); data.nFillData(data.pixelBuffer); return data; } @@ -25,7 +25,7 @@ public final class TexDataRGBA32 { #include */ - private native void nFillData(Buffer pixelBuffer); /* + private native void nFillData(Buffer pixelBuf); /* jclass jTexDataClass = env->GetObjectClass(object); if(jTexDataClass == NULL) @@ -43,6 +43,6 @@ public final class TexDataRGBA32 { env->SetIntField(object, widthID, width); env->SetIntField(object, heightID, height); - memcpy(pixelBuffer, pixels, width * height * 4); + memcpy(pixelBuf, pixels, width * height * 4); */ } diff --git a/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java b/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java index 14ed4a3..71434a8 100644 --- a/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java +++ b/imgui-lwjgl3/src/main/java/imgui/gl3/ImGuiImplGl3.java @@ -15,7 +15,7 @@ import static org.lwjgl.opengl.GL30.*; /** * This class mostly a straightforward port of the - * https://raw.githubusercontent.com/ocornut/imgui/v1.74/examples/imgui_impl_opengl3.cpp + * imgui_impl_opengl3.cpp * adapted for Java and LWJGL realms. *

* It do support a backup of the current GL state before rendering and restoring of its initial state after. @@ -202,7 +202,7 @@ public final class ImGuiImplGl3 { glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texData.width, texData.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, texData.pixelBuffer); - ImGui.GetIO().SetFontsTexID(gFontTexture); + ImGui.getIO().setFontsTexID(gFontTexture); } private void backupGlState() { diff --git a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java index a8b2367..82889b0 100644 --- a/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java +++ b/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java @@ -121,15 +121,15 @@ public final class ImGuiGlfwExample { private void initImGui() { // IMPORTANT!! // This line is critical for ImGui to work. - ImGui.CreateContext(); + ImGui.createContext(); // ImGui provides three different color schemas for styling. We will use the classic one here. - ImGui.StyleColorsClassic(); + ImGui.styleColorsClassic(); // ImGui.StyleColorsDark(); // This is a default style for ImGui // ImGui.StyleColorsLight(); // Initialize ImGuiIO config - final ImGuiIO io = ImGui.GetIO(); + final ImGuiIO io = ImGui.getIO(); io.setIniFilename(null); io.setConfigFlags(ImGuiConfigFlags.NavEnableKeyboard); @@ -189,7 +189,7 @@ public final class ImGuiGlfwExample { glfwSetCharCallback(window, (w, c) -> { if (c != GLFW_KEY_DELETE) { - io.AddInputCharacter(c); + io.addInputCharacter(c); } }); @@ -205,7 +205,7 @@ public final class ImGuiGlfwExample { io.setMouseDown(mouseDown); if (!io.getWantCaptureMouse() && mouseDown[1]) { - ImGui.SetWindowFocus(null); + ImGui.setWindowFocus(null); } }); @@ -238,14 +238,14 @@ public final class ImGuiGlfwExample { // IMPORTANT!! // We SHOULD call those methods to update ImGui state for current frame - final ImGuiIO io = ImGui.GetIO(); + final ImGuiIO io = ImGui.getIO(); io.setDisplaySize(winWidth[0], winHeight[0]); io.setDisplayFramebufferScale((float) fbWidth[0] / winWidth[0], (float) fbHeight[0] / winHeight[0]); io.setMousePos((float) mousePosX[0], (float) mousePosY[0]); io.setDeltaTime((float) deltaTime); // Update mouse cursor - final int imguiCursor = ImGui.GetMouseCursor(); + final int imguiCursor = ImGui.getMouseCursor(); glfwSetCursor(window, mouseCursors[imguiCursor]); glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); @@ -254,17 +254,17 @@ public final class ImGuiGlfwExample { // IMPORTANT!! // Any ImGui code SHOULD go between NewFrame()/Render() methods - ImGui.NewFrame(); + ImGui.newFrame(); showUi(); - ImGui.End(); + ImGui.end(); if (showDemoWindow.get()) { - ImGui.ShowDemoWindow(showDemoWindow); + ImGui.showDemoWindow(showDemoWindow); } - ImGui.Render(); + ImGui.render(); - imGuiGl3.render(ImGui.GetDrawData()); // render DrawData from ImGui into our OpenGL context + imGuiGl3.render(ImGui.getDrawData()); // render DrawData from ImGui into our OpenGL context glfwSwapBuffers(window); // swap the color buffers @@ -274,62 +274,62 @@ public final class ImGuiGlfwExample { } private void showUi() { - ImGui.SetNextWindowSize(600, 300, ImGuiCond.Once); - ImGui.SetNextWindowPos(10, 10, ImGuiCond.Once); + ImGui.setNextWindowSize(600, 300, ImGuiCond.Once); + ImGui.setNextWindowPos(10, 10, ImGuiCond.Once); - ImGui.Begin("Custom window"); - ImGui.Text("Hello from Java!"); + ImGui.begin("Custom window"); + ImGui.text("Hello from Java!"); - ImGui.Button("Drag me"); - if (ImGui.BeginDragDropSource()) { - ImGui.SetDragDropPayload("payload_type", testPayload, testPayload.length); - ImGui.Text("Drag started"); - ImGui.EndDragDropSource(); + ImGui.button("Drag me"); + if (ImGui.beginDragDropSource()) { + ImGui.setDragDropPayload("payload_type", testPayload, testPayload.length); + ImGui.text("Drag started"); + ImGui.endDragDropSource(); } - ImGui.SameLine(); - ImGui.Text(dropTargetText); - if (ImGui.BeginDragDropTarget()) { - final byte[] payload = ImGui.AcceptDragDropPayload("payload_type"); + ImGui.sameLine(); + ImGui.text(dropTargetText); + if (ImGui.beginDragDropTarget()) { + final byte[] payload = ImGui.acceptDragDropPayload("payload_type"); if (payload != null) { dropTargetText = new String(payload); } - ImGui.EndDragDropTarget(); + ImGui.endDragDropTarget(); } - ImGui.AlignTextToFramePadding(); - ImGui.Text("Background color:"); - ImGui.SameLine(); - ImGui.ColorEdit3("##click_counter_col", backgroundColor, ImGuiColorEditFlags.NoInputs | ImGuiColorEditFlags.NoDragDrop); + ImGui.alignTextToFramePadding(); + ImGui.text("Background color:"); + ImGui.sameLine(); + ImGui.colorEdit3("##click_counter_col", backgroundColor, ImGuiColorEditFlags.NoInputs | ImGuiColorEditFlags.NoDragDrop); - if (ImGui.Button("Click")) { + if (ImGui.button("Click")) { clickCount++; } - if (ImGui.IsItemHovered()) { - ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); + if (ImGui.isItemHovered()) { + ImGui.setMouseCursor(ImGuiMouseCursor.Hand); } - ImGui.SameLine(); - ImGui.Text("Count: " + clickCount); - ImGui.Checkbox("Show demo window", showDemoWindow); - ImGui.NewLine(); + ImGui.sameLine(); + ImGui.text("Count: " + clickCount); + ImGui.checkbox("Show demo window", showDemoWindow); + ImGui.newLine(); - ImGui.InputText("Resizable input", resizableStr, ImGuiInputTextFlags.CallbackResize); - ImGui.Text(String.format("text len: %d | buffer size: %d", resizableStr.getLength(), resizableStr.getBufferSize())); - ImGui.NewLine(); + ImGui.inputText("Resizable input", resizableStr, ImGuiInputTextFlags.CallbackResize); + ImGui.text(String.format("text len: %d | buffer size: %d", resizableStr.getLength(), resizableStr.getBufferSize())); + ImGui.newLine(); - ImGui.Separator(); - ImGui.Text("Consider to look the original ImGui demo: "); - ImGui.SetNextItemWidth(500); - ImGui.TextColored(0, .8f, 0, 1, imguiDemoLink); - ImGui.SameLine(); - if (ImGui.Button("Copy")) { - ImGui.SetClipboardText(imguiDemoLink); + ImGui.separator(); + ImGui.text("Consider to look the original ImGui demo: "); + ImGui.setNextItemWidth(500); + ImGui.textColored(0, .8f, 0, 1, imguiDemoLink); + ImGui.sameLine(); + if (ImGui.button("Copy")) { + ImGui.setClipboardText(imguiDemoLink); } } // If you want to clean a room after yourself - do it by yourself private void destroyImGui() { imGuiGl3.dispose(); - ImGui.DestroyContext(); + ImGui.destroyContext(); } private void destroyGlfw() {