@ -34,10 +34,16 @@ namespace ImGuiNET
public static extern void igShowStyleEditor ( ref NativeStyle @ref ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowTest Window ( ref bool opened ) ;
public static extern void igShowDemo Window ( ref bool opened ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowMetricsWindow ( ref bool opened ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowStyleSelector ( string label ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowFontSelector ( string label ) ;
// Window
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
@ -98,8 +104,6 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextWindowContentSize ( Vector2 size ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextWindowContentWidth ( float width ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextWindowCollapsed ( bool collapsed , Condition cond ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextWindowFocus ( ) ;
@ -137,6 +141,9 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollFromPosY ( float pos_y , float center_y_ratio = 0.5f ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetItemDefaultFocus ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetKeyboardFocusHere ( int offset ) ;
@ -234,7 +241,9 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern float igGetTextLineHeightWithSpacing ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern float igGetItemsLineHeightWithSpacing ( ) ;
public static extern float igGetFrameHeight ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern float igGetFrameHeightWithSpacing ( ) ;
// Columns
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
@ -259,21 +268,21 @@ namespace ImGuiNET
// If you are creating widgets in a loop you most likely want to push a unique identifier so ImGui can differentiate them
// You can also use "##extra" within your widget name to distinguish them from each others (see 'Programmer Guide')
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushId Str ( string str_id ) ;
public static extern void igPushID Str ( string str_id ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushId StrRange ( string str_begin , string str_end ) ;
public static extern void igPushID StrRange ( string str_begin , string str_end ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushId Ptr ( void * ptr_id ) ;
public static extern void igPushID Ptr ( void * ptr_id ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushId Int ( int int_id ) ;
public static extern void igPushID Int ( int int_id ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPopId ( ) ;
public static extern void igPopID ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetId Str ( string str_id ) ;
public static extern uint igGetID Str ( string str_id ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetId StrRange ( string str_begin , string str_end ) ;
public static extern uint igGetID StrRange ( string str_begin , string str_end ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetId Ptr ( void * ptr_id ) ;
public static extern uint igGetID Ptr ( void * ptr_id ) ;
// Widgets
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
@ -324,6 +333,13 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igRadioButton ( string label , int * v , int v_button ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igBeginCombo ( string label , string preview_value , ComboFlags flags ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndCombo ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igCombo ( string label , ref int current_item , string [ ] items , int items_count , int height_in_items ) ;
@ -624,12 +640,38 @@ namespace ImGuiNET
//public static extern void igLogText(string fmt, ...);
public static extern void igLogText ( string fmt ) ;
// Drag-drop
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igBeginDragDropSource ( DragDropFlags flags , int mouse_button ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igSetDragDropPayload ( string type , void * data , uint size , Condition cond ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndDragDropSource ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igBeginDragDropTarget ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern NativePayload * igAcceptDragDropPayload ( string type , DragDropFlags flags ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndDragDropTarget ( ) ;
// Clipping
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushClipRect ( Vector2 clip_rect_min , Vector2 clip_rect_max , byte intersect_with_current_clip_rect ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igPopClipRect ( ) ;
// Built-in Styles
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igStyleColorsClassic ( NativeStyle * dst ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igStyleColorsDark ( NativeStyle * dst ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igStyleColorsLight ( NativeStyle * dst ) ;
// Utilities
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
@ -666,15 +708,6 @@ namespace ImGuiNET
public static extern bool igIsWindowFocused ( FocusedFlags flags ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igIsRootWindowFocused ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igIsRootWindowOrAnyChildFocused ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igIsRootWindowOrAnyChildHovered ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igIsRectVisible ( Vector2 item_size ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
@ -684,6 +717,8 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern int igGetFrameCount ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern NativeDrawList * igGetOverlayDrawList ( ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern string igGetStyleColorName ( ColorTarget idx ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void igCalcItemRectClosestPoint ( out Vector2 pOut , Vector2 pos , bool on_edge , float outward ) ;
@ -892,9 +927,11 @@ namespace ImGuiNET
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
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 ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddPolyline ( NativeDrawList * list , Vector2 * points , int num_points , uint col , byte closed , float thickness , byte anti_aliased ) ;
public static extern void ImDrawList_AddImageRounded ( NativeDrawList * list , void * user_texture_id , Vector2 a , Vector2 b , Vector2 uv_a , Vector2 uv_b , uint col , float rounding , int rounding_corners ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddPolyline ( NativeDrawList * list , Vector2 * points , int num_points , uint col , byte closed , float thickness ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddConvexPolyFilled ( NativeDrawList * list , Vector2 * points , int num_points , uint col , byte anti_aliased ) ;
public static extern void ImDrawList_AddConvexPolyFilled ( NativeDrawList * list , Vector2 * points , int num_points , uint col ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddBezierCurve ( NativeDrawList * list , Vector2 pos0 , Vector2 cp0 , Vector2 cp1 , Vector2 pos1 , uint col , float thickness , int num_segments ) ;
[DllImport(cimguiLib, CallingConvention = CallingConvention.Cdecl)]