@@ -422,9 +422,9 @@ public final class ImGuiStyle {
422
422
ImGui::GetStyle().CircleSegmentMaxError = circleSegmentMaxError;
423
423
*/
424
424
425
- // Colors
426
- // BINDING NOTICE: buff is a 2d array with sizes: [ImGuiCol_COUNT][4]
427
- / /
425
+ /**
426
+ * BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
427
+ * /
428
428
public native void getColors (float [][] buff ); /*
429
429
for (int i = 0; i < ImGuiCol_COUNT; i++) {
430
430
jfloatArray jColors = (jfloatArray)env->GetObjectArrayElement(buff, i);
@@ -440,8 +440,9 @@ public final class ImGuiStyle {
440
440
}
441
441
*/
442
442
443
- // BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
444
- //
443
+ /**
444
+ * BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
445
+ */
445
446
public native void setColors (float [][] colors ); /*
446
447
for (int i = 0; i < ImGuiCol_COUNT; i++) {
447
448
jfloatArray jColors = (jfloatArray)env->GetObjectArrayElement(colors, i);
@@ -460,4 +461,12 @@ public final class ImGuiStyle {
460
461
public native void scaleAllSizes (float scaleFactor ); /*
461
462
ImGui::GetStyle().ScaleAllSizes(scaleFactor);
462
463
*/
464
+
465
+ public native void getColor (int imGuiCol , ImVec4 dstImVec4 ); /*
466
+ Jni::ImVec4Cpy(env, ImGui::GetStyle().Colors[imGuiCol], dstImVec4);
467
+ */
468
+
469
+ public native void setColor (int imGuiCol , float r , float g , float b , float a ); /*
470
+ ImGui::GetStyle().Colors[imGuiCol] = ImVec4(r, g, b, a);
471
+ */
463
472
}
0 commit comments