@ -71,10 +71,6 @@ namespace ImGuiNET
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern DrawList * igGetWindowDrawList ( ) ;
public static extern DrawList * igGetWindowDrawList ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern NativeFont * igGetWindowFont ( ) ;
[DllImport(cimguiLib)]
public static extern float igGetWindowFontSize ( ) ;
[DllImport(cimguiLib)]
public static extern void igSetWindowFontScale ( float scale ) ;
public static extern void igSetWindowFontScale ( float scale ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igGetWindowPos ( out Vector2 @out ) ;
public static extern void igGetWindowPos ( out Vector2 @out ) ;
@ -102,14 +98,14 @@ namespace ImGuiNET
public static extern void igSetNextWindowCollapsed ( bool collapsed , SetCondition cond ) ;
public static extern void igSetNextWindowCollapsed ( bool collapsed , SetCondition cond ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetNextWindowFocus ( ) ;
public static extern void igSetNextWindowFocus ( ) ;
[DllImport(cimguiLib)]
public static extern void igSetWindowPos ( Vector2 pos , SetCondition cond ) ; //(not recommended)
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetWindowPos ( Vector2 pos , SetCondition cond ) ;
public static extern void igSetWindowSize ( Vector2 size , SetCondition cond ) ; //(not recommended)
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetWindowSize ( Vector2 size , SetCondition cond ) ;
public static extern void igSetWindowCollapsed ( bool collapsed , SetCondition cond ) ; //(not recommended)
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetWindowCollapsed ( bool collapsed , SetCondition cond ) ;
public static extern void igSetWindowFocus ( ) ; //(not recommended)
[DllImport(cimguiLib)]
public static extern void igSetWindowFocus ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetWindowPosByName ( string name , Vector2 pos , SetCondition cond ) ;
public static extern void igSetWindowPosByName ( string name , Vector2 pos , SetCondition cond ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
@ -160,6 +156,10 @@ namespace ImGuiNET
public static extern void igPushStyleVarVec ( StyleVar idx , Vector2 val ) ;
public static extern void igPushStyleVarVec ( StyleVar idx , Vector2 val ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igPopStyleVar ( int count ) ;
public static extern void igPopStyleVar ( int count ) ;
[DllImport(cimguiLib)]
public static extern NativeFont * igGetFont ( ) ;
[DllImport(cimguiLib)]
public static extern float igGetFontSize ( ) ;
// Parameters stacks (current window)
// Parameters stacks (current window)
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
@ -183,10 +183,6 @@ namespace ImGuiNET
// Layout
// Layout
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igBeginGroup ( ) ;
[DllImport(cimguiLib)]
public static extern void igEndGroup ( ) ;
[DllImport(cimguiLib)]
public static extern void igSeparator ( ) ;
public static extern void igSeparator ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSameLine ( float local_pos_x , float spacing_w ) ;
public static extern void igSameLine ( float local_pos_x , float spacing_w ) ;
@ -195,23 +191,13 @@ namespace ImGuiNET
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igDummy ( Vector2 * size ) ;
public static extern void igDummy ( Vector2 * size ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igIndent ( ) ;
public static extern void igIndent ( float indent_w = 0.0f ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igUnindent ( ) ;
public static extern void igUnindent ( float indent_w = 0.0f ) ;
[DllImport(cimguiLib)]
public static extern void igColumns ( int count , string id , bool border ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igNextColumn ( ) ;
public static extern void igBeginGroup ( ) ;
[DllImport(cimguiLib)]
public static extern int igGetColumnIndex ( ) ;
[DllImport(cimguiLib)]
public static extern float igGetColumnOffset ( int column_index ) ;
[DllImport(cimguiLib)]
public static extern void igSetColumnOffset ( int column_index , float offset_x ) ;
[DllImport(cimguiLib)]
public static extern float igGetColumnWidth ( int column_index ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern int igGetColumnsCount ( ) ;
public static extern void igEndGroup ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igGetCursorPos ( Vector2 * pOut ) ;
public static extern void igGetCursorPos ( Vector2 * pOut ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
@ -239,6 +225,23 @@ namespace ImGuiNET
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern float igGetItemsLineHeightWithSpacing ( ) ;
public static extern float igGetItemsLineHeightWithSpacing ( ) ;
// Columns
[DllImport(cimguiLib)]
public static extern void igColumns ( int count , string id , bool border ) ;
[DllImport(cimguiLib)]
public static extern void igNextColumn ( ) ;
[DllImport(cimguiLib)]
public static extern int igGetColumnIndex ( ) ;
[DllImport(cimguiLib)]
public static extern float igGetColumnOffset ( int column_index ) ;
[DllImport(cimguiLib)]
public static extern void igSetColumnOffset ( int column_index , float offset_x ) ;
[DllImport(cimguiLib)]
public static extern float igGetColumnWidth ( int column_index ) ;
[DllImport(cimguiLib)]
public static extern int igGetColumnsCount ( ) ;
// ID scopes
// ID scopes
// If you are creating widgets in a loop you most likely want to push a unique identifier so ImGui can differentiate them
// 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')
// You can also use "##extra" within your widget name to distinguish them from each others (see 'Programmer Guide')
@ -298,9 +301,6 @@ namespace ImGuiNET
public static extern bool igImageButton ( IntPtr user_texture_id , Vector2 size , Vector2 uv0 , Vector2 uv1 , int frame_padding , Vector4 bg_col , Vector4 tint_col ) ;
public static extern bool igImageButton ( IntPtr user_texture_id , Vector2 size , Vector2 uv0 , Vector2 uv1 , int frame_padding , Vector4 bg_col , Vector4 tint_col ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
[return: MarshalAs(UnmanagedType.I1)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igCollapsingHeader ( string label , string str_id , bool display_frame , bool default_open ) ;
[DllImport(cimguiLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igCheckbox ( string label , ref bool v ) ;
public static extern bool igCheckbox ( string label , ref bool v ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
[return: MarshalAs(UnmanagedType.I1)]
[return: MarshalAs(UnmanagedType.I1)]
@ -471,6 +471,12 @@ namespace ImGuiNET
public static extern void igTreePop ( ) ;
public static extern void igTreePop ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern void igSetNextTreeNodeOpened ( bool opened , SetCondition cond ) ;
public static extern void igSetNextTreeNodeOpened ( bool opened , SetCondition cond ) ;
[DllImport(cimguiLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igCollapsingHeader ( string label , TreeNodeFlags flags = 0 ) ;
[DllImport(cimguiLib)]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool igCollapsingHeader ( string label , ref bool p_open , TreeNodeFlags flags = 0 ) ;
// Widgets: Selectable / Lists
// Widgets: Selectable / Lists
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
@ -645,12 +651,6 @@ namespace ImGuiNET
public static extern float igGetTime ( ) ;
public static extern float igGetTime ( ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern int igGetFrameCount ( ) ;
public static extern int igGetFrameCount ( ) ;
internal static void igPushFont ( object nativeFont )
{
throw new NotImplementedException ( ) ;
}
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern string igGetStyleColName ( ColorTarget idx ) ;
public static extern string igGetStyleColName ( ColorTarget idx ) ;
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
@ -738,12 +738,12 @@ namespace ImGuiNET
// public state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself
// public state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]
public static extern string igGetVersion ( ) ;
public static extern string igGetVersion ( ) ;
[DllImport(cimguiLib)]
/ *
public static extern void * igGetpublicState ( ) ;
CIMGUI_API struct ImGuiContext * igCreateContext ( void * ( * malloc_fn ) ( size_t ) , void ( * free_fn ) ( void * ) ) ;
[DllImport(cimguiLib)]
CIMGUI_API void igDestroyContext ( struct ImGuiContext * ctx ) ;
public static extern uint igGetpublicStateSize ( ) ;
CIMGUI_API struct ImGuiContext * igGetCurrentContext ( ) ;
[DllImport(cimguiLib)]
CIMGUI_API void igSetCurrentContext ( struct ImGuiContext * ctx ) ;
public static extern void igSetpublicState ( void * state , bool construct ) ;
* /
[DllImport(cimguiLib)]
[DllImport(cimguiLib)]