// ------------------------------------------------------------------------------ // // 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 ImGuiP { /// /// To be documented. /// public static float TableGetHeaderRowHeight() { float ret = TableGetHeaderRowHeightNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TablePushBackgroundChannelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1120])(); #else ((delegate* unmanaged[Cdecl])funcTable[1120])(); #endif } /// /// To be documented. /// public static void TablePushBackgroundChannel() { TablePushBackgroundChannelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TablePopBackgroundChannelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1121])(); #else ((delegate* unmanaged[Cdecl])funcTable[1121])(); #endif } /// /// To be documented. /// public static void TablePopBackgroundChannel() { TablePopBackgroundChannelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTable* GetCurrentTableNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1122])(); #else return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1122])(); #endif } /// /// To be documented. /// public static ImGuiTablePtr GetCurrentTable() { ImGuiTablePtr ret = GetCurrentTableNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTable* TableFindByIDNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1123])(id); #else return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1123])(id); #endif } /// /// To be documented. /// public static ImGuiTablePtr TableFindByID(uint id) { ImGuiTablePtr ret = TableFindByIDNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1124])((nint)name, id, columnsCount, flags, outerSize, innerWidth); #endif } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags) { byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1125])(table, columnsCount); #else ((delegate* unmanaged[Cdecl])funcTable[1125])((nint)table, columnsCount); #endif } /// /// To be documented. /// public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) { TableBeginInitMemoryNative(table, columnsCount); } /// /// To be documented. /// public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) { fixed (ImGuiTable* ptable = &table) { TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginApplyRequestsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1126])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1126])((nint)table); #endif } /// /// To be documented. /// public static void TableBeginApplyRequests(ImGuiTablePtr table) { TableBeginApplyRequestsNative(table); } /// /// To be documented. /// public static void TableBeginApplyRequests(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableBeginApplyRequestsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetupDrawChannelsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1127])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1127])((nint)table); #endif } /// /// To be documented. /// public static void TableSetupDrawChannels(ImGuiTablePtr table) { TableSetupDrawChannelsNative(table); } /// /// To be documented. /// public static void TableSetupDrawChannels(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSetupDrawChannelsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateLayoutNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1128])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1128])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateLayout(ImGuiTablePtr table) { TableUpdateLayoutNative(table); } /// /// To be documented. /// public static void TableUpdateLayout(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateLayoutNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateBordersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1129])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1129])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateBorders(ImGuiTablePtr table) { TableUpdateBordersNative(table); } /// /// To be documented. /// public static void TableUpdateBorders(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateBordersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1130])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1130])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) { TableUpdateColumnsWeightFromWidthNative(table); } /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableDrawBordersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1131])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1131])((nint)table); #endif } /// /// To be documented. /// public static void TableDrawBorders(ImGuiTablePtr table) { TableDrawBordersNative(table); } /// /// To be documented. /// public static void TableDrawBorders(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableDrawBordersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableDrawContextMenuNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1132])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1132])((nint)table); #endif } /// /// To be documented. /// public static void TableDrawContextMenu(ImGuiTablePtr table) { TableDrawContextMenuNative(table); } /// /// To be documented. /// public static void TableDrawContextMenu(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableDrawContextMenuNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableMergeDrawChannelsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1133])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1133])((nint)table); #endif } /// /// To be documented. /// public static void TableMergeDrawChannels(ImGuiTablePtr table) { TableMergeDrawChannelsNative(table); } /// /// To be documented. /// public static void TableMergeDrawChannels(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableMergeDrawChannelsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1134])(table, instanceNo); #else return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[1134])((nint)table, instanceNo); #endif } /// /// To be documented. /// public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) { ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative(table, instanceNo); return ret; } /// /// To be documented. /// public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) { fixed (ImGuiTable* ptable = &table) { ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSortSpecsSanitizeNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1135])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1135])((nint)table); #endif } /// /// To be documented. /// public static void TableSortSpecsSanitize(ImGuiTablePtr table) { TableSortSpecsSanitizeNative(table); } /// /// To be documented. /// public static void TableSortSpecsSanitize(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSortSpecsSanitizeNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSortSpecsBuildNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1136])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1136])((nint)table); #endif } /// /// To be documented. /// public static void TableSortSpecsBuild(ImGuiTablePtr table) { TableSortSpecsBuildNative(table); } /// /// To be documented. /// public static void TableSortSpecsBuild(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSortSpecsBuildNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiSortDirection TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1137])(column); #else return (ImGuiSortDirection)((delegate* unmanaged[Cdecl])funcTable[1137])((nint)column); #endif } /// /// To be documented. /// public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) { ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); return ret; } /// /// To be documented. /// public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1138])(table, column); #else ((delegate* unmanaged[Cdecl])funcTable[1138])((nint)table, (nint)column); #endif } /// /// To be documented. /// public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) { TableFixColumnSortDirectionNative(table, column); } /// /// To be documented. /// public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) { fixed (ImGuiTable* ptable = &table) { TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); } } /// /// To be documented. /// public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); } } /// /// To be documented. /// public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) { fixed (ImGuiTable* ptable = &table) { fixed (ImGuiTableColumn* pcolumn = &column) { TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1139])(table, column); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1139])((nint)table, (nint)column); #endif } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) { float ret = TableGetColumnWidthAutoNative(table, column); return ret; } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) { fixed (ImGuiTable* ptable = &table) { float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); return ret; } } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); return ret; } } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) { fixed (ImGuiTable* ptable = &table) { fixed (ImGuiTableColumn* pcolumn = &column) { float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); return ret; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginRowNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1140])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1140])((nint)table); #endif } /// /// To be documented. /// public static void TableBeginRow(ImGuiTablePtr table) { TableBeginRowNative(table); } /// /// To be documented. /// public static void TableBeginRow(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableBeginRowNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableEndRowNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1141])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1141])((nint)table); #endif } /// /// To be documented. /// public static void TableEndRow(ImGuiTablePtr table) { TableEndRowNative(table); } /// /// To be documented. /// public static void TableEndRow(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableEndRowNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginCellNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1142])(table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1142])((nint)table, columnN); #endif } /// /// To be documented. /// public static void TableBeginCell(ImGuiTablePtr table, int columnN) { TableBeginCellNative(table, columnN); } /// /// To be documented. /// public static void TableBeginCell(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableBeginCellNative((ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableEndCellNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1143])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1143])((nint)table); #endif } /// /// To be documented. /// public static void TableEndCell(ImGuiTablePtr table) { TableEndCellNative(table); } /// /// To be documented. /// public static void TableEndCell(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableEndCellNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1144])(pOut, table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1144])((nint)pOut, (nint)table, columnN); #endif } /// /// To be documented. /// public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) { ImRect ret; TableGetCellBgRectNative(&ret, table, columnN); return ret; } /// /// To be documented. /// public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) { TableGetCellBgRectNative(pOut, table, columnN); } /// /// To be documented. /// public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) { fixed (ImRect* ppOut = &pOut) { TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); } } /// /// To be documented. /// public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { ImRect ret; TableGetCellBgRectNative(&ret, (ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) { fixed (ImRect* ppOut = &pOut) { fixed (ImGuiTable* ptable = &table) { TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1145])(table, columnN); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[1145])((nint)table, columnN); #endif } /// /// To be documented. /// public static byte* TableGetColumnName(ImGuiTablePtr table, int columnN) { byte* ret = TableGetColumnNameNative(table, columnN); return ret; } /// /// To be documented. /// public static string TableGetColumnNameS(ImGuiTablePtr table, int columnN) { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); return ret; } /// /// To be documented. /// public static byte* TableGetColumnName(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// public static string TableGetColumnNameS(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1146])(table, columnN, instanceNo); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1146])((nint)table, columnN, instanceNo); #endif } /// /// To be documented. /// public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) { uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); return ret; } /// /// To be documented. /// public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) { uint ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); return ret; } /// /// To be documented. /// public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) { fixed (ImGuiTable* ptable = &table) { uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); return ret; } } /// /// To be documented. /// public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1147])(table, columnN); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1147])((nint)table, columnN); #endif } /// /// To be documented. /// public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) { float ret = TableGetMaxColumnWidthNative(table, columnN); return ret; } /// /// To be documented. /// public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1148])(table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1148])((nint)table, columnN); #endif } /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) { TableSetColumnWidthAutoSingleNative(table, columnN); } /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnWidthAutoAllNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1149])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1149])((nint)table); #endif } /// /// To be documented. /// public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) { TableSetColumnWidthAutoAllNative(table); } /// /// To be documented. /// public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableRemoveNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1150])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1150])((nint)table); #endif } /// /// To be documented. /// public static void TableRemove(ImGuiTablePtr table) { TableRemoveNative(table); } /// /// To be documented. /// public static void TableRemove(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableRemoveNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactTransientBuffersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1151])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1151])((nint)table); #endif } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) { TableGcCompactTransientBuffersNative(table); } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactTransientBuffersNative(ImGuiTableTempData* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1152])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1152])((nint)table); #endif } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) { TableGcCompactTransientBuffersNative(table); } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) { fixed (ImGuiTableTempData* ptable = &table) { TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactSettingsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1153])(); #else ((delegate* unmanaged[Cdecl])funcTable[1153])(); #endif } /// /// To be documented. /// public static void TableGcCompactSettings() { TableGcCompactSettingsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableLoadSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1154])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1154])((nint)table); #endif } /// /// To be documented. /// public static void TableLoadSettings(ImGuiTablePtr table) { TableLoadSettingsNative(table); } /// /// To be documented. /// public static void TableLoadSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableLoadSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSaveSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1155])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1155])((nint)table); #endif } /// /// To be documented. /// public static void TableSaveSettings(ImGuiTablePtr table) { TableSaveSettingsNative(table); } /// /// To be documented. /// public static void TableSaveSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSaveSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableResetSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1156])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1156])((nint)table); #endif } /// /// To be documented. /// public static void TableResetSettings(ImGuiTablePtr table) { TableResetSettingsNative(table); } /// /// To be documented. /// public static void TableResetSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableResetSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1157])(table); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1157])((nint)table); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) { ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative(table); return ret; } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSettingsAddSettingsHandlerNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1158])(); #else ((delegate* unmanaged[Cdecl])funcTable[1158])(); #endif } /// /// To be documented. /// public static void TableSettingsAddSettingsHandler() { TableSettingsAddSettingsHandlerNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) { ImGuiTableSettingsPtr ret = TableSettingsCreateNative(id, columnsCount); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableSettingsFindByIDNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1160])(id); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1160])(id); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) { ImGuiTableSettingsPtr ret = TableSettingsFindByIDNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1161])(tabBar, bb, flags, dockNode); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1161])((nint)tabBar, bb, flags, (nint)dockNode); #endif } /// /// To be documented. /// public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) { byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); return ret != 0; } /// /// To be documented. /// public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) { fixed (ImGuiDockNode* pdockNode = &dockNode) { byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiDockNode* pdockNode = &dockNode) { byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1162])(tabBar, tabId); #else return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1162])((nint)tabBar, tabId); #endif } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) { ImGuiTabItemPtr ret = TabBarFindTabByIDNative(tabBar, tabId); return ret; } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) { fixed (ImGuiTabBar* ptabBar = &tabBar) { ImGuiTabItemPtr ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1163])(tabBar); #else return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1163])((nint)tabBar); #endif } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) { ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); return ret; } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) { fixed (ImGuiTabBar* ptabBar = &tabBar) { ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarAddTabNative(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1164])(tabBar, tabFlags, window); #else ((delegate* unmanaged[Cdecl])funcTable[1164])((nint)tabBar, tabFlags, (nint)window); #endif } /// /// To be documented. /// public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) { TabBarAddTabNative(tabBar, tabFlags, window); } /// /// To be documented. /// public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); } } /// /// To be documented. /// public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiWindow* pwindow = &window) { TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1165])(tabBar, tabId); #else ((delegate* unmanaged[Cdecl])funcTable[1165])((nint)tabBar, tabId); #endif } /// /// To be documented. /// public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) { TabBarRemoveTabNative(tabBar, tabId); } /// /// To be documented. /// public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1166])(tabBar, tab); #else ((delegate* unmanaged[Cdecl])funcTable[1166])((nint)tabBar, (nint)tab); #endif } /// /// To be documented. /// public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) { TabBarCloseTabNative(tabBar, tab); } /// /// To be documented. /// public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); } } /// /// To be documented. /// public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) { fixed (ImGuiTabItem* ptab = &tab) { TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); } } /// /// To be documented. /// public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1167])(tabBar, tab, offset); #else ((delegate* unmanaged[Cdecl])funcTable[1167])((nint)tabBar, (nint)tab, offset); #endif } /// /// To be documented. /// public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) { TabBarQueueReorderNative(tabBar, tab, offset); } /// /// To be documented. /// public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); } } /// /// To be documented. /// public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); } } /// /// To be documented. /// public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1168])(tabBar, tab, mousePos); #else ((delegate* unmanaged[Cdecl])funcTable[1168])((nint)tabBar, (nint)tab, mousePos); #endif } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) { TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); } } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); } } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TabBarProcessReorderNative(ImGuiTabBar* tabBar) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1169])(tabBar); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1169])((nint)tabBar); #endif } /// /// To be documented. /// public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) { byte ret = TabBarProcessReorderNative(tabBar); return ret != 0; } /// /// To be documented. /// public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1170])((nint)tabBar, (nint)label, (nint)pOpen, flags, (nint)dockedWindow); #endif } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); return ret != 0; } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = &label) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = label) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { 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 = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { 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 = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { 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 = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { 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 = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = &label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { 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 (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { 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 (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { 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) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { 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) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1171])(pOut, label, hasCloseButton); #else ((delegate* unmanaged[Cdecl])funcTable[1171])((nint)pOut, (nint)label, hasCloseButton); #endif } /// /// To be documented. /// public static Vector2 TabItemCalcSize(byte* label, bool hasCloseButton) { Vector2 ret; TabItemCalcSizeNative(&ret, label, hasCloseButton ? (byte)1 : (byte)0); return ret; } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, byte* label, bool hasCloseButton) { TabItemCalcSizeNative(pOut, label, hasCloseButton ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, byte* label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(ref byte label, bool hasCloseButton) { fixed (byte* plabel = &label) { Vector2 ret; TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); return ret; } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(ReadOnlySpan label, bool hasCloseButton) { fixed (byte* plabel = label) { Vector2 ret; TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); return ret; } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(string label, bool hasCloseButton) { 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; } Vector2 ret; TabItemCalcSizeNative(&ret, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, ref byte label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { fixed (byte* plabel = &label) { TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, ReadOnlySpan label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { fixed (byte* plabel = label) { TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, string label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { 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; } TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, ref byte label, bool hasCloseButton) { fixed (byte* plabel = &label) { TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, ReadOnlySpan label, bool hasCloseButton) { fixed (byte* plabel = label) { TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, string label, bool hasCloseButton) { 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; } TabItemCalcSizeNative(pOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1172])(drawList, bb, flags, col); #else ((delegate* unmanaged[Cdecl])funcTable[1172])((nint)drawList, bb, flags, col); #endif } /// /// To be documented. /// public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { TabItemBackgroundNative(drawList, bb, flags, col); } /// /// To be documented. /// public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { fixed (ImDrawList* pdrawList = &drawList) { TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); #else ((delegate* unmanaged[Cdecl])funcTable[1173])((nint)drawList, bb, flags, framePadding, (nint)label, tabId, closeButtonId, isContentsVisible, (nint)outJustClosed, (nint)outTextClipped); #endif } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (byte* plabel = &label) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (byte* plabel = label) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { 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; } TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = &label) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = label) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { 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; } TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (byte* plabel = &label) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (byte* plabel = label) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { 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* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = &label) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = label) { fixed (bool* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { 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* poutJustClosed = &outJustClosed) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (byte* plabel = &label) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (byte* plabel = label) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { 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* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = &label) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = label) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { 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* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (byte* plabel = &label) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (byte* plabel = label) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { 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* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = &label) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* plabel = label) { fixed (bool* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); } } } } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { 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* poutJustClosed = &outJustClosed) { fixed (bool* poutTextClipped = &outTextClipped) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1174])(pos, text, textEnd, hideTextAfterHash); #else ((delegate* unmanaged[Cdecl])funcTable[1174])(pos, (nint)text, (nint)textEnd, hideTextAfterHash); #endif } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, byte* textEnd, bool hideTextAfterHash) { RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, byte* textEnd) { RenderTextNative(pos, text, textEnd, (byte)(1)); } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text) { RenderTextNative(pos, text, (byte*)(default), (byte)(1)); } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, bool hideTextAfterHash) { RenderTextNative(pos, text, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, byte* textEnd, bool hideTextAfterHash) { fixed (byte* ptext = &text) { RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text) { fixed (byte* ptext = &text) { RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, bool hideTextAfterHash) { fixed (byte* ptext = &text) { RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, byte* textEnd, bool hideTextAfterHash) { fixed (byte* ptext = text) { RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text) { fixed (byte* ptext = text) { RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, bool hideTextAfterHash) { fixed (byte* ptext = text) { RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, byte* textEnd, bool hideTextAfterHash) { 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; } RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, 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; } RenderTextNative(pos, pStr0, textEnd, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, 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; } RenderTextNative(pos, pStr0, (byte*)(default), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, bool hideTextAfterHash) { 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; } RenderTextNative(pos, pStr0, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, ref byte textEnd, bool hideTextAfterHash) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan textEnd, bool hideTextAfterHash) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, string textEnd, bool hideTextAfterHash) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, text, pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd, bool hideTextAfterHash) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd, bool hideTextAfterHash) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, string textEnd, bool hideTextAfterHash) { 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; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, string 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; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } RenderTextNative(pos, pStr0, pStr1, (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan textEnd, bool hideTextAfterHash) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, string textEnd, bool hideTextAfterHash) { fixed (byte* ptext = &text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ref byte text, string textEnd) { fixed (byte* ptext = &text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, ref byte textEnd, bool hideTextAfterHash) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, ref byte textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, string textEnd, bool hideTextAfterHash) { fixed (byte* ptext = text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, ReadOnlySpan text, string textEnd) { fixed (byte* ptext = text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, ref byte textEnd, bool hideTextAfterHash) { 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; } fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, ref 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; } fixed (byte* ptextEnd = &textEnd) { RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, ReadOnlySpan textEnd, bool hideTextAfterHash) { 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; } fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderText(Vector2 pos, string text, ReadOnlySpan 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; } fixed (byte* ptextEnd = textEnd) { RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1175])(pos, text, textEnd, wrapWidth); #else ((delegate* unmanaged[Cdecl])funcTable[1175])(pos, (nint)text, (nint)textEnd, wrapWidth); #endif } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) { RenderTextWrappedNative(pos, text, textEnd, wrapWidth); } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ref byte text, byte* textEnd, float wrapWidth) { fixed (byte* ptext = &text) { RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, byte* textEnd, float wrapWidth) { fixed (byte* ptext = text) { RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, string text, byte* textEnd, float wrapWidth) { 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; } RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, byte* text, ref byte textEnd, float wrapWidth) { fixed (byte* ptextEnd = &textEnd) { RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, byte* text, ReadOnlySpan textEnd, float wrapWidth) { fixed (byte* ptextEnd = textEnd) { RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, byte* text, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextWrappedNative(pos, text, pStr0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ref byte text, ref byte textEnd, float wrapWidth) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, ReadOnlySpan textEnd, float wrapWidth) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, string text, string textEnd, float wrapWidth) { 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; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ref byte text, ReadOnlySpan textEnd, float wrapWidth) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ref byte text, string textEnd, float wrapWidth) { fixed (byte* ptext = &text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, ref byte textEnd, float wrapWidth) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan text, string textEnd, float wrapWidth) { fixed (byte* ptext = text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, string text, ref byte textEnd, float wrapWidth) { 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; } fixed (byte* ptextEnd = &textEnd) { RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void RenderTextWrapped(Vector2 pos, string text, ReadOnlySpan textEnd, float wrapWidth) { 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; } fixed (byte* ptextEnd = textEnd) { RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } }