[API] Add ImGuiStyle#getColors to return float[][]

Same is applied to NodeEditorStyle
This commit is contained in:
SpaiR committed 2021-02-27 16:16:08 +02:00
1 parent 36415d60f3
commit 51cfb7ef3d
4 files changed
+31

No files matched your search

@@ -1,6 +1,7 @@
package imgui;
import imgui.binding.ImGuiStructDestroyable;
import imgui.flag.ImGuiCol;
/**
* You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame().
@@ -896,6 +897,12 @@ public final class ImGuiStyle extends ImGuiStructDestroyable {
IMGUI_STYLE->CircleSegmentMaxError = circleSegmentMaxError;
*/
public float[][] getColors() {
final float[][] colors = new float[ImGuiCol.COUNT][4];
getColors(colors);
return colors;
}
/**
* BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
*/