@@ -103,7 +103,7 @@ public static unsafe class ImGuiNative
103
103
public static extern void igSetNextWindowCollapsed ( bool collapsed , SetCondition cond ) ;
104
104
[ DllImport ( cimguiLib ) ]
105
105
public static extern void igSetNextWindowFocus ( ) ;
106
- [ DllImport ( cimguiLib ) ]
106
+ [ DllImport ( cimguiLib ) ]
107
107
public static extern void igSetWindowPos ( Vector2 pos , SetCondition cond ) ; //(not recommended)
108
108
[ DllImport ( cimguiLib ) ]
109
109
public static extern void igSetWindowSize ( Vector2 size , SetCondition cond ) ; //(not recommended)
@@ -473,10 +473,10 @@ public static unsafe class ImGuiNative
473
473
[ DllImport ( cimguiLib ) ]
474
474
[ return : MarshalAs ( UnmanagedType . I1 ) ]
475
475
public static extern bool igTreeNode ( string str_label_id ) ;
476
-
476
+
477
477
[ DllImport ( cimguiLib ) ]
478
478
[ return : MarshalAs ( UnmanagedType . I1 ) ]
479
- public static extern bool igTreeNodeEx ( string label , TreeNodeFlags flags = 0 ) ;
479
+ public static extern bool igTreeNodeEx ( string label , TreeNodeFlags flags = 0 ) ;
480
480
481
481
[ DllImport ( cimguiLib ) ]
482
482
[ return : MarshalAs ( UnmanagedType . I1 ) ]
@@ -630,7 +630,7 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
630
630
631
631
// Clipping
632
632
[ DllImport ( cimguiLib ) ]
633
- public static extern void igPushClipRect ( Vector2 clip_rect_min , Vector2 clip_rect_max , byte intersect_with_current_clip_rect ) ;
633
+ public static extern void igPushClipRect ( Vector2 clip_rect_min , Vector2 clip_rect_max , byte intersect_with_current_clip_rect ) ;
634
634
[ DllImport ( cimguiLib ) ]
635
635
public static extern void igPopClipRect ( ) ;
636
636
@@ -685,6 +685,9 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
685
685
public static extern bool igIsRectVisible ( Vector2 item_size ) ;
686
686
[ DllImport ( cimguiLib ) ]
687
687
[ return : MarshalAs ( UnmanagedType . I1 ) ]
688
+ public static extern bool igIsRectVisible2 ( Vector2 * rect_min , Vector2 * rect_max ) ;
689
+ [ DllImport ( cimguiLib ) ]
690
+ [ return : MarshalAs ( UnmanagedType . I1 ) ]
688
691
public static extern bool igIsPosHoveringAnyWindow ( Vector2 pos ) ;
689
692
[ DllImport ( cimguiLib ) ]
690
693
public static extern float igGetTime ( ) ;
@@ -715,16 +718,16 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
715
718
public static extern void igColorConvertHSVtoRGB ( float h , float s , float v , float * out_r , float * out_g , float * out_b ) ;
716
719
717
720
[ DllImport ( cimguiLib ) ]
718
- public static extern int igGetKeyIndex ( int key ) ;
721
+ public static extern int igGetKeyIndex ( int imgui_key ) ;
719
722
[ DllImport ( cimguiLib ) ]
720
723
[ return : MarshalAs ( UnmanagedType . I1 ) ]
721
- public static extern bool igIsKeyDown ( int key_index ) ;
724
+ public static extern bool igIsKeyDown ( int user_key_index ) ;
722
725
[ DllImport ( cimguiLib ) ]
723
726
[ return : MarshalAs ( UnmanagedType . I1 ) ]
724
- public static extern bool igIsKeyPressed ( int key_index , bool repeat ) ;
727
+ public static extern bool igIsKeyPressed ( int user_key_index , bool repeat ) ;
725
728
[ DllImport ( cimguiLib ) ]
726
729
[ return : MarshalAs ( UnmanagedType . I1 ) ]
727
- public static extern bool igIsKeyReleased ( int key_index ) ;
730
+ public static extern bool igIsKeyReleased ( int user_key_index ) ;
728
731
[ DllImport ( cimguiLib ) ]
729
732
[ return : MarshalAs ( UnmanagedType . I1 ) ]
730
733
public static extern bool igIsMouseDown ( int button ) ;
@@ -796,7 +799,7 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
796
799
public static extern void ImFontAtlas_GetTexDataAsAlpha8 ( NativeFontAtlas * atlas , byte * * out_pixels , int * out_width , int * out_height , int * out_bytes_per_pixel ) ;
797
800
798
801
[ DllImport ( cimguiLib ) ]
799
- public static extern void ImFontAtlas_SetTexID ( NativeFontAtlas * atlas , void * tex ) ;
802
+ public static extern void ImFontAtlas_SetTexID ( NativeFontAtlas * atlas , void * id ) ;
800
803
801
804
[ DllImport ( cimguiLib ) ]
802
805
public static extern NativeFont * ImFontAtlas_AddFont ( NativeFontAtlas * atlas , ref FontConfig font_cfg ) ;
@@ -818,7 +821,18 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
818
821
public static extern void ImFontAtlas_ClearTexData ( NativeFontAtlas * atlas ) ;
819
822
[ DllImport ( cimguiLib ) ]
820
823
public static extern void ImFontAtlas_Clear ( NativeFontAtlas * atlas ) ;
821
-
824
+ [ DllImport ( cimguiLib ) ]
825
+ public static extern char * ImFontAtlas_GetGlyphRangesDefault ( NativeFontAtlas * atlas ) ;
826
+ [ DllImport ( cimguiLib ) ]
827
+ public static extern char * ImFontAtlas_GetGlyphRangesKorean ( NativeFontAtlas * atlas ) ;
828
+ [ DllImport ( cimguiLib ) ]
829
+ public static extern char * ImFontAtlas_GetGlyphRangesJapanese ( NativeFontAtlas * atlas ) ;
830
+ [ DllImport ( cimguiLib ) ]
831
+ public static extern char * ImFontAtlas_GetGlyphRangesChinese ( NativeFontAtlas * atlas ) ;
832
+ [ DllImport ( cimguiLib ) ]
833
+ public static extern char * ImFontAtlas_GetGlyphRangesCyrillic ( NativeFontAtlas * atlas ) ;
834
+ [ DllImport ( cimguiLib ) ]
835
+ public static extern char * ImFontAtlas_GetGlyphRangesThai ( NativeFontAtlas * atlas ) ;
822
836
823
837
[ DllImport ( cimguiLib ) ]
824
838
public static extern void ImGuiIO_AddInputCharacter ( ushort c ) ;
@@ -842,6 +856,8 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
842
856
[ DllImport ( cimguiLib ) ]
843
857
public static extern void ImDrawData_DeIndexAllBuffers ( DrawData * drawData ) ;
844
858
[ DllImport ( cimguiLib ) ]
859
+ public static extern void ImDrawData_ScaleClipRects ( DrawData * drawData , Vector2 sc ) ;
860
+ [ DllImport ( cimguiLib ) ]
845
861
public static extern void ImDrawList_Clear ( NativeDrawList * list ) ;
846
862
[ DllImport ( cimguiLib ) ]
847
863
public static extern void ImDrawList_ClearFreeMemory ( NativeDrawList * list ) ;
@@ -858,9 +874,9 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
858
874
[ DllImport ( cimguiLib ) ]
859
875
public static extern void ImDrawList_AddLine ( NativeDrawList * list , Vector2 a , Vector2 b , uint col , float thickness ) ;
860
876
[ DllImport ( cimguiLib ) ]
861
- public static extern void ImDrawList_AddRect ( NativeDrawList * list , Vector2 a , Vector2 b , uint col , float rounding , int rounding_corners , float thickness ) ;
877
+ public static extern void ImDrawList_AddRect ( NativeDrawList * list , Vector2 a , Vector2 b , uint col , float rounding , int rounding_corners_flags , float thickness ) ;
862
878
[ DllImport ( cimguiLib ) ]
863
- public static extern void ImDrawList_AddRectFilled ( NativeDrawList * list , Vector2 a , Vector2 b , uint col , float rounding , int rounding_corners ) ;
879
+ public static extern void ImDrawList_AddRectFilled ( NativeDrawList * list , Vector2 a , Vector2 b , uint col , float rounding , int rounding_corners_flags ) ;
864
880
[ DllImport ( cimguiLib ) ]
865
881
public static extern void ImDrawList_AddRectFilledMultiColor ( NativeDrawList * list , Vector2 a , Vector2 b , uint col_upr_left , uint col_upr_right , uint col_bot_right , uint col_bot_left ) ;
866
882
[ DllImport ( cimguiLib ) ]
@@ -880,7 +896,9 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
880
896
[ DllImport ( cimguiLib ) ]
881
897
public static extern void ImDrawList_AddTextExt ( NativeDrawList * list , NativeFont * font , float font_size , Vector2 pos , uint col , byte * text_begin , byte * text_end , float wrap_width , Vector4 * cpu_fine_clip_rect ) ;
882
898
[ DllImport ( cimguiLib ) ]
883
- public static extern void ImDrawList_AddImage ( NativeDrawList * list , void * user_texture_id , Vector2 a , Vector2 b , Vector2 uv0 , Vector2 uv1 , uint col ) ;
899
+ public static extern void ImDrawList_AddImage ( NativeDrawList * list , void * user_texture_id , Vector2 a , Vector2 b , Vector2 uv_a , Vector2 uv_b , uint col ) ;
900
+ [ DllImport ( cimguiLib ) ]
901
+ public static extern void ImDrawList_AddImageQuad ( NativeDrawList * list , void * user_texture_id , Vector2 a , Vector2 b , Vector2 c , Vector2 d , Vector2 uv_a , Vector2 uv_b , Vector2 uv_c , Vector2 uv_d , uint col ) ;
884
902
[ DllImport ( cimguiLib ) ]
885
903
public static extern void ImDrawList_AddPolyline ( NativeDrawList * list , Vector2 * points , int num_points , uint col , byte closed , float thickness , byte anti_aliased ) ;
886
904
[ DllImport ( cimguiLib ) ]
@@ -894,7 +912,7 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
894
912
[ DllImport ( cimguiLib ) ]
895
913
public static extern void ImDrawList_PathLineToMergeDuplicate ( NativeDrawList * list , Vector2 pos ) ;
896
914
[ DllImport ( cimguiLib ) ]
897
- public static extern void ImDrawList_PathFill ( NativeDrawList * list , uint col ) ;
915
+ public static extern void ImDrawList_PathFillConvex ( NativeDrawList * list , uint col ) ;
898
916
[ DllImport ( cimguiLib ) ]
899
917
public static extern void ImDrawList_PathStroke ( NativeDrawList * list , uint col , byte closed , float thickness ) ;
900
918
[ DllImport ( cimguiLib ) ]
@@ -904,7 +922,7 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
904
922
[ DllImport ( cimguiLib ) ]
905
923
public static extern void ImDrawList_PathBezierCurveTo ( NativeDrawList * list , Vector2 p1 , Vector2 p2 , Vector2 p3 , int num_segments ) ;
906
924
[ DllImport ( cimguiLib ) ]
907
- public static extern void ImDrawList_PathRect ( NativeDrawList * list , Vector2 rect_min , Vector2 rect_max , float rounding , int rounding_corners ) ;
925
+ public static extern void ImDrawList_PathRect ( NativeDrawList * list , Vector2 rect_min , Vector2 rect_max , float rounding , int rounding_corners_flags ) ;
908
926
[ DllImport ( cimguiLib ) ]
909
927
public static extern void ImDrawList_ChannelsSplit ( NativeDrawList * list , int channels_count ) ;
910
928
[ DllImport ( cimguiLib ) ]
@@ -933,6 +951,73 @@ public static bool igBeginPopupModal(string name, ref bool p_opened, WindowFlags
933
951
public static extern void ImDrawList_UpdateClipRect ( NativeDrawList * list ) ;
934
952
[ DllImport ( cimguiLib ) ]
935
953
public static extern void ImDrawList_UpdateTextureID ( NativeDrawList * list ) ;
954
+
955
+ // List Clipper
956
+ [ DllImport ( cimguiLib ) ]
957
+ public static extern void ImGuiListClipper_Begin ( void * clipper , int count , float items_height ) ;
958
+ [ DllImport ( cimguiLib ) ]
959
+ public static extern void ImGuiListClipper_End ( void * clipper ) ;
960
+ [ DllImport ( cimguiLib ) ]
961
+ [ return : MarshalAs ( UnmanagedType . I1 ) ]
962
+ public static extern bool ImGuiListClipper_Step ( void * clipper ) ;
963
+ [ DllImport ( cimguiLib ) ]
964
+ public static extern int ImGuiListClipper_GetDisplayStart ( void * clipper ) ;
965
+ [ DllImport ( cimguiLib ) ]
966
+ public static extern int ImGuiListClipper_GetDisplayEnd ( void * clipper ) ;
967
+
968
+ // ImGuiTextFilter
969
+ [ DllImport ( cimguiLib ) ]
970
+ public static extern void ImGuiTextFilter_Init ( void * filter , char * default_filter ) ;
971
+ [ DllImport ( cimguiLib ) ]
972
+ public static extern void ImGuiTextFilter_Clear ( void * filter ) ;
973
+ [ DllImport ( cimguiLib ) ]
974
+ public static extern bool ImGuiTextFilter_Draw ( void * filter , char * label , float width ) ;
975
+ [ DllImport ( cimguiLib ) ]
976
+ public static extern bool ImGuiTextFilter_PassFilter ( void * filter , char * text , char * text_end ) ;
977
+ [ DllImport ( cimguiLib ) ]
978
+ public static extern bool ImGuiTextFilter_IsActive ( void * filter ) ;
979
+ [ DllImport ( cimguiLib ) ]
980
+ public static extern void ImGuiTextFilter_Build ( void * filter ) ;
981
+
982
+ // ImGuiTextEditCallbackData
983
+ [ DllImport ( cimguiLib ) ]
984
+ public static extern void ImGuiTextEditCallbackData_DeleteChars ( void * data , int pos , int bytes_count ) ;
985
+ [ DllImport ( cimguiLib ) ]
986
+ public static extern void ImGuiTextEditCallbackData_InsertChars ( void * data , int pos , char * text , char * text_end ) ;
987
+ [ DllImport ( cimguiLib ) ]
988
+ public static extern bool ImGuiTextEditCallbackData_HasSelection ( void * data ) ;
989
+
990
+ // ImGuiStorage
991
+ [ DllImport ( cimguiLib ) ]
992
+ public static extern void ImGuiStorage_Init ( void * storage ) ;
993
+ [ DllImport ( cimguiLib ) ]
994
+ public static extern void ImGuiStorage_Clear ( void * storage ) ;
995
+ [ DllImport ( cimguiLib ) ]
996
+ public static extern int ImGuiStorage_GetInt ( void * storage , uint key , int default_val ) ;
997
+ [ DllImport ( cimguiLib ) ]
998
+ public static extern void ImGuiStorage_SetInt ( void * storage , uint key , int val ) ;
999
+ [ DllImport ( cimguiLib ) ]
1000
+ public static extern bool ImGuiStorage_GetBool ( void * storage , uint key , bool default_val ) ;
1001
+ [ DllImport ( cimguiLib ) ]
1002
+ public static extern void ImGuiStorage_SetBool ( void * storage , uint key , bool val ) ;
1003
+ [ DllImport ( cimguiLib ) ]
1004
+ public static extern float ImGuiStorage_GetFloat ( void * storage , uint key , float default_val ) ;
1005
+ [ DllImport ( cimguiLib ) ]
1006
+ public static extern void ImGuiStorage_SetFloat ( void * storage , uint key , float val ) ;
1007
+ [ DllImport ( cimguiLib ) ]
1008
+ public static extern void * ImGuiStorage_GetVoidPtr ( void * storage , uint key ) ;
1009
+ [ DllImport ( cimguiLib ) ]
1010
+ public static extern void ImGuiStorage_SetVoidPtr ( void * storage , uint key , void * val ) ;
1011
+ [ DllImport ( cimguiLib ) ]
1012
+ public static extern int * ImGuiStorage_GetIntRef ( void * storage , uint key , int default_val ) ;
1013
+ [ DllImport ( cimguiLib ) ]
1014
+ public static extern bool * ImGuiStorage_GetBoolRef ( void * storage , uint key , bool default_val ) ;
1015
+ [ DllImport ( cimguiLib ) ]
1016
+ public static extern float * ImGuiStorage_GetFloatRef ( void * storage , uint key , float default_val ) ;
1017
+ [ DllImport ( cimguiLib ) ]
1018
+ public static extern void * * ImGuiStorage_GetVoidPtrRef ( void * storage , uint key , void * default_val ) ;
1019
+ [ DllImport ( cimguiLib ) ]
1020
+ public static extern void ImGuiStorage_SetAllInt ( void * storage , int val ) ;
936
1021
}
937
1022
938
1023
public delegate bool ItemSelectedCallback ( IntPtr data , int index , string out_text ) ;
0 commit comments