// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGui { /// /// To be documented. /// public static bool BeginTable(string strId, int column, Vector2 outerSize, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndTableNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[262])(); #else ((delegate* unmanaged[Cdecl])funcTable[262])(); #endif } /// /// To be documented. /// public static void EndTable() { EndTableNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableNextRowNative(ImGuiTableRowFlags rowFlags, float minRowHeight) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[263])(rowFlags, minRowHeight); #else ((delegate* unmanaged[Cdecl])funcTable[263])(rowFlags, minRowHeight); #endif } /// /// To be documented. /// public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) { TableNextRowNative(rowFlags, minRowHeight); } /// /// To be documented. /// public static void TableNextRow(ImGuiTableRowFlags rowFlags) { TableNextRowNative(rowFlags, (float)(0.0f)); } /// /// To be documented. /// public static void TableNextRow() { TableNextRowNative((ImGuiTableRowFlags)(0), (float)(0.0f)); } /// /// To be documented. /// public static void TableNextRow(float minRowHeight) { TableNextRowNative((ImGuiTableRowFlags)(0), minRowHeight); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TableNextColumnNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[264])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[264])(); #endif } /// /// To be documented. /// public static bool TableNextColumn() { byte ret = TableNextColumnNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TableSetColumnIndexNative(int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[265])(columnN); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[265])(columnN); #endif } /// /// To be documented. /// public static bool TableSetColumnIndex(int columnN) { byte ret = TableSetColumnIndexNative(columnN); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetupColumnNative(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[266])(label, flags, initWidthOrWeight, userId); #else ((delegate* unmanaged[Cdecl])funcTable[266])((nint)label, flags, initWidthOrWeight, userId); #endif } /// /// To be documented. /// public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) { TableSetupColumnNative(label, flags, initWidthOrWeight, userId); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight) { TableSetupColumnNative(label, flags, initWidthOrWeight, (uint)(0)); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags) { TableSetupColumnNative(label, flags, (float)(0.0f), (uint)(0)); } /// /// To be documented. /// public static void TableSetupColumn(byte* label) { TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, float initWidthOrWeight) { TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, uint userId) { TableSetupColumnNative(label, flags, (float)(0.0f), userId); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, uint userId) { TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); } /// /// To be documented. /// public static void TableSetupColumn(byte* label, float initWidthOrWeight, uint userId) { TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, float initWidthOrWeight) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, uint userId) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, uint userId) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); } } /// /// To be documented. /// public static void TableSetupColumn(ref byte label, float initWidthOrWeight, uint userId) { fixed (byte* plabel = &label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, float initWidthOrWeight) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, float initWidthOrWeight) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, ImGuiTableColumnFlags flags, uint userId) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, uint userId) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); } } /// /// To be documented. /// public static void TableSetupColumn(ReadOnlySpan label, float initWidthOrWeight, uint userId) { fixed (byte* plabel = label) { TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); } } /// /// To be documented. /// public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, flags, initWidthOrWeight, userId); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, flags, initWidthOrWeight, (uint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, flags, (float)(0.0f), (uint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, float initWidthOrWeight) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, uint userId) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, flags, (float)(0.0f), userId); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, uint userId) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TableSetupColumn(string label, float initWidthOrWeight, uint userId) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetupScrollFreezeNative(int cols, int rows) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[267])(cols, rows); #else ((delegate* unmanaged[Cdecl])funcTable[267])(cols, rows); #endif } /// /// To be documented. /// public static void TableSetupScrollFreeze(int cols, int rows) { TableSetupScrollFreezeNative(cols, rows); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableHeadersRowNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[268])(); #else ((delegate* unmanaged[Cdecl])funcTable[268])(); #endif } /// /// To be documented. /// public static void TableHeadersRow() { TableHeadersRowNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableHeaderNative(byte* label) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[269])(label); #else ((delegate* unmanaged[Cdecl])funcTable[269])((nint)label); #endif } /// /// To be documented. /// public static void TableHeader(byte* label) { TableHeaderNative(label); } /// /// To be documented. /// public static void TableHeader(ref byte label) { fixed (byte* plabel = &label) { TableHeaderNative((byte*)plabel); } } /// /// To be documented. /// public static void TableHeader(ReadOnlySpan label) { fixed (byte* plabel = label) { TableHeaderNative((byte*)plabel); } } /// /// To be documented. /// public static void TableHeader(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TableHeaderNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSortSpecs* TableGetSortSpecsNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[270])(); #else return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[270])(); #endif } /// /// To be documented. /// public static ImGuiTableSortSpecsPtr TableGetSortSpecs() { ImGuiTableSortSpecsPtr ret = TableGetSortSpecsNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int TableGetColumnCountNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[271])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[271])(); #endif } /// /// To be documented. /// public static int TableGetColumnCount() { int ret = TableGetColumnCountNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int TableGetColumnIndexNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[272])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[272])(); #endif } /// /// To be documented. /// public static int TableGetColumnIndex() { int ret = TableGetColumnIndexNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int TableGetRowIndexNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[273])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[273])(); #endif } /// /// To be documented. /// public static int TableGetRowIndex() { int ret = TableGetRowIndexNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* TableGetColumnNameNative(int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[274])(columnN); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[274])(columnN); #endif } /// /// To be documented. /// public static byte* TableGetColumnName(int columnN) { byte* ret = TableGetColumnNameNative(columnN); return ret; } /// /// To be documented. /// public static byte* TableGetColumnName() { byte* ret = TableGetColumnNameNative((int)(-1)); return ret; } /// /// To be documented. /// public static string TableGetColumnNameS() { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); return ret; } /// /// To be documented. /// public static string TableGetColumnNameS(int columnN) { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(columnN)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableColumnFlags TableGetColumnFlagsNative(int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[275])(columnN); #else return (ImGuiTableColumnFlags)((delegate* unmanaged[Cdecl])funcTable[275])(columnN); #endif } /// /// To be documented. /// public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) { ImGuiTableColumnFlags ret = TableGetColumnFlagsNative(columnN); return ret; } /// /// To be documented. /// public static ImGuiTableColumnFlags TableGetColumnFlags() { ImGuiTableColumnFlags ret = TableGetColumnFlagsNative((int)(-1)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnEnabledNative(int columnN, byte v) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[276])(columnN, v); #else ((delegate* unmanaged[Cdecl])funcTable[276])(columnN, v); #endif } /// /// To be documented. /// public static void TableSetColumnEnabled(int columnN, bool v) { TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetBgColorNative(ImGuiTableBgTarget target, uint color, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[277])(target, color, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[277])(target, color, columnN); #endif } /// /// To be documented. /// public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) { TableSetBgColorNative(target, color, columnN); } /// /// To be documented. /// public static void TableSetBgColor(ImGuiTableBgTarget target, uint color) { TableSetBgColorNative(target, color, (int)(-1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ColumnsNative(int count, byte* id, byte border) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[278])(count, id, border); #else ((delegate* unmanaged[Cdecl])funcTable[278])(count, (nint)id, border); #endif } /// /// To be documented. /// public static void Columns(int count, byte* id, bool border) { ColumnsNative(count, id, border ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void Columns(int count, byte* id) { ColumnsNative(count, id, (byte)(1)); } /// /// To be documented. /// public static void Columns(int count) { ColumnsNative(count, (byte*)(default), (byte)(1)); } /// /// To be documented. /// public static void Columns() { ColumnsNative((int)(1), (byte*)(default), (byte)(1)); } /// /// To be documented. /// public static void Columns(byte* id) { ColumnsNative((int)(1), id, (byte)(1)); } /// /// To be documented. /// public static void Columns(int count, bool border) { ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void Columns(bool border) { ColumnsNative((int)(1), (byte*)(default), border ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void Columns(byte* id, bool border) { ColumnsNative((int)(1), id, border ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void Columns(int count, ref byte id, bool border) { fixed (byte* pid = &id) { ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void Columns(int count, ref byte id) { fixed (byte* pid = &id) { ColumnsNative(count, (byte*)pid, (byte)(1)); } } /// /// To be documented. /// public static void Columns(ref byte id) { fixed (byte* pid = &id) { ColumnsNative((int)(1), (byte*)pid, (byte)(1)); } } /// /// To be documented. /// public static void Columns(ref byte id, bool border) { fixed (byte* pid = &id) { ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void Columns(int count, ReadOnlySpan id, bool border) { fixed (byte* pid = id) { ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void Columns(int count, ReadOnlySpan id) { fixed (byte* pid = id) { ColumnsNative(count, (byte*)pid, (byte)(1)); } } /// /// To be documented. /// public static void Columns(ReadOnlySpan id) { fixed (byte* pid = id) { ColumnsNative((int)(1), (byte*)pid, (byte)(1)); } } /// /// To be documented. /// public static void Columns(ReadOnlySpan id, bool border) { fixed (byte* pid = id) { ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void Columns(int count, string id, bool border) { byte* pStr0 = null; int pStrSize0 = 0; if (id != null) { pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void Columns(int count, string id) { byte* pStr0 = null; int pStrSize0 = 0; if (id != null) { pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ColumnsNative(count, pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void Columns(string id) { byte* pStr0 = null; int pStrSize0 = 0; if (id != null) { pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ColumnsNative((int)(1), pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void Columns(string id, bool border) { byte* pStr0 = null; int pStrSize0 = 0; if (id != null) { pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ColumnsNative((int)(1), pStr0, border ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NextColumnNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[279])(); #else ((delegate* unmanaged[Cdecl])funcTable[279])(); #endif } /// /// To be documented. /// public static void NextColumn() { NextColumnNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetColumnIndexNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[280])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[280])(); #endif } /// /// To be documented. /// public static int GetColumnIndex() { int ret = GetColumnIndexNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetColumnWidthNative(int columnIndex) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[281])(columnIndex); #else return (float)((delegate* unmanaged[Cdecl])funcTable[281])(columnIndex); #endif } /// /// To be documented. /// public static float GetColumnWidth(int columnIndex) { float ret = GetColumnWidthNative(columnIndex); return ret; } /// /// To be documented. /// public static float GetColumnWidth() { float ret = GetColumnWidthNative((int)(-1)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetColumnWidthNative(int columnIndex, float width) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[282])(columnIndex, width); #else ((delegate* unmanaged[Cdecl])funcTable[282])(columnIndex, width); #endif } /// /// To be documented. /// public static void SetColumnWidth(int columnIndex, float width) { SetColumnWidthNative(columnIndex, width); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetColumnOffsetNative(int columnIndex) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[283])(columnIndex); #else return (float)((delegate* unmanaged[Cdecl])funcTable[283])(columnIndex); #endif } /// /// To be documented. /// public static float GetColumnOffset(int columnIndex) { float ret = GetColumnOffsetNative(columnIndex); return ret; } /// /// To be documented. /// public static float GetColumnOffset() { float ret = GetColumnOffsetNative((int)(-1)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetColumnOffsetNative(int columnIndex, float offsetX) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[284])(columnIndex, offsetX); #else ((delegate* unmanaged[Cdecl])funcTable[284])(columnIndex, offsetX); #endif } /// /// To be documented. /// public static void SetColumnOffset(int columnIndex, float offsetX) { SetColumnOffsetNative(columnIndex, offsetX); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetColumnsCountNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[285])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[285])(); #endif } /// /// To be documented. /// public static int GetColumnsCount() { int ret = GetColumnsCountNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTabBarNative(byte* strId, ImGuiTabBarFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[286])(strId, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[286])((nint)strId, flags); #endif } /// /// To be documented. /// public static bool BeginTabBar(byte* strId, ImGuiTabBarFlags flags) { byte ret = BeginTabBarNative(strId, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginTabBar(byte* strId) { byte ret = BeginTabBarNative(strId, (ImGuiTabBarFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginTabBar(ref byte strId, ImGuiTabBarFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginTabBarNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBar(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBar(ReadOnlySpan strId, ImGuiTabBarFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginTabBarNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBar(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBar(string strId, ImGuiTabBarFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabBarNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTabBar(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabBarNative(pStr0, (ImGuiTabBarFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndTabBarNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[287])(); #else ((delegate* unmanaged[Cdecl])funcTable[287])(); #endif } /// /// To be documented. /// public static void EndTabBar() { EndTabBarNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTabItemNative(byte* label, bool* pOpen, ImGuiTabItemFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[288])(label, pOpen, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[288])((nint)label, (nint)pOpen, flags); #endif } /// /// To be documented. /// public static bool BeginTabItem(byte* label, bool* pOpen, ImGuiTabItemFlags flags) { byte ret = BeginTabItemNative(label, pOpen, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(byte* label, bool* pOpen) { byte ret = BeginTabItemNative(label, pOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(byte* label) { byte ret = BeginTabItemNative(label, (bool*)(default), (ImGuiTabItemFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(byte* label, ImGuiTabItemFlags flags) { byte ret = BeginTabItemNative(label, (bool*)(default), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(ref byte label, bool* pOpen, ImGuiTabItemFlags flags) { fixed (byte* plabel = &label) { byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ref byte label, bool* pOpen) { fixed (byte* plabel = &label) { byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ref byte label) { fixed (byte* plabel = &label) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ref byte label, ImGuiTabItemFlags flags) { fixed (byte* plabel = &label) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags) { fixed (byte* plabel = label) { byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label, bool* pOpen) { fixed (byte* plabel = label) { byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label, ImGuiTabItemFlags flags) { fixed (byte* plabel = label) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(string label, bool* pOpen, ImGuiTabItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabItemNative(pStr0, pOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(string label, bool* pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabItemNative(pStr0, pOpen, (ImGuiTabItemFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabItemNative(pStr0, (bool*)(default), (ImGuiTabItemFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(string label, ImGuiTabItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTabItemNative(pStr0, (bool*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTabItem(byte* label, ref bool pOpen, ImGuiTabItemFlags flags) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative(label, (bool*)ppOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(byte* label, ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative(label, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(ref byte label, ref bool pOpen, ImGuiTabItemFlags flags) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginTabItem(ref byte label, ref bool pOpen) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginTabItem(ReadOnlySpan label, ref bool pOpen) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginTabItem(string label, ref bool pOpen, ImGuiTabItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative(pStr0, (bool*)ppOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginTabItem(string label, ref bool pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginTabItemNative(pStr0, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndTabItemNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[289])(); #else ((delegate* unmanaged[Cdecl])funcTable[289])(); #endif } /// /// To be documented. /// public static void EndTabItem() { EndTabItemNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TabItemButtonNative(byte* label, ImGuiTabItemFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[290])(label, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[290])((nint)label, flags); #endif } /// /// To be documented. /// public static bool TabItemButton(byte* label, ImGuiTabItemFlags flags) { byte ret = TabItemButtonNative(label, flags); return ret != 0; } /// /// To be documented. /// public static bool TabItemButton(byte* label) { byte ret = TabItemButtonNative(label, (ImGuiTabItemFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool TabItemButton(ref byte label, ImGuiTabItemFlags flags) { fixed (byte* plabel = &label) { byte ret = TabItemButtonNative((byte*)plabel, flags); return ret != 0; } } /// /// To be documented. /// public static bool TabItemButton(ref byte label) { fixed (byte* plabel = &label) { byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool TabItemButton(ReadOnlySpan label, ImGuiTabItemFlags flags) { fixed (byte* plabel = label) { byte ret = TabItemButtonNative((byte*)plabel, flags); return ret != 0; } } /// /// To be documented. /// public static bool TabItemButton(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool TabItemButton(string label, ImGuiTabItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TabItemButtonNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TabItemButton(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TabItemButtonNative(pStr0, (ImGuiTabItemFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetTabItemClosedNative(byte* tabOrDockedWindowLabel) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[291])(tabOrDockedWindowLabel); #else ((delegate* unmanaged[Cdecl])funcTable[291])((nint)tabOrDockedWindowLabel); #endif } /// /// To be documented. /// public static void SetTabItemClosed(byte* tabOrDockedWindowLabel) { SetTabItemClosedNative(tabOrDockedWindowLabel); } /// /// To be documented. /// public static void SetTabItemClosed(ref byte tabOrDockedWindowLabel) { fixed (byte* ptabOrDockedWindowLabel = &tabOrDockedWindowLabel) { SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); } } /// /// To be documented. /// public static void SetTabItemClosed(ReadOnlySpan tabOrDockedWindowLabel) { fixed (byte* ptabOrDockedWindowLabel = tabOrDockedWindowLabel) { SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); } } /// /// To be documented. /// public static void SetTabItemClosed(string tabOrDockedWindowLabel) { byte* pStr0 = null; int pStrSize0 = 0; if (tabOrDockedWindowLabel != null) { pStrSize0 = Utils.GetByteCountUTF8(tabOrDockedWindowLabel); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(tabOrDockedWindowLabel, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetTabItemClosedNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockSpaceNative(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[292])(id, size, flags, windowClass); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[292])(id, size, flags, (nint)windowClass); #endif } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceNative(id, size, flags, windowClass); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) { uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size) { uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, ImGuiDockNodeFlags flags) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), windowClass); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); return ret; } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpace(uint id, Vector2 size, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpace(uint id, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockSpaceOverViewportNative(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[293])(viewport, flags, windowClass); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[293])((nint)viewport, flags, (nint)windowClass); #endif } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceOverViewportNative(viewport, flags, windowClass); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags) { uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport) { uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport() { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), windowClass); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, windowClass); return ret; } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) { fixed (ImGuiViewport* pviewport = &viewport) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, windowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags) { fixed (ImGuiViewport* pviewport = &viewport) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport) { fixed (ImGuiViewport* pviewport = &viewport) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiWindowClassPtr windowClass) { fixed (ImGuiViewport* pviewport = &viewport) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); return ret; } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) { fixed (ImGuiViewport* pviewport = &viewport) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); return ret; } } } /// /// To be documented. /// public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ref ImGuiWindowClass windowClass) { fixed (ImGuiViewport* pviewport = &viewport) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowDockIDNative(uint dockId, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[294])(dockId, cond); #else ((delegate* unmanaged[Cdecl])funcTable[294])(dockId, cond); #endif } /// /// To be documented. /// public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) { SetNextWindowDockIDNative(dockId, cond); } /// /// To be documented. /// public static void SetNextWindowDockID(uint dockId) { SetNextWindowDockIDNative(dockId, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowClassNative(ImGuiWindowClass* windowClass) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[295])(windowClass); #else ((delegate* unmanaged[Cdecl])funcTable[295])((nint)windowClass); #endif } /// /// To be documented. /// public static void SetNextWindowClass(ImGuiWindowClassPtr windowClass) { SetNextWindowClassNative(windowClass); } /// /// To be documented. /// public static void SetNextWindowClass(ref ImGuiWindowClass windowClass) { fixed (ImGuiWindowClass* pwindowClass = &windowClass) { SetNextWindowClassNative((ImGuiWindowClass*)pwindowClass); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetWindowDockIDNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[296])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[296])(); #endif } /// /// To be documented. /// public static uint GetWindowDockID() { uint ret = GetWindowDockIDNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowDockedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[297])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[297])(); #endif } /// /// To be documented. /// public static bool IsWindowDocked() { byte ret = IsWindowDockedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogToTTYNative(int autoOpenDepth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[298])(autoOpenDepth); #else ((delegate* unmanaged[Cdecl])funcTable[298])(autoOpenDepth); #endif } /// /// To be documented. /// public static void LogToTTY(int autoOpenDepth) { LogToTTYNative(autoOpenDepth); } /// /// To be documented. /// public static void LogToTTY() { LogToTTYNative((int)(-1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogToFileNative(int autoOpenDepth, byte* filename) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[299])(autoOpenDepth, filename); #else ((delegate* unmanaged[Cdecl])funcTable[299])(autoOpenDepth, (nint)filename); #endif } /// /// To be documented. /// public static void LogToFile(int autoOpenDepth, byte* filename) { LogToFileNative(autoOpenDepth, filename); } /// /// To be documented. /// public static void LogToFile(int autoOpenDepth) { LogToFileNative(autoOpenDepth, (byte*)(default)); } /// /// To be documented. /// public static void LogToFile() { LogToFileNative((int)(-1), (byte*)(default)); } /// /// To be documented. /// public static void LogToFile(byte* filename) { LogToFileNative((int)(-1), filename); } /// /// To be documented. /// public static void LogToFile(int autoOpenDepth, ref byte filename) { fixed (byte* pfilename = &filename) { LogToFileNative(autoOpenDepth, (byte*)pfilename); } } /// /// To be documented. /// public static void LogToFile(ref byte filename) { fixed (byte* pfilename = &filename) { LogToFileNative((int)(-1), (byte*)pfilename); } } /// /// To be documented. /// public static void LogToFile(int autoOpenDepth, ReadOnlySpan filename) { fixed (byte* pfilename = filename) { LogToFileNative(autoOpenDepth, (byte*)pfilename); } } /// /// To be documented. /// public static void LogToFile(ReadOnlySpan filename) { fixed (byte* pfilename = filename) { LogToFileNative((int)(-1), (byte*)pfilename); } } /// /// To be documented. /// public static void LogToFile(int autoOpenDepth, string filename) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogToFileNative(autoOpenDepth, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogToFile(string filename) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogToFileNative((int)(-1), pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogToClipboardNative(int autoOpenDepth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[300])(autoOpenDepth); #else ((delegate* unmanaged[Cdecl])funcTable[300])(autoOpenDepth); #endif } /// /// To be documented. /// public static void LogToClipboard(int autoOpenDepth) { LogToClipboardNative(autoOpenDepth); } /// /// To be documented. /// public static void LogToClipboard() { LogToClipboardNative((int)(-1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogFinishNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[301])(); #else ((delegate* unmanaged[Cdecl])funcTable[301])(); #endif } /// /// To be documented. /// public static void LogFinish() { LogFinishNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogButtonsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[302])(); #else ((delegate* unmanaged[Cdecl])funcTable[302])(); #endif } /// /// To be documented. /// public static void LogButtons() { LogButtonsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogTextVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[303])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[303])((nint)fmt, args); #endif } /// /// To be documented. /// public static void LogTextV(byte* fmt, nuint args) { LogTextVNative(fmt, args); } /// /// To be documented. /// public static void LogTextV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { LogTextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void LogTextV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { LogTextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void LogTextV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogTextVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginDragDropSourceNative(ImGuiDragDropFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[304])(flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[304])(flags); #endif } /// /// To be documented. /// public static bool BeginDragDropSource(ImGuiDragDropFlags flags) { byte ret = BeginDragDropSourceNative(flags); return ret != 0; } /// /// To be documented. /// public static bool BeginDragDropSource() { byte ret = BeginDragDropSourceNative((ImGuiDragDropFlags)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte SetDragDropPayloadNative(byte* type, void* data, nuint sz, ImGuiCond cond) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[305])(type, data, sz, cond); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[305])((nint)type, (nint)data, sz, cond); #endif } /// /// To be documented. /// public static bool SetDragDropPayload(byte* type, void* data, nuint sz, ImGuiCond cond) { byte ret = SetDragDropPayloadNative(type, data, sz, cond); return ret != 0; } /// /// To be documented. /// public static bool SetDragDropPayload(byte* type, void* data, nuint sz) { byte ret = SetDragDropPayloadNative(type, data, sz, (ImGuiCond)(0)); return ret != 0; } /// /// To be documented. /// public static bool SetDragDropPayload(ref byte type, void* data, nuint sz, ImGuiCond cond) { fixed (byte* ptype = &type) { byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); return ret != 0; } } /// /// To be documented. /// public static bool SetDragDropPayload(ref byte type, void* data, nuint sz) { fixed (byte* ptype = &type) { byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); return ret != 0; } } /// /// To be documented. /// public static bool SetDragDropPayload(ReadOnlySpan type, void* data, nuint sz, ImGuiCond cond) { fixed (byte* ptype = type) { byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); return ret != 0; } } /// /// To be documented. /// public static bool SetDragDropPayload(ReadOnlySpan type, void* data, nuint sz) { fixed (byte* ptype = type) { byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); return ret != 0; } } /// /// To be documented. /// public static bool SetDragDropPayload(string type, void* data, nuint sz, ImGuiCond cond) { byte* pStr0 = null; int pStrSize0 = 0; if (type != null) { pStrSize0 = Utils.GetByteCountUTF8(type); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = SetDragDropPayloadNative(pStr0, data, sz, cond); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool SetDragDropPayload(string type, void* data, nuint sz) { byte* pStr0 = null; int pStrSize0 = 0; if (type != null) { pStrSize0 = Utils.GetByteCountUTF8(type); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = SetDragDropPayloadNative(pStr0, data, sz, (ImGuiCond)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndDragDropSourceNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[306])(); #else ((delegate* unmanaged[Cdecl])funcTable[306])(); #endif } /// /// To be documented. /// public static void EndDragDropSource() { EndDragDropSourceNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginDragDropTargetNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[307])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[307])(); #endif } /// /// To be documented. /// public static bool BeginDragDropTarget() { byte ret = BeginDragDropTargetNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiPayload* AcceptDragDropPayloadNative(byte* type, ImGuiDragDropFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[308])(type, flags); #else return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[308])((nint)type, flags); #endif } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, flags); return ret; } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, (ImGuiDragDropFlags)(0)); return ret; } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type, ImGuiDragDropFlags flags) { fixed (byte* ptype = &type) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); return ret; } } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type) { fixed (byte* ptype = &type) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); return ret; } } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan type, ImGuiDragDropFlags flags) { fixed (byte* ptype = type) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); return ret; } } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan type) { fixed (byte* ptype = type) { ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); return ret; } } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(string type, ImGuiDragDropFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (type != null) { pStrSize0 = Utils.GetByteCountUTF8(type); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImGuiPayloadPtr AcceptDragDropPayload(string type) { byte* pStr0 = null; int pStrSize0 = 0; if (type != null) { pStrSize0 = Utils.GetByteCountUTF8(type); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, (ImGuiDragDropFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndDragDropTargetNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[309])(); #else ((delegate* unmanaged[Cdecl])funcTable[309])(); #endif } /// /// To be documented. /// public static void EndDragDropTarget() { EndDragDropTargetNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiPayload* GetDragDropPayloadNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[310])(); #else return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[310])(); #endif } /// /// To be documented. /// public static ImGuiPayloadPtr GetDragDropPayload() { ImGuiPayloadPtr ret = GetDragDropPayloadNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginDisabledNative(byte disabled) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[311])(disabled); #else ((delegate* unmanaged[Cdecl])funcTable[311])(disabled); #endif } /// /// To be documented. /// public static void BeginDisabled(bool disabled) { BeginDisabledNative(disabled ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void BeginDisabled() { BeginDisabledNative((byte)(1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndDisabledNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[312])(); #else ((delegate* unmanaged[Cdecl])funcTable[312])(); #endif } /// /// To be documented. /// public static void EndDisabled() { EndDisabledNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushClipRectNative(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); #else ((delegate* unmanaged[Cdecl])funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); #endif } /// /// To be documented. /// public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) { PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopClipRectNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[314])(); #else ((delegate* unmanaged[Cdecl])funcTable[314])(); #endif } /// /// To be documented. /// public static void PopClipRect() { PopClipRectNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetItemDefaultFocusNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[315])(); #else ((delegate* unmanaged[Cdecl])funcTable[315])(); #endif } /// /// To be documented. /// public static void SetItemDefaultFocus() { SetItemDefaultFocusNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetKeyboardFocusHereNative(int offset) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[316])(offset); #else ((delegate* unmanaged[Cdecl])funcTable[316])(offset); #endif } /// /// To be documented. /// public static void SetKeyboardFocusHere(int offset) { SetKeyboardFocusHereNative(offset); } /// /// To be documented. /// public static void SetKeyboardFocusHere() { SetKeyboardFocusHereNative((int)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemHoveredNative(ImGuiHoveredFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[317])(flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[317])(flags); #endif } /// /// To be documented. /// public static bool IsItemHovered(ImGuiHoveredFlags flags) { byte ret = IsItemHoveredNative(flags); return ret != 0; } /// /// To be documented. /// public static bool IsItemHovered() { byte ret = IsItemHoveredNative((ImGuiHoveredFlags)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemActiveNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[318])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[318])(); #endif } /// /// To be documented. /// public static bool IsItemActive() { byte ret = IsItemActiveNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemFocusedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[319])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[319])(); #endif } /// /// To be documented. /// public static bool IsItemFocused() { byte ret = IsItemFocusedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemClickedNative(ImGuiMouseButton mouseButton) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[320])(mouseButton); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[320])(mouseButton); #endif } /// /// To be documented. /// public static bool IsItemClicked(ImGuiMouseButton mouseButton) { byte ret = IsItemClickedNative(mouseButton); return ret != 0; } /// /// To be documented. /// public static bool IsItemClicked() { byte ret = IsItemClickedNative((ImGuiMouseButton)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemVisibleNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[321])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[321])(); #endif } /// /// To be documented. /// public static bool IsItemVisible() { byte ret = IsItemVisibleNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemEditedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[322])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[322])(); #endif } /// /// To be documented. /// public static bool IsItemEdited() { byte ret = IsItemEditedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemActivatedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[323])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[323])(); #endif } /// /// To be documented. /// public static bool IsItemActivated() { byte ret = IsItemActivatedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemDeactivatedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[324])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[324])(); #endif } /// /// To be documented. /// public static bool IsItemDeactivated() { byte ret = IsItemDeactivatedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemDeactivatedAfterEditNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[325])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[325])(); #endif } /// /// To be documented. /// public static bool IsItemDeactivatedAfterEdit() { byte ret = IsItemDeactivatedAfterEditNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemToggledOpenNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[326])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[326])(); #endif } /// /// To be documented. /// public static bool IsItemToggledOpen() { byte ret = IsItemToggledOpenNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsAnyItemHoveredNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[327])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[327])(); #endif } /// /// To be documented. /// public static bool IsAnyItemHovered() { byte ret = IsAnyItemHoveredNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsAnyItemActiveNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[328])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[328])(); #endif } /// /// To be documented. /// public static bool IsAnyItemActive() { byte ret = IsAnyItemActiveNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsAnyItemFocusedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[329])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[329])(); #endif } /// /// To be documented. /// public static bool IsAnyItemFocused() { byte ret = IsAnyItemFocusedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetItemRectMinNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[330])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[330])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetItemRectMin() { Vector2 ret; GetItemRectMinNative(&ret); return ret; } /// /// To be documented. /// public static void GetItemRectMin(Vector2* pOut) { GetItemRectMinNative(pOut); } /// /// To be documented. /// public static void GetItemRectMin(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetItemRectMinNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetItemRectMaxNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[331])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[331])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetItemRectMax() { Vector2 ret; GetItemRectMaxNative(&ret); return ret; } /// /// To be documented. /// public static void GetItemRectMax(Vector2* pOut) { GetItemRectMaxNative(pOut); } /// /// To be documented. /// public static void GetItemRectMax(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetItemRectMaxNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetItemRectSizeNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[332])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[332])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetItemRectSize() { Vector2 ret; GetItemRectSizeNative(&ret); return ret; } /// /// To be documented. /// public static void GetItemRectSize(Vector2* pOut) { GetItemRectSizeNative(pOut); } /// /// To be documented. /// public static void GetItemRectSize(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetItemRectSizeNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetItemAllowOverlapNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[333])(); #else ((delegate* unmanaged[Cdecl])funcTable[333])(); #endif } /// /// To be documented. /// public static void SetItemAllowOverlap() { SetItemAllowOverlapNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiViewport* GetMainViewportNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[334])(); #else return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[334])(); #endif } /// /// To be documented. /// public static ImGuiViewportPtr GetMainViewport() { ImGuiViewportPtr ret = GetMainViewportNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetBackgroundDrawListNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[335])(); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[335])(); #endif } /// /// To be documented. /// public static ImDrawListPtr GetBackgroundDrawList() { ImDrawListPtr ret = GetBackgroundDrawListNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetForegroundDrawListNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[336])(); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[336])(); #endif } /// /// To be documented. /// public static ImDrawListPtr GetForegroundDrawList() { ImDrawListPtr ret = GetForegroundDrawListNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetBackgroundDrawListNative(ImGuiViewport* viewport) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[337])(viewport); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[337])((nint)viewport); #endif } /// /// To be documented. /// public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) { ImDrawListPtr ret = GetBackgroundDrawListNative(viewport); return ret; } /// /// To be documented. /// public static ImDrawListPtr GetBackgroundDrawList(ref ImGuiViewport viewport) { fixed (ImGuiViewport* pviewport = &viewport) { ImDrawListPtr ret = GetBackgroundDrawListNative((ImGuiViewport*)pviewport); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetForegroundDrawListNative(ImGuiViewport* viewport) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[338])(viewport); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[338])((nint)viewport); #endif } /// /// To be documented. /// public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) { ImDrawListPtr ret = GetForegroundDrawListNative(viewport); return ret; } /// /// To be documented. /// public static ImDrawListPtr GetForegroundDrawList(ref ImGuiViewport viewport) { fixed (ImGuiViewport* pviewport = &viewport) { ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiViewport*)pviewport); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsRectVisibleNative(Vector2 size) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[339])(size); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[339])(size); #endif } /// /// To be documented. /// public static bool IsRectVisible(Vector2 size) { byte ret = IsRectVisibleNative(size); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsRectVisibleNative(Vector2 rectMin, Vector2 rectMax) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[340])(rectMin, rectMax); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[340])(rectMin, rectMax); #endif } /// /// To be documented. /// public static bool IsRectVisible(Vector2 rectMin, Vector2 rectMax) { byte ret = IsRectVisibleNative(rectMin, rectMax); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static double GetTimeNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[341])(); #else return (double)((delegate* unmanaged[Cdecl])funcTable[341])(); #endif } /// /// To be documented. /// public static double GetTime() { double ret = GetTimeNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetFrameCountNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[342])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[342])(); #endif } /// /// To be documented. /// public static int GetFrameCount() { int ret = GetFrameCountNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawListSharedData* GetDrawListSharedDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[343])(); #else return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl])funcTable[343])(); #endif } /// /// To be documented. /// public static ImDrawListSharedDataPtr GetDrawListSharedData() { ImDrawListSharedDataPtr ret = GetDrawListSharedDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetStyleColorNameNative(ImGuiCol idx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[344])(idx); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[344])(idx); #endif } /// /// To be documented. /// public static byte* GetStyleColorName(ImGuiCol idx) { byte* ret = GetStyleColorNameNative(idx); return ret; } /// /// To be documented. /// public static string GetStyleColorNameS(ImGuiCol idx) { string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetStateStorageNative(ImGuiStorage* storage) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[345])(storage); #else ((delegate* unmanaged[Cdecl])funcTable[345])((nint)storage); #endif } /// /// To be documented. /// public static void SetStateStorage(ImGuiStoragePtr storage) { SetStateStorageNative(storage); } /// /// To be documented. /// public static void SetStateStorage(ref ImGuiStorage storage) { fixed (ImGuiStorage* pstorage = &storage) { SetStateStorageNative((ImGuiStorage*)pstorage); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiStorage* GetStateStorageNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[346])(); #else return (ImGuiStorage*)((delegate* unmanaged[Cdecl])funcTable[346])(); #endif } /// /// To be documented. /// public static ImGuiStoragePtr GetStateStorage() { ImGuiStoragePtr ret = GetStateStorageNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginChildFrameNative(uint id, Vector2 size, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[347])(id, size, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[347])(id, size, flags); #endif } /// /// To be documented. /// public static bool BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) { byte ret = BeginChildFrameNative(id, size, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChildFrame(uint id, Vector2 size) { byte ret = BeginChildFrameNative(id, size, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndChildFrameNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[348])(); #else ((delegate* unmanaged[Cdecl])funcTable[348])(); #endif } /// /// To be documented. /// public static void EndChildFrame() { EndChildFrameNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[349])(pOut, text, textEnd, hideTextAfterDoubleHash, wrapWidth); #else ((delegate* unmanaged[Cdecl])funcTable[349])((nint)pOut, (nint)text, (nint)textEnd, hideTextAfterDoubleHash, wrapWidth); #endif } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text) { Vector2 ret; CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), (float)(-1.0f)); return ret; } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, byte* textEnd) { Vector2 ret; CalcTextSizeNative(&ret, text, textEnd, (byte)(0), (float)(-1.0f)); return ret; } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text) { CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash) { Vector2 ret; CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash) { Vector2 ret; CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd) { CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, float wrapWidth) { Vector2 ret; CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), wrapWidth); return ret; } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, byte* textEnd, float wrapWidth) { Vector2 ret; CalcTextSizeNative(&ret, text, textEnd, (byte)(0), wrapWidth); return ret; } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash) { CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, float wrapWidth) { CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash, float wrapWidth) { Vector2 ret; CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } /// /// To be documented. /// public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { Vector2 ret; CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) { CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, float wrapWidth) { CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) { CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, float wrapWidth) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), wrapWidth); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, float wrapWidth) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), wrapWidth); } } /// /// To be documented. /// public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (Vector2* ppOut = &pOut) { CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ref byte text) { fixed (byte* ptext = &text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, float wrapWidth) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, byte* textEnd, float wrapWidth) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash) { fixed (byte* ptext = &text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ref byte text, float wrapWidth) { fixed (byte* ptext = &text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (byte* ptext = &text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text) { fixed (byte* ptext = text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, bool hideTextAfterDoubleHash) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, float wrapWidth) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, float wrapWidth) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); return ret; } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, bool hideTextAfterDoubleHash) { fixed (byte* ptext = text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, ReadOnlySpan text, float wrapWidth) { fixed (byte* ptext = text) { CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(ReadOnlySpan text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { fixed (byte* ptext = text) { Vector2 ret; CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); return ret; } } /// /// To be documented. /// public static Vector2 CalcTextSize(string text) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } Vector2 ret; CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static Vector2 CalcTextSize(string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } Vector2 ret; CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void CalcTextSize(Vector2* pOut, string text) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } Vector2 ret; CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } }