Skip to content

Commit b25b5d5

Browse files
committed
Make getID to return int instead of long
1 parent 8ac87a9 commit b25b5d5

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

imgui-binding/src/main/java/imgui/ImGui.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,15 +1284,21 @@ public static ImFont getFont() {
12841284
/**
12851285
* Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself
12861286
*/
1287-
public static native long getID(String strId); /*
1287+
public static native int getID(String strId); /*
12881288
return ImGui::GetID(strId);
12891289
*/
12901290

1291-
public static native long getID(String strIdBegin, String strIdEnd); /*
1291+
/**
1292+
* Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself
1293+
*/
1294+
public static native int getID(String strIdBegin, String strIdEnd); /*
12921295
return ImGui::GetID(strIdBegin, strIdEnd);
12931296
*/
12941297

1295-
public static native long getID(long ptrId); /*
1298+
/**
1299+
* Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself
1300+
*/
1301+
public static native int getID(long ptrId); /*
12961302
return ImGui::GetID((void*)ptrId);
12971303
*/
12981304

@@ -4657,7 +4663,7 @@ public static ImDrawList getForegroundDrawListNew() {
46574663

46584664
// Color Utilities
46594665

4660-
public static native void colorConvertU32ToFloat4(long in, ImVec4 dstImVec4); /*
4666+
public static native void colorConvertU32ToFloat4(int in, ImVec4 dstImVec4); /*
46614667
Jni::ImVec4Cpy(env, ImGui::ColorConvertU32ToFloat4(in), dstImVec4);
46624668
*/
46634669

0 commit comments

Comments
 (0)