@@ -236,10 +236,18 @@ public static boolean begin(String title, ImBool pOpen) {
236
236
return nBegin (title , pOpen .data , 0 );
237
237
}
238
238
239
+ public static boolean begin (String title , int imGuiWindowFlags ) {
240
+ return nBegin (title , imGuiWindowFlags );
241
+ }
242
+
239
243
public static boolean begin (String title , ImBool pOpen , int imGuiWindowFlags ) {
240
244
return nBegin (title , pOpen .data , imGuiWindowFlags );
241
245
}
242
246
247
+ private static native boolean nBegin (String title , int imGuiWindowFlags ); /*
248
+ return ImGui::Begin(title, NULL, imGuiWindowFlags);
249
+ */
250
+
243
251
private static native boolean nBegin (String title , boolean [] pOpen , int imGuiWindowFlags ); /*
244
252
return ImGui::Begin(title, &pOpen[0], imGuiWindowFlags);
245
253
*/
@@ -3196,7 +3204,7 @@ public static boolean collapsingHeader(String label, ImBool pOpen, int imGuiTree
3196
3204
}
3197
3205
3198
3206
private static native boolean nCollapsingHeader (String label , boolean [] pOpen , int imGuiTreeNodeFlags ); /*
3199
- return ImGui::CollapsingHeader(label, pOpen, imGuiTreeNodeFlags);
3207
+ return ImGui::CollapsingHeader(label, & pOpen[0] , imGuiTreeNodeFlags);
3200
3208
*/
3201
3209
3202
3210
/**
@@ -3627,13 +3635,24 @@ public static boolean beginPopupModal(String name, ImBool pOpen) {
3627
3635
return nBeginPopupModal (name , pOpen .data , 0 );
3628
3636
}
3629
3637
3638
+ /**
3639
+ * Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)
3640
+ */
3641
+ public static boolean beginPopupModal (String name , int imGuiWindowFlags ) {
3642
+ return nBeginPopupModal (name , imGuiWindowFlags );
3643
+ }
3644
+
3630
3645
/**
3631
3646
* Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)
3632
3647
*/
3633
3648
public static boolean beginPopupModal (String name , ImBool pOpen , int imGuiWindowFlags ) {
3634
3649
return nBeginPopupModal (name , pOpen .data , imGuiWindowFlags );
3635
3650
}
3636
3651
3652
+ private static native boolean nBeginPopupModal (String name , int imGuiWindowFlags ); /*
3653
+ return ImGui::BeginPopupModal(name, NULL, imGuiWindowFlags);
3654
+ */
3655
+
3637
3656
private static native boolean nBeginPopupModal (String name , boolean [] pOpen , int imGuiWindowFlags ); /*
3638
3657
return ImGui::BeginPopupModal(name, &pOpen[0], imGuiWindowFlags);
3639
3658
*/
@@ -3801,13 +3820,24 @@ public static boolean beginTabItem(String label, ImBool pOpen) {
3801
3820
return nBeginTabItem (label , pOpen .data , 0 );
3802
3821
}
3803
3822
3823
+ /**
3824
+ * Create a Tab. Returns true if the Tab is selected.
3825
+ */
3826
+ public static boolean beginTabItem (String label , int imGuiTabBarFlags ) {
3827
+ return nBeginTabItem (label , imGuiTabBarFlags );
3828
+ }
3829
+
3804
3830
/**
3805
3831
* Create a Tab. Returns true if the Tab is selected.
3806
3832
*/
3807
3833
public static boolean beginTabItem (String label , ImBool pOpen , int imGuiTabBarFlags ) {
3808
3834
return nBeginTabItem (label , pOpen .data , imGuiTabBarFlags );
3809
3835
}
3810
3836
3837
+ private static native boolean nBeginTabItem (String label , int imGuiTabBarFlags ); /*
3838
+ return ImGui::BeginTabItem(label, NULL, imGuiTabBarFlags);
3839
+ */
3840
+
3811
3841
private static native boolean nBeginTabItem (String label , boolean [] pOpen , int imGuiTabBarFlags ); /*
3812
3842
return ImGui::BeginTabItem(label, &pOpen[0], imGuiTabBarFlags);
3813
3843
*/
0 commit comments