Updating ImGui to 1.84.1

internals
Zaafar Ahmed 3 years ago
parent 7243a0f3c4
commit 1256c7634c
  1. BIN
      deps/cimgui/linux-x64/cimgui.so
  2. BIN
      deps/cimgui/osx-x64/cimgui.dylib
  3. BIN
      deps/cimgui/win-x64/cimgui.dll
  4. BIN
      deps/cimgui/win-x86/cimgui.dll
  5. 4241
      src/CodeGenerator/definitions/cimgui/definitions.json
  6. 879
      src/CodeGenerator/definitions/cimgui/structs_and_enums.json
  7. 2
      src/ImGui.NET.SampleProgram/MemoryEditor.cs
  8. 5
      src/ImGui.NET/Generated/ImDrawCmd.gen.cs
  9. 4
      src/ImGui.NET/Generated/ImDrawList.gen.cs
  10. 6
      src/ImGui.NET/Generated/ImFont.gen.cs
  11. 2
      src/ImGui.NET/Generated/ImFontAtlas.gen.cs
  12. 332
      src/ImGui.NET/Generated/ImGui.gen.cs
  13. 2
      src/ImGui.NET/Generated/ImGuiColorEditFlags.gen.cs
  14. 27
      src/ImGui.NET/Generated/ImGuiIO.gen.cs
  15. 2
      src/ImGui.NET/Generated/ImGuiInputTextFlags.gen.cs
  16. 180
      src/ImGui.NET/Generated/ImGuiNative.gen.cs
  17. 11
      src/ImGui.NET/Generated/ImGuiNavInput.gen.cs
  18. 2
      src/ImGui.NET/Generated/ImGuiStyle.gen.cs
  19. 49
      src/ImGui.NET/Generated/ImGuiStyleVar.gen.cs
  20. 48
      src/ImGui.NET/Generated/ImGuiTableColumnFlags.gen.cs
  21. 2
      src/ImGui.NET/Generated/ImGuiWindowClass.gen.cs
  22. 4
      src/ImGui.NET/ImDrawList.Manual.cs

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -104,7 +104,7 @@ namespace ImGuiNET
float scroll_offset = ((DataEditingAddr / Rows) - (data_editing_addr_backup / Rows)) * line_height;
bool scroll_desired = (scroll_offset < 0.0f && DataEditingAddr < visible_start_addr + Rows * 2) || (scroll_offset > 0.0f && DataEditingAddr > visible_end_addr - Rows * 2);
if (scroll_desired)
ImGuiNative.igSetScrollYFloat(ImGuiNative.igGetScrollY() + scroll_offset);
ImGuiNative.igSetScrollY_Float(ImGuiNative.igGetScrollY() + scroll_offset);
}
for (int line_i = clipper.DisplayStart; line_i < clipper.DisplayEnd; line_i++) // display only visible items

@ -34,5 +34,10 @@ namespace ImGuiNET
{
ImGuiNative.ImDrawCmd_destroy((ImDrawCmd*)(NativePtr));
}
public IntPtr GetTexID()
{
IntPtr ret = ImGuiNative.ImDrawCmd_GetTexID((ImDrawCmd*)(NativePtr));
return ret;
}
}
}

@ -83,6 +83,10 @@ namespace ImGuiNET
{
ImGuiNative.ImDrawList__ResetForNewFrame((ImDrawList*)(NativePtr));
}
public void _TryMergeDrawCmds()
{
ImGuiNative.ImDrawList__TryMergeDrawCmds((ImDrawList*)(NativePtr));
}
public void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness)
{
int num_segments = 0;

@ -18,6 +18,7 @@ namespace ImGuiNET
public short ConfigDataCount;
public ushort FallbackChar;
public ushort EllipsisChar;
public ushort DotChar;
public byte DirtyLookupTables;
public float Scale;
public float Ascent;
@ -44,6 +45,7 @@ namespace ImGuiNET
public ref short ConfigDataCount => ref Unsafe.AsRef<short>(&NativePtr->ConfigDataCount);
public ref ushort FallbackChar => ref Unsafe.AsRef<ushort>(&NativePtr->FallbackChar);
public ref ushort EllipsisChar => ref Unsafe.AsRef<ushort>(&NativePtr->EllipsisChar);
public ref ushort DotChar => ref Unsafe.AsRef<ushort>(&NativePtr->DotChar);
public ref bool DirtyLookupTables => ref Unsafe.AsRef<bool>(&NativePtr->DirtyLookupTables);
public ref float Scale => ref Unsafe.AsRef<float>(&NativePtr->Scale);
public ref float Ascent => ref Unsafe.AsRef<float>(&NativePtr->Ascent);
@ -111,10 +113,6 @@ namespace ImGuiNET
ImDrawList* native_draw_list = draw_list.NativePtr;
ImGuiNative.ImFont_RenderChar((ImFont*)(NativePtr), native_draw_list, size, pos, col, c);
}
public void SetFallbackChar(ushort c)
{
ImGuiNative.ImFont_SetFallbackChar((ImFont*)(NativePtr), c);
}
public void SetGlyphVisible(ushort c, bool visible)
{
byte native_visible = visible ? (byte)1 : (byte)0;

@ -12,6 +12,7 @@ namespace ImGuiNET
public int TexDesiredWidth;
public int TexGlyphPadding;
public byte Locked;
public byte TexReady;
public byte TexPixelsUseColors;
public byte* TexPixelsAlpha8;
public uint* TexPixelsRGBA32;
@ -104,6 +105,7 @@ namespace ImGuiNET
public ref int TexDesiredWidth => ref Unsafe.AsRef<int>(&NativePtr->TexDesiredWidth);
public ref int TexGlyphPadding => ref Unsafe.AsRef<int>(&NativePtr->TexGlyphPadding);
public ref bool Locked => ref Unsafe.AsRef<bool>(&NativePtr->Locked);
public ref bool TexReady => ref Unsafe.AsRef<bool>(&NativePtr->TexReady);
public ref bool TexPixelsUseColors => ref Unsafe.AsRef<bool>(&NativePtr->TexPixelsUseColors);
public IntPtr TexPixelsAlpha8 { get => (IntPtr)NativePtr->TexPixelsAlpha8; set => NativePtr->TexPixelsAlpha8 = (byte*)value; }
public IntPtr TexPixelsRGBA32 { get => (IntPtr)NativePtr->TexPixelsRGBA32; set => NativePtr->TexPixelsRGBA32 = (uint*)value; }

@ -206,7 +206,7 @@ namespace ImGuiNET
Vector2 size = new Vector2();
byte border = 0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, border, flags);
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, border, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -235,7 +235,7 @@ namespace ImGuiNET
else { native_str_id = null; }
byte border = 0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, border, flags);
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, border, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -264,7 +264,7 @@ namespace ImGuiNET
else { native_str_id = null; }
byte native_border = border ? (byte)1 : (byte)0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, native_border, flags);
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, native_border, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -292,7 +292,7 @@ namespace ImGuiNET
}
else { native_str_id = null; }
byte native_border = border ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, native_border, flags);
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, native_border, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -304,27 +304,27 @@ namespace ImGuiNET
Vector2 size = new Vector2();
byte border = 0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildID(id, size, border, flags);
byte ret = ImGuiNative.igBeginChild_ID(id, size, border, flags);
return ret != 0;
}
public static bool BeginChild(uint id, Vector2 size)
{
byte border = 0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildID(id, size, border, flags);
byte ret = ImGuiNative.igBeginChild_ID(id, size, border, flags);
return ret != 0;
}
public static bool BeginChild(uint id, Vector2 size, bool border)
{
byte native_border = border ? (byte)1 : (byte)0;
ImGuiWindowFlags flags = (ImGuiWindowFlags)0;
byte ret = ImGuiNative.igBeginChildID(id, size, native_border, flags);
byte ret = ImGuiNative.igBeginChild_ID(id, size, native_border, flags);
return ret != 0;
}
public static bool BeginChild(uint id, Vector2 size, bool border, ImGuiWindowFlags flags)
{
byte native_border = border ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igBeginChildID(id, size, native_border, flags);
byte ret = ImGuiNative.igBeginChild_ID(id, size, native_border, flags);
return ret != 0;
}
public static bool BeginChildFrame(uint id, Vector2 size)
@ -437,6 +437,16 @@ namespace ImGuiNET
}
return ret != 0;
}
public static void BeginDisabled()
{
byte disabled = 1;
ImGuiNative.igBeginDisabled(disabled);
}
public static void BeginDisabled(bool disabled)
{
byte native_disabled = disabled ? (byte)1 : (byte)0;
ImGuiNative.igBeginDisabled(native_disabled);
}
public static bool BeginDragDropSource()
{
ImGuiDragDropFlags flags = (ImGuiDragDropFlags)0;
@ -1334,7 +1344,7 @@ namespace ImGuiNET
else { native_label = null; }
fixed (int* native_flags = &flags)
{
byte ret = ImGuiNative.igCheckboxFlagsIntPtr(native_label, native_flags, flags_value);
byte ret = ImGuiNative.igCheckboxFlags_IntPtr(native_label, native_flags, flags_value);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -1364,7 +1374,7 @@ namespace ImGuiNET
else { native_label = null; }
fixed (uint* native_flags = &flags)
{
byte ret = ImGuiNative.igCheckboxFlagsUintPtr(native_label, native_flags, flags_value);
byte ret = ImGuiNative.igCheckboxFlags_UintPtr(native_label, native_flags, flags_value);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -1397,7 +1407,7 @@ namespace ImGuiNET
}
else { native_label = null; }
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0;
byte ret = ImGuiNative.igCollapsingHeaderTreeNodeFlags(native_label, flags);
byte ret = ImGuiNative.igCollapsingHeader_TreeNodeFlags(native_label, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -1424,7 +1434,7 @@ namespace ImGuiNET
native_label[native_label_offset] = 0;
}
else { native_label = null; }
byte ret = ImGuiNative.igCollapsingHeaderTreeNodeFlags(native_label, flags);
byte ret = ImGuiNative.igCollapsingHeader_TreeNodeFlags(native_label, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -1454,7 +1464,7 @@ namespace ImGuiNET
byte native_p_visible_val = p_visible ? (byte)1 : (byte)0;
byte* native_p_visible = &native_p_visible_val;
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0;
byte ret = ImGuiNative.igCollapsingHeaderBoolPtr(native_label, native_p_visible, flags);
byte ret = ImGuiNative.igCollapsingHeader_BoolPtr(native_label, native_p_visible, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -1484,7 +1494,7 @@ namespace ImGuiNET
else { native_label = null; }
byte native_p_visible_val = p_visible ? (byte)1 : (byte)0;
byte* native_p_visible = &native_p_visible_val;
byte ret = ImGuiNative.igCollapsingHeaderBoolPtr(native_label, native_p_visible, flags);
byte ret = ImGuiNative.igCollapsingHeader_BoolPtr(native_label, native_p_visible, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -2009,7 +2019,7 @@ namespace ImGuiNET
int popup_max_height_in_items = -1;
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igComboStr_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items);
byte ret = ImGuiNative.igCombo_Str_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -2066,7 +2076,7 @@ namespace ImGuiNET
}
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igComboStr_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items);
byte ret = ImGuiNative.igCombo_Str_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -2115,7 +2125,7 @@ namespace ImGuiNET
int popup_max_height_in_items = -1;
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igComboStr(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items);
byte ret = ImGuiNative.igCombo_Str(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -2167,7 +2177,7 @@ namespace ImGuiNET
else { native_items_separated_by_zeros = null; }
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igComboStr(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items);
byte ret = ImGuiNative.igCombo_Str(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -2231,28 +2241,32 @@ namespace ImGuiNET
{
ImGuiNative.igDestroyPlatformWindows();
}
public static void DockSpace(uint id)
public static uint DockSpace(uint id)
{
Vector2 size = new Vector2();
ImGuiDockNodeFlags flags = (ImGuiDockNodeFlags)0;
ImGuiWindowClass* window_class = null;
ImGuiNative.igDockSpace(id, size, flags, window_class);
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class);
return ret;
}
public static void DockSpace(uint id, Vector2 size)
public static uint DockSpace(uint id, Vector2 size)
{
ImGuiDockNodeFlags flags = (ImGuiDockNodeFlags)0;
ImGuiWindowClass* window_class = null;
ImGuiNative.igDockSpace(id, size, flags, window_class);
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class);
return ret;
}
public static void DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags)
public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags)
{
ImGuiWindowClass* window_class = null;
ImGuiNative.igDockSpace(id, size, flags, window_class);
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class);
return ret;
}
public static void DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr window_class)
public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr window_class)
{
ImGuiWindowClass* native_window_class = window_class.NativePtr;
ImGuiNative.igDockSpace(id, size, flags, native_window_class);
uint ret = ImGuiNative.igDockSpace(id, size, flags, native_window_class);
return ret;
}
public static uint DockSpaceOverViewport()
{
@ -5600,6 +5614,39 @@ namespace ImGuiNET
}
}
}
public static bool DragScalar(string label, ImGuiDataType data_type, IntPtr p_data)
{
byte* native_label;
int label_byteCount = 0;
if (label != null)
{
label_byteCount = Encoding.UTF8.GetByteCount(label);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
native_label = Util.Allocate(label_byteCount + 1);
}
else
{
byte* native_label_stackBytes = stackalloc byte[label_byteCount + 1];
native_label = native_label_stackBytes;
}
int native_label_offset = Util.GetUtf8(label, native_label, label_byteCount);
native_label[native_label_offset] = 0;
}
else { native_label = null; }
void* native_p_data = (void*)p_data.ToPointer();
float v_speed = 1.0f;
void* p_min = null;
void* p_max = null;
byte* native_format = null;
ImGuiSliderFlags flags = (ImGuiSliderFlags)0;
byte ret = ImGuiNative.igDragScalar(native_label, data_type, native_p_data, v_speed, p_min, p_max, native_format, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
}
return ret != 0;
}
public static bool DragScalar(string label, ImGuiDataType data_type, IntPtr p_data, float v_speed)
{
byte* native_label;
@ -5801,6 +5848,39 @@ namespace ImGuiNET
}
return ret != 0;
}
public static bool DragScalarN(string label, ImGuiDataType data_type, IntPtr p_data, int components)
{
byte* native_label;
int label_byteCount = 0;
if (label != null)
{
label_byteCount = Encoding.UTF8.GetByteCount(label);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
native_label = Util.Allocate(label_byteCount + 1);
}
else
{
byte* native_label_stackBytes = stackalloc byte[label_byteCount + 1];
native_label = native_label_stackBytes;
}
int native_label_offset = Util.GetUtf8(label, native_label, label_byteCount);
native_label[native_label_offset] = 0;
}
else { native_label = null; }
void* native_p_data = (void*)p_data.ToPointer();
float v_speed = 1.0f;
void* p_min = null;
void* p_max = null;
byte* native_format = null;
ImGuiSliderFlags flags = (ImGuiSliderFlags)0;
byte ret = ImGuiNative.igDragScalarN(native_label, data_type, native_p_data, components, v_speed, p_min, p_max, native_format, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
}
return ret != 0;
}
public static bool DragScalarN(string label, ImGuiDataType data_type, IntPtr p_data, int components, float v_speed)
{
byte* native_label;
@ -6022,6 +6102,10 @@ namespace ImGuiNET
{
ImGuiNative.igEndCombo();
}
public static void EndDisabled()
{
ImGuiNative.igEndDisabled();
}
public static void EndDragDropSource()
{
ImGuiNative.igEndDragDropSource();
@ -6100,13 +6184,13 @@ namespace ImGuiNET
}
public static ImDrawListPtr GetBackgroundDrawList()
{
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawListNil();
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawList_Nil();
return new ImDrawListPtr(ret);
}
public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport)
{
ImGuiViewport* native_viewport = viewport.NativePtr;
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawListViewportPtr(native_viewport);
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawList_ViewportPtr(native_viewport);
return new ImDrawListPtr(ret);
}
public static string GetClipboardText()
@ -6117,22 +6201,22 @@ namespace ImGuiNET
public static uint GetColorU32(ImGuiCol idx)
{
float alpha_mul = 1.0f;
uint ret = ImGuiNative.igGetColorU32Col(idx, alpha_mul);
uint ret = ImGuiNative.igGetColorU32_Col(idx, alpha_mul);
return ret;
}
public static uint GetColorU32(ImGuiCol idx, float alpha_mul)
{
uint ret = ImGuiNative.igGetColorU32Col(idx, alpha_mul);
uint ret = ImGuiNative.igGetColorU32_Col(idx, alpha_mul);
return ret;
}
public static uint GetColorU32(Vector4 col)
{
uint ret = ImGuiNative.igGetColorU32Vec4(col);
uint ret = ImGuiNative.igGetColorU32_Vec4(col);
return ret;
}
public static uint GetColorU32(uint col)
{
uint ret = ImGuiNative.igGetColorU32U32(col);
uint ret = ImGuiNative.igGetColorU32_U32(col);
return ret;
}
public static int GetColumnIndex()
@ -6245,13 +6329,13 @@ namespace ImGuiNET
}
public static ImDrawListPtr GetForegroundDrawList()
{
ImDrawList* ret = ImGuiNative.igGetForegroundDrawListNil();
ImDrawList* ret = ImGuiNative.igGetForegroundDrawList_Nil();
return new ImDrawListPtr(ret);
}
public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport)
{
ImGuiViewport* native_viewport = viewport.NativePtr;
ImDrawList* ret = ImGuiNative.igGetForegroundDrawListViewportPtr(native_viewport);
ImDrawList* ret = ImGuiNative.igGetForegroundDrawList_ViewportPtr(native_viewport);
return new ImDrawListPtr(ret);
}
public static int GetFrameCount()
@ -6289,7 +6373,7 @@ namespace ImGuiNET
native_str_id[native_str_id_offset] = 0;
}
else { native_str_id = null; }
uint ret = ImGuiNative.igGetIDStr(native_str_id);
uint ret = ImGuiNative.igGetID_Str(native_str_id);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -6299,7 +6383,7 @@ namespace ImGuiNET
public static uint GetID(IntPtr ptr_id)
{
void* native_ptr_id = (void*)ptr_id.ToPointer();
uint ret = ImGuiNative.igGetIDPtr(native_ptr_id);
uint ret = ImGuiNative.igGetID_Ptr(native_ptr_id);
return ret;
}
public static ImGuiIOPtr GetIO()
@ -8518,7 +8602,7 @@ namespace ImGuiNET
}
else { native_str_id = null; }
ImGuiPopupFlags flags = (ImGuiPopupFlags)0;
byte ret = ImGuiNative.igIsPopupOpenStr(native_str_id, flags);
byte ret = ImGuiNative.igIsPopupOpen_Str(native_str_id, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -8545,7 +8629,7 @@ namespace ImGuiNET
native_str_id[native_str_id_offset] = 0;
}
else { native_str_id = null; }
byte ret = ImGuiNative.igIsPopupOpenStr(native_str_id, flags);
byte ret = ImGuiNative.igIsPopupOpen_Str(native_str_id, flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -8554,12 +8638,12 @@ namespace ImGuiNET
}
public static bool IsRectVisible(Vector2 size)
{
byte ret = ImGuiNative.igIsRectVisibleNil(size);
byte ret = ImGuiNative.igIsRectVisible_Nil(size);
return ret != 0;
}
public static bool IsRectVisible(Vector2 rect_min, Vector2 rect_max)
{
byte ret = ImGuiNative.igIsRectVisibleVec2(rect_min, rect_max);
byte ret = ImGuiNative.igIsRectVisible_Vec2(rect_min, rect_max);
return ret != 0;
}
public static bool IsWindowAppearing()
@ -8697,7 +8781,7 @@ namespace ImGuiNET
int height_in_items = -1;
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igListBoxStr_arr(native_label, native_current_item, native_items, items_count, height_in_items);
byte ret = ImGuiNative.igListBox_Str_arr(native_label, native_current_item, native_items, items_count, height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -8754,7 +8838,7 @@ namespace ImGuiNET
}
fixed (int* native_current_item = &current_item)
{
byte ret = ImGuiNative.igListBoxStr_arr(native_label, native_current_item, native_items, items_count, height_in_items);
byte ret = ImGuiNative.igListBox_Str_arr(native_label, native_current_item, native_items, items_count, height_in_items);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -8963,7 +9047,7 @@ namespace ImGuiNET
byte* native_shortcut = null;
byte selected = 0;
byte enabled = 1;
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, selected, enabled);
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, selected, enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9010,7 +9094,7 @@ namespace ImGuiNET
else { native_shortcut = null; }
byte selected = 0;
byte enabled = 1;
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, selected, enabled);
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, selected, enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9061,7 +9145,7 @@ namespace ImGuiNET
else { native_shortcut = null; }
byte native_selected = selected ? (byte)1 : (byte)0;
byte enabled = 1;
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, native_selected, enabled);
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, native_selected, enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9112,7 +9196,7 @@ namespace ImGuiNET
else { native_shortcut = null; }
byte native_selected = selected ? (byte)1 : (byte)0;
byte native_enabled = enabled ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, native_selected, native_enabled);
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, native_selected, native_enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9164,7 +9248,7 @@ namespace ImGuiNET
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0;
byte* native_p_selected = &native_p_selected_val;
byte enabled = 1;
byte ret = ImGuiNative.igMenuItemBoolPtr(native_label, native_shortcut, native_p_selected, enabled);
byte ret = ImGuiNative.igMenuItem_BoolPtr(native_label, native_shortcut, native_p_selected, enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9217,7 +9301,7 @@ namespace ImGuiNET
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0;
byte* native_p_selected = &native_p_selected_val;
byte native_enabled = enabled ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igMenuItemBoolPtr(native_label, native_shortcut, native_p_selected, native_enabled);
byte ret = ImGuiNative.igMenuItem_BoolPtr(native_label, native_shortcut, native_p_selected, native_enabled);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9262,7 +9346,7 @@ namespace ImGuiNET
}
else { native_str_id = null; }
ImGuiPopupFlags popup_flags = (ImGuiPopupFlags)0;
ImGuiNative.igOpenPopup(native_str_id, popup_flags);
ImGuiNative.igOpenPopup_Str(native_str_id, popup_flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -9288,12 +9372,21 @@ namespace ImGuiNET
native_str_id[native_str_id_offset] = 0;
}
else { native_str_id = null; }
ImGuiNative.igOpenPopup(native_str_id, popup_flags);
ImGuiNative.igOpenPopup_Str(native_str_id, popup_flags);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
}
}
public static void OpenPopup(uint id)
{
ImGuiPopupFlags popup_flags = (ImGuiPopupFlags)0;
ImGuiNative.igOpenPopup_ID(id, popup_flags);
}
public static void OpenPopup(uint id, ImGuiPopupFlags popup_flags)
{
ImGuiNative.igOpenPopup_ID(id, popup_flags);
}
public static void OpenPopupOnItemClick()
{
byte* native_str_id = null;
@ -9381,7 +9474,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9415,7 +9508,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9466,7 +9559,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9520,7 +9613,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9573,7 +9666,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9625,7 +9718,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9676,7 +9769,7 @@ namespace ImGuiNET
else { native_overlay_text = null; }
fixed (float* native_values = &values)
{
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9715,7 +9808,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9749,7 +9842,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9800,7 +9893,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9854,7 +9947,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9907,7 +10000,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -9959,7 +10052,7 @@ namespace ImGuiNET
int stride = sizeof(float);
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10010,7 +10103,7 @@ namespace ImGuiNET
else { native_overlay_text = null; }
fixed (float* native_values = &values)
{
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10144,7 +10237,7 @@ namespace ImGuiNET
native_str_id[native_str_id_offset] = 0;
}
else { native_str_id = null; }
ImGuiNative.igPushIDStr(native_str_id);
ImGuiNative.igPushID_Str(native_str_id);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -10153,11 +10246,11 @@ namespace ImGuiNET
public static void PushID(IntPtr ptr_id)
{
void* native_ptr_id = (void*)ptr_id.ToPointer();
ImGuiNative.igPushIDPtr(native_ptr_id);
ImGuiNative.igPushID_Ptr(native_ptr_id);
}
public static void PushID(int int_id)
{
ImGuiNative.igPushIDInt(int_id);
ImGuiNative.igPushID_Int(int_id);
}
public static void PushItemWidth(float item_width)
{
@ -10165,19 +10258,19 @@ namespace ImGuiNET
}
public static void PushStyleColor(ImGuiCol idx, uint col)
{
ImGuiNative.igPushStyleColorU32(idx, col);
ImGuiNative.igPushStyleColor_U32(idx, col);
}
public static void PushStyleColor(ImGuiCol idx, Vector4 col)
{
ImGuiNative.igPushStyleColorVec4(idx, col);
ImGuiNative.igPushStyleColor_Vec4(idx, col);
}
public static void PushStyleVar(ImGuiStyleVar idx, float val)
{
ImGuiNative.igPushStyleVarFloat(idx, val);
ImGuiNative.igPushStyleVar_Float(idx, val);
}
public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val)
{
ImGuiNative.igPushStyleVarVec2(idx, val);
ImGuiNative.igPushStyleVar_Vec2(idx, val);
}
public static void PushTextWrapPos()
{
@ -10209,7 +10302,7 @@ namespace ImGuiNET
}
else { native_label = null; }
byte native_active = active ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igRadioButtonBool(native_label, native_active);
byte ret = ImGuiNative.igRadioButton_Bool(native_label, native_active);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10238,7 +10331,7 @@ namespace ImGuiNET
else { native_label = null; }
fixed (int* native_v = &v)
{
byte ret = ImGuiNative.igRadioButtonIntPtr(native_label, native_v, v_button);
byte ret = ImGuiNative.igRadioButton_IntPtr(native_label, native_v, v_button);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10355,7 +10448,7 @@ namespace ImGuiNET
byte selected = 0;
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0;
Vector2 size = new Vector2();
byte ret = ImGuiNative.igSelectableBool(native_label, selected, flags, size);
byte ret = ImGuiNative.igSelectable_Bool(native_label, selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10385,7 +10478,7 @@ namespace ImGuiNET
byte native_selected = selected ? (byte)1 : (byte)0;
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0;
Vector2 size = new Vector2();
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size);
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10414,7 +10507,7 @@ namespace ImGuiNET
else { native_label = null; }
byte native_selected = selected ? (byte)1 : (byte)0;
Vector2 size = new Vector2();
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size);
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10442,7 +10535,7 @@ namespace ImGuiNET
}
else { native_label = null; }
byte native_selected = selected ? (byte)1 : (byte)0;
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size);
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10473,7 +10566,7 @@ namespace ImGuiNET
byte* native_p_selected = &native_p_selected_val;
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0;
Vector2 size = new Vector2();
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size);
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10504,7 +10597,7 @@ namespace ImGuiNET
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0;
byte* native_p_selected = &native_p_selected_val;
Vector2 size = new Vector2();
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size);
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10534,7 +10627,7 @@ namespace ImGuiNET
else { native_label = null; }
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0;
byte* native_p_selected = &native_p_selected_val;
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size);
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -10791,20 +10884,20 @@ namespace ImGuiNET
public static void SetScrollFromPosX(float local_x)
{
float center_x_ratio = 0.5f;
ImGuiNative.igSetScrollFromPosXFloat(local_x, center_x_ratio);
ImGuiNative.igSetScrollFromPosX_Float(local_x, center_x_ratio);
}
public static void SetScrollFromPosX(float local_x, float center_x_ratio)
{
ImGuiNative.igSetScrollFromPosXFloat(local_x, center_x_ratio);
ImGuiNative.igSetScrollFromPosX_Float(local_x, center_x_ratio);
}
public static void SetScrollFromPosY(float local_y)
{
float center_y_ratio = 0.5f;
ImGuiNative.igSetScrollFromPosYFloat(local_y, center_y_ratio);
ImGuiNative.igSetScrollFromPosY_Float(local_y, center_y_ratio);
}
public static void SetScrollFromPosY(float local_y, float center_y_ratio)
{
ImGuiNative.igSetScrollFromPosYFloat(local_y, center_y_ratio);
ImGuiNative.igSetScrollFromPosY_Float(local_y, center_y_ratio);
}
public static void SetScrollHereX()
{
@ -10826,11 +10919,11 @@ namespace ImGuiNET
}
public static void SetScrollX(float scroll_x)
{
ImGuiNative.igSetScrollXFloat(scroll_x);
ImGuiNative.igSetScrollX_Float(scroll_x);
}
public static void SetScrollY(float scroll_y)
{
ImGuiNative.igSetScrollYFloat(scroll_y);
ImGuiNative.igSetScrollY_Float(scroll_y);
}
public static void SetStateStorage(ImGuiStoragePtr storage)
{
@ -10893,12 +10986,12 @@ namespace ImGuiNET
{
byte native_collapsed = collapsed ? (byte)1 : (byte)0;
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowCollapsedBool(native_collapsed, cond);
ImGuiNative.igSetWindowCollapsed_Bool(native_collapsed, cond);
}
public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond)
{
byte native_collapsed = collapsed ? (byte)1 : (byte)0;
ImGuiNative.igSetWindowCollapsedBool(native_collapsed, cond);
ImGuiNative.igSetWindowCollapsed_Bool(native_collapsed, cond);
}
public static void SetWindowCollapsed(string name, bool collapsed)
{
@ -10922,7 +11015,7 @@ namespace ImGuiNET
else { native_name = null; }
byte native_collapsed = collapsed ? (byte)1 : (byte)0;
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowCollapsedStr(native_name, native_collapsed, cond);
ImGuiNative.igSetWindowCollapsed_Str(native_name, native_collapsed, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -10949,7 +11042,7 @@ namespace ImGuiNET
}
else { native_name = null; }
byte native_collapsed = collapsed ? (byte)1 : (byte)0;
ImGuiNative.igSetWindowCollapsedStr(native_name, native_collapsed, cond);
ImGuiNative.igSetWindowCollapsed_Str(native_name, native_collapsed, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -10957,7 +11050,7 @@ namespace ImGuiNET
}
public static void SetWindowFocus()
{
ImGuiNative.igSetWindowFocusNil();
ImGuiNative.igSetWindowFocus_Nil();
}
public static void SetWindowFocus(string name)
{
@ -10979,7 +11072,7 @@ namespace ImGuiNET
native_name[native_name_offset] = 0;
}
else { native_name = null; }
ImGuiNative.igSetWindowFocusStr(native_name);
ImGuiNative.igSetWindowFocus_Str(native_name);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -10992,11 +11085,11 @@ namespace ImGuiNET
public static void SetWindowPos(Vector2 pos)
{
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowPosVec2(pos, cond);
ImGuiNative.igSetWindowPos_Vec2(pos, cond);
}
public static void SetWindowPos(Vector2 pos, ImGuiCond cond)
{
ImGuiNative.igSetWindowPosVec2(pos, cond);
ImGuiNative.igSetWindowPos_Vec2(pos, cond);
}
public static void SetWindowPos(string name, Vector2 pos)
{
@ -11019,7 +11112,7 @@ namespace ImGuiNET
}
else { native_name = null; }
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowPosStr(native_name, pos, cond);
ImGuiNative.igSetWindowPos_Str(native_name, pos, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -11045,7 +11138,7 @@ namespace ImGuiNET
native_name[native_name_offset] = 0;
}
else { native_name = null; }
ImGuiNative.igSetWindowPosStr(native_name, pos, cond);
ImGuiNative.igSetWindowPos_Str(native_name, pos, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -11054,11 +11147,11 @@ namespace ImGuiNET
public static void SetWindowSize(Vector2 size)
{
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowSizeVec2(size, cond);
ImGuiNative.igSetWindowSize_Vec2(size, cond);
}
public static void SetWindowSize(Vector2 size, ImGuiCond cond)
{
ImGuiNative.igSetWindowSizeVec2(size, cond);
ImGuiNative.igSetWindowSize_Vec2(size, cond);
}
public static void SetWindowSize(string name, Vector2 size)
{
@ -11081,7 +11174,7 @@ namespace ImGuiNET
}
else { native_name = null; }
ImGuiCond cond = (ImGuiCond)0;
ImGuiNative.igSetWindowSizeStr(native_name, size, cond);
ImGuiNative.igSetWindowSize_Str(native_name, size, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -11107,7 +11200,7 @@ namespace ImGuiNET
native_name[native_name_offset] = 0;
}
else { native_name = null; }
ImGuiNative.igSetWindowSizeStr(native_name, size, cond);
ImGuiNative.igSetWindowSize_Str(native_name, size, cond);
if (name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_name);
@ -13117,12 +13210,12 @@ namespace ImGuiNET
public static string TableGetColumnName()
{
int column_n = -1;
byte* ret = ImGuiNative.igTableGetColumnNameInt(column_n);
byte* ret = ImGuiNative.igTableGetColumnName_Int(column_n);
return Util.StringFromPtr(ret);
}
public static string TableGetColumnName(int column_n)
{
byte* ret = ImGuiNative.igTableGetColumnNameInt(column_n);
byte* ret = ImGuiNative.igTableGetColumnName_Int(column_n);
return Util.StringFromPtr(ret);
}
public static int TableGetRowIndex()
@ -13194,6 +13287,11 @@ namespace ImGuiNET
{
ImGuiNative.igTableSetBgColor(target, color, column_n);
}
public static void TableSetColumnEnabled(int column_n, bool v)
{
byte native_v = v ? (byte)1 : (byte)0;
ImGuiNative.igTableSetColumnEnabled(column_n, native_v);
}
public static bool TableSetColumnIndex(int column_n)
{
byte ret = ImGuiNative.igTableSetColumnIndex(column_n);
@ -13464,7 +13562,7 @@ namespace ImGuiNET
native_label[native_label_offset] = 0;
}
else { native_label = null; }
byte ret = ImGuiNative.igTreeNodeStr(native_label);
byte ret = ImGuiNative.igTreeNode_Str(native_label);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -13509,7 +13607,7 @@ namespace ImGuiNET
native_fmt[native_fmt_offset] = 0;
}
else { native_fmt = null; }
byte ret = ImGuiNative.igTreeNodeStrStr(native_str_id, native_fmt);
byte ret = ImGuiNative.igTreeNode_StrStr(native_str_id, native_fmt);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -13541,7 +13639,7 @@ namespace ImGuiNET
native_fmt[native_fmt_offset] = 0;
}
else { native_fmt = null; }
byte ret = ImGuiNative.igTreeNodePtr(native_ptr_id, native_fmt);
byte ret = ImGuiNative.igTreeNode_Ptr(native_ptr_id, native_fmt);
if (fmt_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_fmt);
@ -13569,7 +13667,7 @@ namespace ImGuiNET
}
else { native_label = null; }
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0;
byte ret = ImGuiNative.igTreeNodeExStr(native_label, flags);
byte ret = ImGuiNative.igTreeNodeEx_Str(native_label, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -13596,7 +13694,7 @@ namespace ImGuiNET
native_label[native_label_offset] = 0;
}
else { native_label = null; }
byte ret = ImGuiNative.igTreeNodeExStr(native_label, flags);
byte ret = ImGuiNative.igTreeNodeEx_Str(native_label, flags);
if (label_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_label);
@ -13641,7 +13739,7 @@ namespace ImGuiNET
native_fmt[native_fmt_offset] = 0;
}
else { native_fmt = null; }
byte ret = ImGuiNative.igTreeNodeExStrStr(native_str_id, flags, native_fmt);
byte ret = ImGuiNative.igTreeNodeEx_StrStr(native_str_id, flags, native_fmt);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -13673,7 +13771,7 @@ namespace ImGuiNET
native_fmt[native_fmt_offset] = 0;
}
else { native_fmt = null; }
byte ret = ImGuiNative.igTreeNodeExPtr(native_ptr_id, flags, native_fmt);
byte ret = ImGuiNative.igTreeNodeEx_Ptr(native_ptr_id, flags, native_fmt);
if (fmt_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_fmt);
@ -13704,7 +13802,7 @@ namespace ImGuiNET
native_str_id[native_str_id_offset] = 0;
}
else { native_str_id = null; }
ImGuiNative.igTreePushStr(native_str_id);
ImGuiNative.igTreePush_Str(native_str_id);
if (str_id_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_str_id);
@ -13713,12 +13811,12 @@ namespace ImGuiNET
public static void TreePush()
{
void* ptr_id = null;
ImGuiNative.igTreePushPtr(ptr_id);
ImGuiNative.igTreePush_Ptr(ptr_id);
}
public static void TreePush(IntPtr ptr_id)
{
void* native_ptr_id = (void*)ptr_id.ToPointer();
ImGuiNative.igTreePushPtr(native_ptr_id);
ImGuiNative.igTreePush_Ptr(native_ptr_id);
}
public static void Unindent()
{
@ -13754,7 +13852,7 @@ namespace ImGuiNET
}
else { native_prefix = null; }
byte native_b = b ? (byte)1 : (byte)0;
ImGuiNative.igValueBool(native_prefix, native_b);
ImGuiNative.igValue_Bool(native_prefix, native_b);
if (prefix_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_prefix);
@ -13780,7 +13878,7 @@ namespace ImGuiNET
native_prefix[native_prefix_offset] = 0;
}
else { native_prefix = null; }
ImGuiNative.igValueInt(native_prefix, v);
ImGuiNative.igValue_Int(native_prefix, v);
if (prefix_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_prefix);
@ -13806,7 +13904,7 @@ namespace ImGuiNET
native_prefix[native_prefix_offset] = 0;
}
else { native_prefix = null; }
ImGuiNative.igValueUint(native_prefix, v);
ImGuiNative.igValue_Uint(native_prefix, v);
if (prefix_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_prefix);
@ -13833,7 +13931,7 @@ namespace ImGuiNET
}
else { native_prefix = null; }
byte* native_float_format = null;
ImGuiNative.igValueFloat(native_prefix, v, native_float_format);
ImGuiNative.igValue_Float(native_prefix, v, native_float_format);
if (prefix_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_prefix);
@ -13877,7 +13975,7 @@ namespace ImGuiNET
native_float_format[native_float_format_offset] = 0;
}
else { native_float_format = null; }
ImGuiNative.igValueFloat(native_prefix, v, native_float_format);
ImGuiNative.igValue_Float(native_prefix, v, native_float_format);
if (prefix_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_prefix);

@ -27,7 +27,7 @@ namespace ImGuiNET
PickerHueWheel = 67108864,
InputRGB = 134217728,
InputHSV = 268435456,
OptionsDefault = 177209344,
DefaultOptions = 177209344,
DisplayMask = 7340032,
DataTypeMask = 25165824,
PickerMask = 100663296,

@ -27,7 +27,6 @@ namespace ImGuiNET
public ImFont* FontDefault;
public Vector2 DisplayFramebufferScale;
public byte ConfigDockingNoSplit;
public byte ConfigDockingWithShift;
public byte ConfigDockingAlwaysTabBar;
public byte ConfigDockingTransparentPayload;
public byte ConfigViewportsNoAutoMerge;
@ -59,7 +58,7 @@ namespace ImGuiNET
public byte KeyAlt;
public byte KeySuper;
public fixed byte KeysDown[512];
public fixed float NavInputs[21];
public fixed float NavInputs[20];
public byte WantCaptureMouse;
public byte WantCaptureKeyboard;
public byte WantTextInput;
@ -75,6 +74,7 @@ namespace ImGuiNET
public int MetricsActiveAllocations;
public Vector2 MouseDelta;
public ImGuiKeyModFlags KeyMods;
public ImGuiKeyModFlags KeyModsPrev;
public Vector2 MousePosPrev;
public Vector2 MouseClickedPos_0;
public Vector2 MouseClickedPos_1;
@ -97,9 +97,10 @@ namespace ImGuiNET
public fixed float MouseDragMaxDistanceSqr[5];
public fixed float KeysDownDuration[512];
public fixed float KeysDownDurationPrev[512];
public fixed float NavInputsDownDuration[21];
public fixed float NavInputsDownDurationPrev[21];
public fixed float NavInputsDownDuration[20];
public fixed float NavInputsDownDurationPrev[20];
public float PenPressure;
public byte AppFocusLost;
public ushort InputQueueSurrogate;
public ImVector InputQueueCharacters;
}
@ -131,7 +132,6 @@ namespace ImGuiNET
public ImFontPtr FontDefault => new ImFontPtr(NativePtr->FontDefault);
public ref Vector2 DisplayFramebufferScale => ref Unsafe.AsRef<Vector2>(&NativePtr->DisplayFramebufferScale);
public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDockingNoSplit);
public ref bool ConfigDockingWithShift => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDockingWithShift);
public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDockingAlwaysTabBar);
public ref bool ConfigDockingTransparentPayload => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDockingTransparentPayload);
public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef<bool>(&NativePtr->ConfigViewportsNoAutoMerge);
@ -163,7 +163,7 @@ namespace ImGuiNET
public ref bool KeyAlt => ref Unsafe.AsRef<bool>(&NativePtr->KeyAlt);
public ref bool KeySuper => ref Unsafe.AsRef<bool>(&NativePtr->KeySuper);
public RangeAccessor<bool> KeysDown => new RangeAccessor<bool>(NativePtr->KeysDown, 512);
public RangeAccessor<float> NavInputs => new RangeAccessor<float>(NativePtr->NavInputs, 21);
public RangeAccessor<float> NavInputs => new RangeAccessor<float>(NativePtr->NavInputs, 20);
public ref bool WantCaptureMouse => ref Unsafe.AsRef<bool>(&NativePtr->WantCaptureMouse);
public ref bool WantCaptureKeyboard => ref Unsafe.AsRef<bool>(&NativePtr->WantCaptureKeyboard);
public ref bool WantTextInput => ref Unsafe.AsRef<bool>(&NativePtr->WantTextInput);
@ -179,6 +179,7 @@ namespace ImGuiNET
public ref int MetricsActiveAllocations => ref Unsafe.AsRef<int>(&NativePtr->MetricsActiveAllocations);
public ref Vector2 MouseDelta => ref Unsafe.AsRef<Vector2>(&NativePtr->MouseDelta);
public ref ImGuiKeyModFlags KeyMods => ref Unsafe.AsRef<ImGuiKeyModFlags>(&NativePtr->KeyMods);
public ref ImGuiKeyModFlags KeyModsPrev => ref Unsafe.AsRef<ImGuiKeyModFlags>(&NativePtr->KeyModsPrev);
public ref Vector2 MousePosPrev => ref Unsafe.AsRef<Vector2>(&NativePtr->MousePosPrev);
public RangeAccessor<Vector2> MouseClickedPos => new RangeAccessor<Vector2>(&NativePtr->MouseClickedPos_0, 5);
public RangeAccessor<double> MouseClickedTime => new RangeAccessor<double>(NativePtr->MouseClickedTime, 5);
@ -193,11 +194,17 @@ namespace ImGuiNET
public RangeAccessor<float> MouseDragMaxDistanceSqr => new RangeAccessor<float>(NativePtr->MouseDragMaxDistanceSqr, 5);
public RangeAccessor<float> KeysDownDuration => new RangeAccessor<float>(NativePtr->KeysDownDuration, 512);
public RangeAccessor<float> KeysDownDurationPrev => new RangeAccessor<float>(NativePtr->KeysDownDurationPrev, 512);
public RangeAccessor<float> NavInputsDownDuration => new RangeAccessor<float>(NativePtr->NavInputsDownDuration, 21);
public RangeAccessor<float> NavInputsDownDurationPrev => new RangeAccessor<float>(NativePtr->NavInputsDownDurationPrev, 21);
public RangeAccessor<float> NavInputsDownDuration => new RangeAccessor<float>(NativePtr->NavInputsDownDuration, 20);
public RangeAccessor<float> NavInputsDownDurationPrev => new RangeAccessor<float>(NativePtr->NavInputsDownDurationPrev, 20);
public ref float PenPressure => ref Unsafe.AsRef<float>(&NativePtr->PenPressure);
public ref bool AppFocusLost => ref Unsafe.AsRef<bool>(&NativePtr->AppFocusLost);
public ref ushort InputQueueSurrogate => ref Unsafe.AsRef<ushort>(&NativePtr->InputQueueSurrogate);
public ImVector<ushort> InputQueueCharacters => new ImVector<ushort>(NativePtr->InputQueueCharacters);
public void AddFocusEvent(bool focused)
{
byte native_focused = focused ? (byte)1 : (byte)0;
ImGuiNative.ImGuiIO_AddFocusEvent((ImGuiIO*)(NativePtr), native_focused);
}
public void AddInputCharacter(uint c)
{
ImGuiNative.ImGuiIO_AddInputCharacter((ImGuiIO*)(NativePtr), c);
@ -236,6 +243,10 @@ namespace ImGuiNET
{
ImGuiNative.ImGuiIO_ClearInputCharacters((ImGuiIO*)(NativePtr));
}
public void ClearInputKeys()
{
ImGuiNative.ImGuiIO_ClearInputKeys((ImGuiIO*)(NativePtr));
}
public void Destroy()
{
ImGuiNative.ImGuiIO_destroy((ImGuiIO*)(NativePtr));

@ -24,7 +24,5 @@ namespace ImGuiNET
CharsScientific = 131072,
CallbackResize = 262144,
CallbackEdit = 524288,
Multiline = 1048576,
NoMarkEdited = 2097152,
}
}

@ -15,14 +15,16 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBegin(byte* name, byte* p_open, ImGuiWindowFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginChildStr(byte* str_id, Vector2 size, byte border, ImGuiWindowFlags flags);
public static extern byte igBeginChild_Str(byte* str_id, Vector2 size, byte border, ImGuiWindowFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginChildID(uint id, Vector2 size, byte border, ImGuiWindowFlags flags);
public static extern byte igBeginChild_ID(uint id, Vector2 size, byte border, ImGuiWindowFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginCombo(byte* label, byte* preview_value, ImGuiComboFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igBeginDisabled(byte disabled);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginDragDropSource(ImGuiDragDropFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igBeginDragDropTarget();
@ -73,15 +75,15 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCheckbox(byte* label, byte* v);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCheckboxFlagsIntPtr(byte* label, int* flags, int flags_value);
public static extern byte igCheckboxFlags_IntPtr(byte* label, int* flags, int flags_value);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCheckboxFlagsUintPtr(byte* label, uint* flags, uint flags_value);
public static extern byte igCheckboxFlags_UintPtr(byte* label, uint* flags, uint flags_value);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igCloseCurrentPopup();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCollapsingHeaderTreeNodeFlags(byte* label, ImGuiTreeNodeFlags flags);
public static extern byte igCollapsingHeader_TreeNodeFlags(byte* label, ImGuiTreeNodeFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCollapsingHeaderBoolPtr(byte* label, byte* p_visible, ImGuiTreeNodeFlags flags);
public static extern byte igCollapsingHeader_BoolPtr(byte* label, byte* p_visible, ImGuiTreeNodeFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igColorButton(byte* desc_id, Vector4 col, ImGuiColorEditFlags flags, Vector2 size);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -103,9 +105,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igColumns(int count, byte* id, byte border);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igComboStr_arr(byte* label, int* current_item, byte** items, int items_count, int popup_max_height_in_items);
public static extern byte igCombo_Str_arr(byte* label, int* current_item, byte** items, int items_count, int popup_max_height_in_items);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igComboStr(byte* label, int* current_item, byte* items_separated_by_zeros, int popup_max_height_in_items);
public static extern byte igCombo_Str(byte* label, int* current_item, byte* items_separated_by_zeros, int popup_max_height_in_items);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr igCreateContext(ImFontAtlas* shared_font_atlas);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -115,7 +117,7 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igDestroyPlatformWindows();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igDockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* window_class);
public static extern uint igDockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* window_class);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igDockSpaceOverViewport(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* window_class);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -153,6 +155,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndCombo();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndDisabled();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndDragDropSource();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igEndDragDropTarget();
@ -185,17 +189,17 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igGetAllocatorFunctions(IntPtr* p_alloc_func, IntPtr* p_free_func, void** p_user_data);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImDrawList* igGetBackgroundDrawListNil();
public static extern ImDrawList* igGetBackgroundDrawList_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport);
public static extern ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte* igGetClipboardText();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetColorU32Col(ImGuiCol idx, float alpha_mul);
public static extern uint igGetColorU32_Col(ImGuiCol idx, float alpha_mul);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetColorU32Vec4(Vector4 col);
public static extern uint igGetColorU32_Vec4(Vector4 col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetColorU32U32(uint col);
public static extern uint igGetColorU32_U32(uint col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern int igGetColumnIndex();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -233,9 +237,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igGetFontTexUvWhitePixel(Vector2* pOut);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImDrawList* igGetForegroundDrawListNil();
public static extern ImDrawList* igGetForegroundDrawList_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport);
public static extern ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern int igGetFrameCount();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -243,11 +247,11 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern float igGetFrameHeightWithSpacing();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetIDStr(byte* str_id);
public static extern uint igGetID_Str(byte* str_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetIDStrStr(byte* str_id_begin, byte* str_id_end);
public static extern uint igGetID_StrStr(byte* str_id_begin, byte* str_id_end);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern uint igGetIDPtr(void* ptr_id);
public static extern uint igGetID_Ptr(void* ptr_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiIO* igGetIO();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -405,11 +409,11 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igIsMouseReleased(ImGuiMouseButton button);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igIsPopupOpenStr(byte* str_id, ImGuiPopupFlags flags);
public static extern byte igIsPopupOpen_Str(byte* str_id, ImGuiPopupFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igIsRectVisibleNil(Vector2 size);
public static extern byte igIsRectVisible_Nil(Vector2 size);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igIsRectVisibleVec2(Vector2 rect_min, Vector2 rect_max);
public static extern byte igIsRectVisible_Vec2(Vector2 rect_min, Vector2 rect_max);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igIsWindowAppearing();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -423,7 +427,7 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igLabelText(byte* label, byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igListBoxStr_arr(byte* label, int* current_item, byte** items, int items_count, int height_in_items);
public static extern byte igListBox_Str_arr(byte* label, int* current_item, byte** items, int items_count, int height_in_items);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igLoadIniSettingsFromDisk(byte* ini_filename);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -445,9 +449,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igMemFree(void* ptr);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igMenuItemBool(byte* label, byte* shortcut, byte selected, byte enabled);
public static extern byte igMenuItem_Bool(byte* label, byte* shortcut, byte selected, byte enabled);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igMenuItemBoolPtr(byte* label, byte* shortcut, byte* p_selected, byte enabled);
public static extern byte igMenuItem_BoolPtr(byte* label, byte* shortcut, byte* p_selected, byte enabled);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igNewFrame();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -455,13 +459,15 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igNextColumn();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igOpenPopup(byte* str_id, ImGuiPopupFlags popup_flags);
public static extern void igOpenPopup_Str(byte* str_id, ImGuiPopupFlags popup_flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igOpenPopup_ID(uint id, ImGuiPopupFlags popup_flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igOpenPopupOnItemClick(byte* str_id, ImGuiPopupFlags popup_flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPlotHistogramFloatPtr(byte* label, float* values, int values_count, int values_offset, byte* overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride);
public static extern void igPlotHistogram_FloatPtr(byte* label, float* values, int values_count, int values_offset, byte* overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPlotLinesFloatPtr(byte* label, float* values, int values_count, int values_offset, byte* overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride);
public static extern void igPlotLines_FloatPtr(byte* label, float* values, int values_count, int values_offset, byte* overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPopAllowKeyboardFocus();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -491,29 +497,29 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushFont(ImFont* font);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushIDStr(byte* str_id);
public static extern void igPushID_Str(byte* str_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushIDStrStr(byte* str_id_begin, byte* str_id_end);
public static extern void igPushID_StrStr(byte* str_id_begin, byte* str_id_end);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushIDPtr(void* ptr_id);
public static extern void igPushID_Ptr(void* ptr_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushIDInt(int int_id);
public static extern void igPushID_Int(int int_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushItemWidth(float item_width);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushStyleColorU32(ImGuiCol idx, uint col);
public static extern void igPushStyleColor_U32(ImGuiCol idx, uint col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushStyleColorVec4(ImGuiCol idx, Vector4 col);
public static extern void igPushStyleColor_Vec4(ImGuiCol idx, Vector4 col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushStyleVarFloat(ImGuiStyleVar idx, float val);
public static extern void igPushStyleVar_Float(ImGuiStyleVar idx, float val);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushStyleVarVec2(ImGuiStyleVar idx, Vector2 val);
public static extern void igPushStyleVar_Vec2(ImGuiStyleVar idx, Vector2 val);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igPushTextWrapPos(float wrap_local_pos_x);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igRadioButtonBool(byte* label, byte active);
public static extern byte igRadioButton_Bool(byte* label, byte active);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igRadioButtonIntPtr(byte* label, int* v, int v_button);
public static extern byte igRadioButton_IntPtr(byte* label, int* v, int v_button);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igRender();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -527,9 +533,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte* igSaveIniSettingsToMemory(uint* out_ini_size);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igSelectableBool(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size);
public static extern byte igSelectable_Bool(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igSelectableBoolPtr(byte* label, byte* p_selected, ImGuiSelectableFlags flags, Vector2 size);
public static extern byte igSelectable_BoolPtr(byte* label, byte* p_selected, ImGuiSelectableFlags flags, Vector2 size);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSeparator();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -587,17 +593,17 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextWindowViewport(uint viewport_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollFromPosXFloat(float local_x, float center_x_ratio);
public static extern void igSetScrollFromPosX_Float(float local_x, float center_x_ratio);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollFromPosYFloat(float local_y, float center_y_ratio);
public static extern void igSetScrollFromPosY_Float(float local_y, float center_y_ratio);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollHereX(float center_x_ratio);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollHereY(float center_y_ratio);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollXFloat(float scroll_x);
public static extern void igSetScrollX_Float(float scroll_x);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetScrollYFloat(float scroll_y);
public static extern void igSetScrollY_Float(float scroll_y);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetStateStorage(ImGuiStorage* storage);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -605,23 +611,23 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetTooltip(byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowCollapsedBool(byte collapsed, ImGuiCond cond);
public static extern void igSetWindowCollapsed_Bool(byte collapsed, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowCollapsedStr(byte* name, byte collapsed, ImGuiCond cond);
public static extern void igSetWindowCollapsed_Str(byte* name, byte collapsed, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowFocusNil();
public static extern void igSetWindowFocus_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowFocusStr(byte* name);
public static extern void igSetWindowFocus_Str(byte* name);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowFontScale(float scale);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowPosVec2(Vector2 pos, ImGuiCond cond);
public static extern void igSetWindowPos_Vec2(Vector2 pos, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowPosStr(byte* name, Vector2 pos, ImGuiCond cond);
public static extern void igSetWindowPos_Str(byte* name, Vector2 pos, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowSizeVec2(Vector2 size, ImGuiCond cond);
public static extern void igSetWindowSize_Vec2(Vector2 size, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetWindowSizeStr(byte* name, Vector2 size, ImGuiCond cond);
public static extern void igSetWindowSize_Str(byte* name, Vector2 size, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowAboutWindow(byte* p_open);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -677,7 +683,7 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern int igTableGetColumnIndex();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte* igTableGetColumnNameInt(int column_n);
public static extern byte* igTableGetColumnName_Int(int column_n);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern int igTableGetRowIndex();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -693,6 +699,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTableSetBgColor(ImGuiTableBgTarget target, uint color, int column_n);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTableSetColumnEnabled(int column_n, byte v);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTableSetColumnIndex(int column_n);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float init_width_or_weight, uint user_id);
@ -709,35 +717,35 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTextWrapped(byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodeStr(byte* label);
public static extern byte igTreeNode_Str(byte* label);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodeStrStr(byte* str_id, byte* fmt);
public static extern byte igTreeNode_StrStr(byte* str_id, byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodePtr(void* ptr_id, byte* fmt);
public static extern byte igTreeNode_Ptr(void* ptr_id, byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodeExStr(byte* label, ImGuiTreeNodeFlags flags);
public static extern byte igTreeNodeEx_Str(byte* label, ImGuiTreeNodeFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodeExStrStr(byte* str_id, ImGuiTreeNodeFlags flags, byte* fmt);
public static extern byte igTreeNodeEx_StrStr(byte* str_id, ImGuiTreeNodeFlags flags, byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igTreeNodeExPtr(void* ptr_id, ImGuiTreeNodeFlags flags, byte* fmt);
public static extern byte igTreeNodeEx_Ptr(void* ptr_id, ImGuiTreeNodeFlags flags, byte* fmt);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTreePop();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTreePushStr(byte* str_id);
public static extern void igTreePush_Str(byte* str_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igTreePushPtr(void* ptr_id);
public static extern void igTreePush_Ptr(void* ptr_id);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igUnindent(float indent_w);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igUpdatePlatformWindows();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igValueBool(byte* prefix, byte b);
public static extern void igValue_Bool(byte* prefix, byte b);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igValueInt(byte* prefix, int v);
public static extern void igValue_Int(byte* prefix, int v);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igValueUint(byte* prefix, uint v);
public static extern void igValue_Uint(byte* prefix, uint v);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igValueFloat(byte* prefix, float v, byte* float_format);
public static extern void igValue_Float(byte* prefix, float v, byte* float_format);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igVSliderFloat(byte* label, Vector2 size, float* v, float v_min, float v_max, byte* format, ImGuiSliderFlags flags);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -749,20 +757,22 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImColor_HSV(ImColor* pOut, float h, float s, float v, float a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColorNil();
public static extern ImColor* ImColor_ImColor_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColorInt(int r, int g, int b, int a);
public static extern ImColor* ImColor_ImColor_Int(int r, int g, int b, int a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColorU32(uint rgba);
public static extern ImColor* ImColor_ImColor_U32(uint rgba);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColorFloat(float r, float g, float b, float a);
public static extern ImColor* ImColor_ImColor_Float(float r, float g, float b, float a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColorVec4(Vector4 col);
public static extern ImColor* ImColor_ImColor_Vec4(Vector4 col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawCmd_destroy(ImDrawCmd* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr ImDrawCmd_GetTexID(ImDrawCmd* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImDrawCmd* ImDrawCmd_ImDrawCmd();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawData_Clear(ImDrawData* self);
@ -793,6 +803,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList__ResetForNewFrame(ImDrawList* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList__TryMergeDrawCmds(ImDrawList* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddBezierCubic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int num_segments);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddBezierQuadratic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int num_segments);
@ -831,9 +843,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, Vector2 p_min, Vector2 p_max, uint col_upr_left, uint col_upr_right, uint col_bot_right, uint col_bot_left);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddTextVec2(ImDrawList* self, Vector2 pos, uint col, byte* text_begin, byte* text_end);
public static extern void ImDrawList_AddText_Vec2(ImDrawList* self, Vector2 pos, uint col, byte* text_begin, byte* text_end);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddTextFontPtr(ImDrawList* self, ImFont* font, float font_size, Vector2 pos, uint col, byte* text_begin, byte* text_end, float wrap_width, Vector4* cpu_fine_clip_rect);
public static extern void ImDrawList_AddText_FontPtr(ImDrawList* self, ImFont* font, float font_size, Vector2 pos, uint col, byte* text_begin, byte* text_end, float wrap_width, Vector4* cpu_fine_clip_rect);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawList_AddTriangle(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -949,8 +961,6 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, Vector2 pos, uint col, Vector4 clip_rect, byte* text_begin, byte* text_end, float wrap_width, byte cpu_fine_clip);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImFont_SetFallbackChar(ImFont* self, ushort c);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImFont_SetGlyphVisible(ImFont* self, ushort c, byte visible);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advance_x, Vector2 offset);
@ -1059,6 +1069,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_AddFocusEvent(ImGuiIO* self, byte focused);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_AddInputCharacter(ImGuiIO* self, uint c);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, byte* str);
@ -1067,6 +1079,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_ClearInputCharacters(ImGuiIO* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_ClearInputKeys(ImGuiIO* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_destroy(ImGuiIO* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiIO* ImGuiIO_ImGuiIO();
@ -1137,11 +1151,11 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiStoragePair_destroy(ImGuiStoragePair* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairInt(uint _key, int _val_i);
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(uint _key, int _val_i);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairFloat(uint _key, float _val_f);
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(uint _key, float _val_f);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePairPtr(uint _key, void* _val_p);
public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(uint _key, void* _val_p);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiStyle_destroy(ImGuiStyle* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -1197,9 +1211,9 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte ImGuiTextRange_empty(ImGuiTextRange* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeNil();
public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRangeStr(byte* _b, byte* _e);
public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(byte* _b, byte* _e);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiTextRange_split(ImGuiTextRange* self, byte separator, ImVector* @out);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
@ -1217,14 +1231,14 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImVec2_destroy(Vector2* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2* ImVec2_ImVec2Nil();
public static extern Vector2* ImVec2_ImVec2_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2* ImVec2_ImVec2Float(float _x, float _y);
public static extern Vector2* ImVec2_ImVec2_Float(float _x, float _y);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImVec4_destroy(Vector4* self);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern Vector4* ImVec4_ImVec4Nil();
public static extern Vector4* ImVec4_ImVec4_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern Vector4* ImVec4_ImVec4Float(float _x, float _y, float _z, float _w);
public static extern Vector4* ImVec4_ImVec4_Float(float _x, float _y, float _z, float _w);
}
}

@ -18,12 +18,11 @@ namespace ImGuiNET
FocusNext = 13,
TweakSlow = 14,
TweakFast = 15,
KeyMenu = 16,
KeyLeft = 17,
KeyRight = 18,
KeyUp = 19,
KeyDown = 20,
COUNT = 21,
KeyLeft = 16,
KeyRight = 17,
KeyUp = 18,
KeyDown = 19,
COUNT = 20,
InternalStart = 16,
}
}

@ -8,6 +8,7 @@ namespace ImGuiNET
public unsafe partial struct ImGuiStyle
{
public float Alpha;
public float DisabledAlpha;
public Vector2 WindowPadding;
public float WindowRounding;
public float WindowBorderSize;
@ -111,6 +112,7 @@ namespace ImGuiNET
public static implicit operator ImGuiStyle* (ImGuiStylePtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImGuiStylePtr(IntPtr nativePtr) => new ImGuiStylePtr(nativePtr);
public ref float Alpha => ref Unsafe.AsRef<float>(&NativePtr->Alpha);
public ref float DisabledAlpha => ref Unsafe.AsRef<float>(&NativePtr->DisabledAlpha);
public ref Vector2 WindowPadding => ref Unsafe.AsRef<Vector2>(&NativePtr->WindowPadding);
public ref float WindowRounding => ref Unsafe.AsRef<float>(&NativePtr->WindowRounding);
public ref float WindowBorderSize => ref Unsafe.AsRef<float>(&NativePtr->WindowBorderSize);

@ -3,29 +3,30 @@ namespace ImGuiNET
public enum ImGuiStyleVar
{
Alpha = 0,
WindowPadding = 1,
WindowRounding = 2,
WindowBorderSize = 3,
WindowMinSize = 4,
WindowTitleAlign = 5,
ChildRounding = 6,
ChildBorderSize = 7,
PopupRounding = 8,
PopupBorderSize = 9,
FramePadding = 10,
FrameRounding = 11,
FrameBorderSize = 12,
ItemSpacing = 13,
ItemInnerSpacing = 14,
IndentSpacing = 15,
CellPadding = 16,
ScrollbarSize = 17,
ScrollbarRounding = 18,
GrabMinSize = 19,
GrabRounding = 20,
TabRounding = 21,
ButtonTextAlign = 22,
SelectableTextAlign = 23,
COUNT = 24,
DisabledAlpha = 1,
WindowPadding = 2,
WindowRounding = 3,
WindowBorderSize = 4,
WindowMinSize = 5,
WindowTitleAlign = 6,
ChildRounding = 7,
ChildBorderSize = 8,
PopupRounding = 9,
PopupBorderSize = 10,
FramePadding = 11,
FrameRounding = 12,
FrameBorderSize = 13,
ItemSpacing = 14,
ItemInnerSpacing = 15,
IndentSpacing = 16,
CellPadding = 17,
ScrollbarSize = 18,
ScrollbarRounding = 19,
GrabMinSize = 20,
GrabRounding = 21,
TabRounding = 22,
ButtonTextAlign = 23,
SelectableTextAlign = 24,
COUNT = 25,
}
}

@ -4,29 +4,31 @@ namespace ImGuiNET
public enum ImGuiTableColumnFlags
{
None = 0,
DefaultHide = 1,
DefaultSort = 2,
WidthStretch = 4,
WidthFixed = 8,
NoResize = 16,
NoReorder = 32,
NoHide = 64,
NoClip = 128,
NoSort = 256,
NoSortAscending = 512,
NoSortDescending = 1024,
NoHeaderWidth = 2048,
PreferSortAscending = 4096,
PreferSortDescending = 8192,
IndentEnable = 16384,
IndentDisable = 32768,
IsEnabled = 1048576,
IsVisible = 2097152,
IsSorted = 4194304,
IsHovered = 8388608,
WidthMask = 12,
IndentMask = 49152,
StatusMask = 15728640,
Disabled = 1,
DefaultHide = 2,
DefaultSort = 4,
WidthStretch = 8,
WidthFixed = 16,
NoResize = 32,
NoReorder = 64,
NoHide = 128,
NoClip = 256,
NoSort = 512,
NoSortAscending = 1024,
NoSortDescending = 2048,
NoHeaderLabel = 4096,
NoHeaderWidth = 8192,
PreferSortAscending = 16384,
PreferSortDescending = 32768,
IndentEnable = 65536,
IndentDisable = 131072,
IsEnabled = 16777216,
IsVisible = 33554432,
IsSorted = 67108864,
IsHovered = 134217728,
WidthMask = 24,
IndentMask = 196608,
StatusMask = 251658240,
NoDirectResize = 1073741824,
}
}

@ -13,7 +13,6 @@ namespace ImGuiNET
public ImGuiViewportFlags ViewportFlagsOverrideClear;
public ImGuiTabItemFlags TabItemFlagsOverrideSet;
public ImGuiDockNodeFlags DockNodeFlagsOverrideSet;
public ImGuiDockNodeFlags DockNodeFlagsOverrideClear;
public byte DockingAlwaysTabBar;
public byte DockingAllowUnclassed;
}
@ -31,7 +30,6 @@ namespace ImGuiNET
public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef<ImGuiViewportFlags>(&NativePtr->ViewportFlagsOverrideClear);
public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef<ImGuiTabItemFlags>(&NativePtr->TabItemFlagsOverrideSet);
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&NativePtr->DockNodeFlagsOverrideSet);
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideClear => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&NativePtr->DockNodeFlagsOverrideClear);
public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&NativePtr->DockingAlwaysTabBar);
public ref bool DockingAllowUnclassed => ref Unsafe.AsRef<bool>(&NativePtr->DockingAllowUnclassed);
public void Destroy()

@ -15,7 +15,7 @@ namespace ImGuiNET
native_text_begin[native_text_begin_offset] = 0;
}
byte* native_text_end = null;
ImGuiNative.ImDrawList_AddTextVec2(NativePtr, pos, col, native_text_begin, native_text_end);
ImGuiNative.ImDrawList_AddText_Vec2(NativePtr, pos, col, native_text_begin, native_text_end);
}
public void AddText(ImFontPtr font, float font_size, Vector2 pos, uint col, string text_begin)
@ -31,7 +31,7 @@ namespace ImGuiNET
byte* native_text_end = null;
float wrap_width = 0.0f;
Vector4* cpu_fine_clip_rect = null;
ImGuiNative.ImDrawList_AddTextFontPtr(NativePtr, native_font, font_size, pos, col, native_text_begin, native_text_end, wrap_width, cpu_fine_clip_rect);
ImGuiNative.ImDrawList_AddText_FontPtr(NativePtr, native_font, font_size, pos, col, native_text_begin, native_text_end, wrap_width, cpu_fine_clip_rect);
}
}
}

Loading…
Cancel
Save