@@ -629,7 +629,7 @@ public static ImDrawList getWindowDrawList() {
629
629
* Set named window collapsed state
630
630
*/
631
631
public static native void setWindowCollapsed (String name , boolean collapsed ); /*
632
- ImGui::SetWindowCollapsed(name, collapsed);
632
+ ImGui::SetWindowCollapsed(name, collapsed, 0 );
633
633
*/
634
634
635
635
/**
@@ -1250,14 +1250,14 @@ public static ImFont getFont() {
1250
1250
* Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();
1251
1251
*/
1252
1252
public static native void textColored (float r , float g , float b , float a , String text ); /*
1253
- ImGui::TextColored(ImVec4(r, g, b, a), text);
1253
+ ImGui::TextColored(ImVec4(r, g, b, a), text, NULL );
1254
1254
*/
1255
1255
1256
1256
/**
1257
1257
* Shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor();
1258
1258
*/
1259
1259
public static native void textDisabled (String text ); /*
1260
- ImGui::TextDisabled(text);
1260
+ ImGui::TextDisabled(text, NULL );
1261
1261
*/
1262
1262
1263
1263
/**
@@ -1266,21 +1266,21 @@ public static ImFont getFont() {
1266
1266
* yoy may need to set a size using SetNextWindowSize().
1267
1267
*/
1268
1268
public static native void textWrapped (String text ); /*
1269
- ImGui::TextWrapped(text);
1269
+ ImGui::TextWrapped(text, NULL );
1270
1270
*/
1271
1271
1272
1272
/**
1273
1273
* Display text+label aligned the same way as value+label widgets
1274
1274
*/
1275
1275
public static native void labelText (String label , String text ); /*
1276
- ImGui::LabelText(label, text);
1276
+ ImGui::LabelText(label, text, NULL );
1277
1277
*/
1278
1278
1279
1279
/**
1280
1280
* Shortcut for Bullet()+Text()
1281
1281
*/
1282
1282
public static native void bulletText (String text ); /*
1283
- ImGui::BulletText(text);
1283
+ ImGui::BulletText(text, NULL );
1284
1284
*/
1285
1285
1286
1286
// Widgets: Main
@@ -1323,65 +1323,65 @@ public static ImFont getFont() {
1323
1323
*/
1324
1324
1325
1325
public static native void image (int textureID , float sizeX , float sizeY ); /*
1326
- ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY));
1326
+ ImGui::Image((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY));
1327
1327
*/
1328
1328
1329
1329
public static native void image (int textureID , float sizeX , float sizeY , float uv0X , float uv0Y ); /*
1330
- ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y));
1330
+ ImGui::Image((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y));
1331
1331
*/
1332
1332
1333
1333
public static native void image (int textureID , float sizeX , float sizeY , float uv0X , float uv0Y , float uv1X , float uv1Y ); /*
1334
- ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y));
1334
+ ImGui::Image((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y));
1335
1335
*/
1336
1336
1337
1337
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 ); /*
1338
- ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), ImVec4(tintColorR, tintColorG, tintColorB, tintColorA));
1338
+ ImGui::Image((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), ImVec4(tintColorR, tintColorG, tintColorB, tintColorA));
1339
1339
*/
1340
1340
1341
1341
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 ); /*
1342
- ImGui::Image((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), ImVec4(tintColorR, tintColorG, tintColorB, tintColorA), ImVec4(borderR, borderG, borderB, borderA));
1342
+ ImGui::Image((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), ImVec4(tintColorR, tintColorG, tintColorB, tintColorA), ImVec4(borderR, borderG, borderB, borderA));
1343
1343
*/
1344
1344
1345
1345
/**
1346
1346
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1347
1347
*/
1348
1348
public static native boolean imageButton (int textureID , float sizeX , float sizeY ); /*
1349
- return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY));
1349
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY));
1350
1350
*/
1351
1351
1352
1352
/**
1353
1353
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1354
1354
*/
1355
1355
public static native boolean imageButton (int textureID , float sizeX , float sizeY , float uv0X , float uv0Y ); /*
1356
- return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y));
1356
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y));
1357
1357
*/
1358
1358
1359
1359
/**
1360
1360
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1361
1361
*/
1362
1362
public static native boolean imageButton (int textureID , float sizeX , float sizeY , float uv0X , float uv0Y , float uv1X , float uv1Y ); /*
1363
- return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y));
1363
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y));
1364
1364
*/
1365
1365
1366
1366
/**
1367
1367
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1368
1368
*/
1369
1369
public static native boolean imageButton (int textureID , float sizeX , float sizeY , float uv0X , float uv0Y , float uv1X , float uv1Y , int framePadding ); /*
1370
- return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding);
1370
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding);
1371
1371
*/
1372
1372
1373
1373
/**
1374
1374
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1375
1375
*/
1376
1376
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 ); /*
1377
- return ImGui::ImageButton((ImTextureID)textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding, ImVec4(bgColorR, bgColorG, bgColorB, bgColorA));
1377
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding, ImVec4(bgColorR, bgColorG, bgColorB, bgColorA));
1378
1378
*/
1379
1379
1380
1380
/**
1381
1381
* {@code <0} framePadding uses default frame padding settings. 0 for no padding
1382
1382
*/
1383
1383
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 ); /*
1384
- 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));
1384
+ return ImGui::ImageButton((ImTextureID)(intptr_t) textureID, ImVec2(sizeX, sizeY), ImVec2(uv0X, uv0Y), ImVec2(uv1X, uv1Y), framePadding, ImVec4(bgColorR, bgColorG, bgColorB, bgColorA), ImVec4(tintR, tintG, tintB, tintA));
1385
1385
*/
1386
1386
1387
1387
public static boolean checkbox (String label , ImBool active ) {
@@ -3247,19 +3247,19 @@ public static boolean inputScalarN(String label, int dataType, ImShort pData, in
3247
3247
// - 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.
3248
3248
3249
3249
public static native boolean treeNode (String label ); /*
3250
- return ImGui::TreeNode(label);
3250
+ return ImGui::TreeNode(label, NULL );
3251
3251
*/
3252
3252
3253
3253
/**
3254
3254
* Helper variation to easily decorelate the id from the displayed string.
3255
3255
* 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().
3256
3256
*/
3257
3257
public static native boolean treeNode (String strId , String label ); /*
3258
- return ImGui::TreeNode(strId, label);
3258
+ return ImGui::TreeNode(strId, label, NULL );
3259
3259
*/
3260
3260
3261
3261
public static native boolean treeNode (long ptrId , String label ); /*
3262
- return ImGui::TreeNode((void*)ptrId, label);
3262
+ return ImGui::TreeNode((void*)ptrId, label, NULL );
3263
3263
*/
3264
3264
3265
3265
public static native boolean treeNodeEx (String label ); /*
@@ -3271,11 +3271,11 @@ public static boolean inputScalarN(String label, int dataType, ImShort pData, in
3271
3271
*/
3272
3272
3273
3273
public static native boolean treeNodeEx (String strId , int imGuiTreeNodeFlags , String label ); /*
3274
- return ImGui::TreeNodeEx(strId, imGuiTreeNodeFlags, label);
3274
+ return ImGui::TreeNodeEx(strId, imGuiTreeNodeFlags, label, NULL );
3275
3275
*/
3276
3276
3277
3277
public static native boolean treeNodeEx (int ptrId , int imGuiTreeNodeFlags , String label ); /*
3278
- return ImGui::TreeNodeEx((void*)(intptr_t)ptrId, imGuiTreeNodeFlags, label);
3278
+ return ImGui::TreeNodeEx((void*)(intptr_t)ptrId, imGuiTreeNodeFlags, label, NULL );
3279
3279
*/
3280
3280
3281
3281
/**
@@ -3647,7 +3647,7 @@ public static boolean menuItem(String label, String shortcut, ImBool pSelected,
3647
3647
* Set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip().
3648
3648
*/
3649
3649
public static native void setTooltip (String text ); /*
3650
- ImGui::SetTooltip(text);
3650
+ ImGui::SetTooltip(text, NULL );
3651
3651
*/
3652
3652
3653
3653
// Popups, Modals
@@ -4065,7 +4065,7 @@ public static boolean beginTabItem(String label, ImBool pOpen, int imGuiTabBarFl
4065
4065
* Pass text data straight to log (without being displayed)
4066
4066
*/
4067
4067
public static native void logText (String text ); /*
4068
- ImGui::LogText(text);
4068
+ ImGui::LogText(text, NULL );
4069
4069
*/
4070
4070
4071
4071
// Drag and Drop
0 commit comments