// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGui { /// /// To be documented. /// public static void PushID(string strIdBegin, string strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (strIdEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } PushIDNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void PushID(ref byte strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); } } } /// /// To be documented. /// public static void PushID(ref byte strIdBegin, string strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } PushIDNative((byte*)pstrIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void PushID(ReadOnlySpan strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); } } } /// /// To be documented. /// public static void PushID(ReadOnlySpan strIdBegin, string strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } PushIDNative((byte*)pstrIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void PushID(string strIdBegin, ref byte strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = &strIdEnd) { PushIDNative(pStr0, (byte*)pstrIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void PushID(string strIdBegin, ReadOnlySpan strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = strIdEnd) { PushIDNative(pStr0, (byte*)pstrIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushIDNative(void* ptrId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[127])(ptrId); #else ((delegate* unmanaged[Cdecl])funcTable[127])((nint)ptrId); #endif } /// /// To be documented. /// public static void PushID(void* ptrId) { PushIDNative(ptrId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushIDNative(int intId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[128])(intId); #else ((delegate* unmanaged[Cdecl])funcTable[128])(intId); #endif } /// /// To be documented. /// public static void PushID(int intId) { PushIDNative(intId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopIDNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[129])(); #else ((delegate* unmanaged[Cdecl])funcTable[129])(); #endif } /// /// To be documented. /// public static void PopID() { PopIDNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetIDNative(byte* strId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[130])(strId); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[130])((nint)strId); #endif } /// /// To be documented. /// public static uint GetID(byte* strId) { uint ret = GetIDNative(strId); return ret; } /// /// To be documented. /// public static uint GetID(ref byte strId) { fixed (byte* pstrId = &strId) { uint ret = GetIDNative((byte*)pstrId); return ret; } } /// /// To be documented. /// public static uint GetID(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { uint ret = GetIDNative((byte*)pstrId); return ret; } } /// /// To be documented. /// public static uint GetID(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetIDNative(byte* strIdBegin, byte* strIdEnd) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[131])(strIdBegin, strIdEnd); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[131])((nint)strIdBegin, (nint)strIdEnd); #endif } /// /// To be documented. /// public static uint GetID(byte* strIdBegin, byte* strIdEnd) { uint ret = GetIDNative(strIdBegin, strIdEnd); return ret; } /// /// To be documented. /// public static uint GetID(ref byte strIdBegin, byte* strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); return ret; } } /// /// To be documented. /// public static uint GetID(ReadOnlySpan strIdBegin, byte* strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); return ret; } } /// /// To be documented. /// public static uint GetID(string strIdBegin, byte* strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDNative(pStr0, strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetID(byte* strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); return ret; } } /// /// To be documented. /// public static uint GetID(byte* strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); return ret; } } /// /// To be documented. /// public static uint GetID(byte* strIdBegin, string strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDNative(strIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetID(ref byte strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); return ret; } } } /// /// To be documented. /// public static uint GetID(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); return ret; } } } /// /// To be documented. /// public static uint GetID(string strIdBegin, string strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (strIdEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } uint ret = GetIDNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetID(ref byte strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); return ret; } } } /// /// To be documented. /// public static uint GetID(ref byte strIdBegin, string strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDNative((byte*)pstrIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetID(ReadOnlySpan strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); return ret; } } } /// /// To be documented. /// public static uint GetID(ReadOnlySpan strIdBegin, string strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDNative((byte*)pstrIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetID(string strIdBegin, ref byte strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDNative(pStr0, (byte*)pstrIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetID(string strIdBegin, ReadOnlySpan strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDNative(pStr0, (byte*)pstrIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetIDNative(void* ptrId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[132])(ptrId); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[132])((nint)ptrId); #endif } /// /// To be documented. /// public static uint GetID(void* ptrId) { uint ret = GetIDNative(ptrId); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextUnformattedNative(byte* text, byte* textEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[133])(text, textEnd); #else ((delegate* unmanaged[Cdecl])funcTable[133])((nint)text, (nint)textEnd); #endif } /// /// To be documented. /// public static void TextUnformatted(byte* text, byte* textEnd) { TextUnformattedNative(text, textEnd); } /// /// To be documented. /// public static void TextUnformatted(byte* text) { TextUnformattedNative(text, (byte*)(default)); } /// /// To be documented. /// public static void TextUnformatted(ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { TextUnformattedNative((byte*)ptext, textEnd); } } /// /// To be documented. /// public static void TextUnformatted(ref byte text) { fixed (byte* ptext = &text) { TextUnformattedNative((byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void TextUnformatted(ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { TextUnformattedNative((byte*)ptext, textEnd); } } /// /// To be documented. /// public static void TextUnformatted(ReadOnlySpan text) { fixed (byte* ptext = text) { TextUnformattedNative((byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative(pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative(pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TextUnformatted(byte* text, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { TextUnformattedNative(text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void TextUnformatted(byte* text, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { TextUnformattedNative(text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative(text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TextUnformatted(ref byte text, ref byte textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void TextUnformatted(ReadOnlySpan text, ReadOnlySpan textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void TextUnformatted(ref byte text, ReadOnlySpan textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative((byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TextUnformatted(ReadOnlySpan text, ref byte textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void TextUnformatted(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; } TextUnformattedNative((byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TextUnformatted(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) { TextUnformattedNative(pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TextUnformatted(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) { TextUnformattedNative(pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextNative(byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[134])(fmt); #else ((delegate* unmanaged[Cdecl])funcTable[134])((nint)fmt); #endif } /// /// To be documented. /// public static void Text(byte* fmt) { TextNative(fmt); } /// /// To be documented. /// public static void Text(ref byte fmt) { fixed (byte* pfmt = &fmt) { TextNative((byte*)pfmt); } } /// /// To be documented. /// public static void Text(ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { TextNative((byte*)pfmt); } } /// /// To be documented. /// public static void Text(string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[135])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[135])((nint)fmt, args); #endif } /// /// To be documented. /// public static void TextV(byte* fmt, nuint args) { TextVNative(fmt, args); } /// /// To be documented. /// public static void TextV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { TextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { TextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextColoredNative(Vector4 col, byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[136])(col, fmt); #else ((delegate* unmanaged[Cdecl])funcTable[136])(col, (nint)fmt); #endif } /// /// To be documented. /// public static void TextColored(Vector4 col, byte* fmt) { TextColoredNative(col, fmt); } /// /// To be documented. /// public static void TextColored(Vector4 col, ref byte fmt) { fixed (byte* pfmt = &fmt) { TextColoredNative(col, (byte*)pfmt); } } /// /// To be documented. /// public static void TextColored(Vector4 col, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { TextColoredNative(col, (byte*)pfmt); } } /// /// To be documented. /// public static void TextColored(Vector4 col, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextColoredNative(col, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextColoredVNative(Vector4 col, byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[137])(col, fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[137])(col, (nint)fmt, args); #endif } /// /// To be documented. /// public static void TextColoredV(Vector4 col, byte* fmt, nuint args) { TextColoredVNative(col, fmt, args); } /// /// To be documented. /// public static void TextColoredV(Vector4 col, ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { TextColoredVNative(col, (byte*)pfmt, args); } } /// /// To be documented. /// public static void TextColoredV(Vector4 col, ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { TextColoredVNative(col, (byte*)pfmt, args); } } /// /// To be documented. /// public static void TextColoredV(Vector4 col, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextColoredVNative(col, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextDisabledNative(byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[138])(fmt); #else ((delegate* unmanaged[Cdecl])funcTable[138])((nint)fmt); #endif } /// /// To be documented. /// public static void TextDisabled(byte* fmt) { TextDisabledNative(fmt); } /// /// To be documented. /// public static void TextDisabled(ref byte fmt) { fixed (byte* pfmt = &fmt) { TextDisabledNative((byte*)pfmt); } } /// /// To be documented. /// public static void TextDisabled(ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { TextDisabledNative((byte*)pfmt); } } /// /// To be documented. /// public static void TextDisabled(string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextDisabledNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextDisabledVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[139])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[139])((nint)fmt, args); #endif } /// /// To be documented. /// public static void TextDisabledV(byte* fmt, nuint args) { TextDisabledVNative(fmt, args); } /// /// To be documented. /// public static void TextDisabledV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { TextDisabledVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextDisabledV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { TextDisabledVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextDisabledV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextDisabledVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextWrappedNative(byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[140])(fmt); #else ((delegate* unmanaged[Cdecl])funcTable[140])((nint)fmt); #endif } /// /// To be documented. /// public static void TextWrapped(byte* fmt) { TextWrappedNative(fmt); } /// /// To be documented. /// public static void TextWrapped(ref byte fmt) { fixed (byte* pfmt = &fmt) { TextWrappedNative((byte*)pfmt); } } /// /// To be documented. /// public static void TextWrapped(ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { TextWrappedNative((byte*)pfmt); } } /// /// To be documented. /// public static void TextWrapped(string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextWrappedNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TextWrappedVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[141])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[141])((nint)fmt, args); #endif } /// /// To be documented. /// public static void TextWrappedV(byte* fmt, nuint args) { TextWrappedVNative(fmt, args); } /// /// To be documented. /// public static void TextWrappedV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { TextWrappedVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextWrappedV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { TextWrappedVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void TextWrappedV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } TextWrappedVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LabelTextNative(byte* label, byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[142])(label, fmt); #else ((delegate* unmanaged[Cdecl])funcTable[142])((nint)label, (nint)fmt); #endif } /// /// To be documented. /// public static void LabelText(byte* label, byte* fmt) { LabelTextNative(label, fmt); } /// /// To be documented. /// public static void LabelText(ref byte label, byte* fmt) { fixed (byte* plabel = &label) { LabelTextNative((byte*)plabel, fmt); } } /// /// To be documented. /// public static void LabelText(ReadOnlySpan label, byte* fmt) { fixed (byte* plabel = label) { LabelTextNative((byte*)plabel, fmt); } } /// /// To be documented. /// public static void LabelText(string label, byte* fmt) { 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; } LabelTextNative(pStr0, fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelText(byte* label, ref byte fmt) { fixed (byte* pfmt = &fmt) { LabelTextNative(label, (byte*)pfmt); } } /// /// To be documented. /// public static void LabelText(byte* label, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { LabelTextNative(label, (byte*)pfmt); } } /// /// To be documented. /// public static void LabelText(byte* label, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextNative(label, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelText(ref byte label, ref byte fmt) { fixed (byte* plabel = &label) { fixed (byte* pfmt = &fmt) { LabelTextNative((byte*)plabel, (byte*)pfmt); } } } /// /// To be documented. /// public static void LabelText(ReadOnlySpan label, ReadOnlySpan fmt) { fixed (byte* plabel = label) { fixed (byte* pfmt = fmt) { LabelTextNative((byte*)plabel, (byte*)pfmt); } } } /// /// To be documented. /// public static void LabelText(string label, string fmt) { 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* pStr1 = null; int pStrSize1 = 0; if (fmt != null) { pStrSize1 = Utils.GetByteCountUTF8(fmt); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } LabelTextNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelText(ref byte label, ReadOnlySpan fmt) { fixed (byte* plabel = &label) { fixed (byte* pfmt = fmt) { LabelTextNative((byte*)plabel, (byte*)pfmt); } } } /// /// To be documented. /// public static void LabelText(ref byte label, string fmt) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextNative((byte*)plabel, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelText(ReadOnlySpan label, ref byte fmt) { fixed (byte* plabel = label) { fixed (byte* pfmt = &fmt) { LabelTextNative((byte*)plabel, (byte*)pfmt); } } } /// /// To be documented. /// public static void LabelText(ReadOnlySpan label, string fmt) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextNative((byte*)plabel, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelText(string label, ref byte fmt) { 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 (byte* pfmt = &fmt) { LabelTextNative(pStr0, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelText(string label, ReadOnlySpan fmt) { 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 (byte* pfmt = fmt) { LabelTextNative(pStr0, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LabelTextVNative(byte* label, byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[143])(label, fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[143])((nint)label, (nint)fmt, args); #endif } /// /// To be documented. /// public static void LabelTextV(byte* label, byte* fmt, nuint args) { LabelTextVNative(label, fmt, args); } /// /// To be documented. /// public static void LabelTextV(ref byte label, byte* fmt, nuint args) { fixed (byte* plabel = &label) { LabelTextVNative((byte*)plabel, fmt, args); } } /// /// To be documented. /// public static void LabelTextV(ReadOnlySpan label, byte* fmt, nuint args) { fixed (byte* plabel = label) { LabelTextVNative((byte*)plabel, fmt, args); } } /// /// To be documented. /// public static void LabelTextV(string label, byte* fmt, nuint args) { 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; } LabelTextVNative(pStr0, fmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelTextV(byte* label, ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { LabelTextVNative(label, (byte*)pfmt, args); } } /// /// To be documented. /// public static void LabelTextV(byte* label, ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { LabelTextVNative(label, (byte*)pfmt, args); } } /// /// To be documented. /// public static void LabelTextV(byte* label, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextVNative(label, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelTextV(ref byte label, ref byte fmt, nuint args) { fixed (byte* plabel = &label) { fixed (byte* pfmt = &fmt) { LabelTextVNative((byte*)plabel, (byte*)pfmt, args); } } } /// /// To be documented. /// public static void LabelTextV(ReadOnlySpan label, ReadOnlySpan fmt, nuint args) { fixed (byte* plabel = label) { fixed (byte* pfmt = fmt) { LabelTextVNative((byte*)plabel, (byte*)pfmt, args); } } } /// /// To be documented. /// public static void LabelTextV(string label, string fmt, nuint args) { 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* pStr1 = null; int pStrSize1 = 0; if (fmt != null) { pStrSize1 = Utils.GetByteCountUTF8(fmt); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } LabelTextVNative(pStr0, pStr1, args); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelTextV(ref byte label, ReadOnlySpan fmt, nuint args) { fixed (byte* plabel = &label) { fixed (byte* pfmt = fmt) { LabelTextVNative((byte*)plabel, (byte*)pfmt, args); } } } /// /// To be documented. /// public static void LabelTextV(ref byte label, string fmt, nuint args) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextVNative((byte*)plabel, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelTextV(ReadOnlySpan label, ref byte fmt, nuint args) { fixed (byte* plabel = label) { fixed (byte* pfmt = &fmt) { LabelTextVNative((byte*)plabel, (byte*)pfmt, args); } } } /// /// To be documented. /// public static void LabelTextV(ReadOnlySpan label, string fmt, nuint args) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelTextVNative((byte*)plabel, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelTextV(string label, ref byte fmt, nuint args) { 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 (byte* pfmt = &fmt) { LabelTextVNative(pStr0, (byte*)pfmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LabelTextV(string label, ReadOnlySpan fmt, nuint args) { 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 (byte* pfmt = fmt) { LabelTextVNative(pStr0, (byte*)pfmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BulletTextNative(byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[144])(fmt); #else ((delegate* unmanaged[Cdecl])funcTable[144])((nint)fmt); #endif } /// /// To be documented. /// public static void BulletText(byte* fmt) { BulletTextNative(fmt); } /// /// To be documented. /// public static void BulletText(ref byte fmt) { fixed (byte* pfmt = &fmt) { BulletTextNative((byte*)pfmt); } } /// /// To be documented. /// public static void BulletText(ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { BulletTextNative((byte*)pfmt); } } /// /// To be documented. /// public static void BulletText(string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } BulletTextNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BulletTextVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[145])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[145])((nint)fmt, args); #endif } /// /// To be documented. /// public static void BulletTextV(byte* fmt, nuint args) { BulletTextVNative(fmt, args); } /// /// To be documented. /// public static void BulletTextV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { BulletTextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void BulletTextV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { BulletTextVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void BulletTextV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } BulletTextVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ButtonNative(byte* label, Vector2 size) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[146])(label, size); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[146])((nint)label, size); #endif } /// /// To be documented. /// public static bool Button(byte* label, Vector2 size) { byte ret = ButtonNative(label, size); return ret != 0; } /// /// To be documented. /// public static bool Button(byte* label) { byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); return ret != 0; } /// /// To be documented. /// public static bool Button(ref byte label, Vector2 size) { fixed (byte* plabel = &label) { byte ret = ButtonNative((byte*)plabel, size); return ret != 0; } } /// /// To be documented. /// public static bool Button(ref byte label) { fixed (byte* plabel = &label) { byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool Button(ReadOnlySpan label, Vector2 size) { fixed (byte* plabel = label) { byte ret = ButtonNative((byte*)plabel, size); return ret != 0; } } /// /// To be documented. /// public static bool Button(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool Button(string label, Vector2 size) { 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 = ButtonNative(pStr0, size); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Button(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ButtonNative(pStr0, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte SmallButtonNative(byte* label) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[147])(label); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[147])((nint)label); #endif } /// /// To be documented. /// public static bool SmallButton(byte* label) { byte ret = SmallButtonNative(label); return ret != 0; } /// /// To be documented. /// public static bool SmallButton(ref byte label) { fixed (byte* plabel = &label) { byte ret = SmallButtonNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool SmallButton(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = SmallButtonNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool SmallButton(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = SmallButtonNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte InvisibleButtonNative(byte* strId, Vector2 size, ImGuiButtonFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[148])(strId, size, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[148])((nint)strId, size, flags); #endif } /// /// To be documented. /// public static bool InvisibleButton(byte* strId, Vector2 size, ImGuiButtonFlags flags) { byte ret = InvisibleButtonNative(strId, size, flags); return ret != 0; } /// /// To be documented. /// public static bool InvisibleButton(byte* strId, Vector2 size) { byte ret = InvisibleButtonNative(strId, size, (ImGuiButtonFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool InvisibleButton(ref byte strId, Vector2 size, ImGuiButtonFlags flags) { fixed (byte* pstrId = &strId) { byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); return ret != 0; } } /// /// To be documented. /// public static bool InvisibleButton(ref byte strId, Vector2 size) { fixed (byte* pstrId = &strId) { byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool InvisibleButton(ReadOnlySpan strId, Vector2 size, ImGuiButtonFlags flags) { fixed (byte* pstrId = strId) { byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); return ret != 0; } } /// /// To be documented. /// public static bool InvisibleButton(ReadOnlySpan strId, Vector2 size) { fixed (byte* pstrId = strId) { byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool InvisibleButton(string strId, Vector2 size, ImGuiButtonFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InvisibleButtonNative(pStr0, size, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InvisibleButton(string strId, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InvisibleButtonNative(pStr0, size, (ImGuiButtonFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ArrowButtonNative(byte* strId, ImGuiDir dir) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[149])(strId, dir); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[149])((nint)strId, dir); #endif } /// /// To be documented. /// public static bool ArrowButton(byte* strId, ImGuiDir dir) { byte ret = ArrowButtonNative(strId, dir); return ret != 0; } /// /// To be documented. /// public static bool ArrowButton(ref byte strId, ImGuiDir dir) { fixed (byte* pstrId = &strId) { byte ret = ArrowButtonNative((byte*)pstrId, dir); return ret != 0; } } /// /// To be documented. /// public static bool ArrowButton(ReadOnlySpan strId, ImGuiDir dir) { fixed (byte* pstrId = strId) { byte ret = ArrowButtonNative((byte*)pstrId, dir); return ret != 0; } } /// /// To be documented. /// public static bool ArrowButton(string strId, ImGuiDir dir) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ArrowButtonNative(pStr0, dir); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ImageNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); #else ((delegate* unmanaged[Cdecl])funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); #endif } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) { ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) { ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) { ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0) { ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size) { ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) { ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol) { ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) { ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); } /// /// To be documented. /// public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) { ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ImageButtonNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); #endif } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, tintCol); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); return ret != 0; } /// /// To be documented. /// public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol, Vector4 tintCol) { byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte CheckboxNative(byte* label, bool* v) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[152])(label, v); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[152])((nint)label, (nint)v); #endif } /// /// To be documented. /// public static bool Checkbox(byte* label, bool* v) { byte ret = CheckboxNative(label, v); return ret != 0; } /// /// To be documented. /// public static bool Checkbox(ref byte label, bool* v) { fixed (byte* plabel = &label) { byte ret = CheckboxNative((byte*)plabel, v); return ret != 0; } } /// /// To be documented. /// public static bool Checkbox(ReadOnlySpan label, bool* v) { fixed (byte* plabel = label) { byte ret = CheckboxNative((byte*)plabel, v); return ret != 0; } } /// /// To be documented. /// public static bool Checkbox(string label, bool* v) { 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 = CheckboxNative(pStr0, v); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Checkbox(byte* label, ref bool v) { fixed (bool* pv = &v) { byte ret = CheckboxNative(label, (bool*)pv); return ret != 0; } } /// /// To be documented. /// public static bool Checkbox(ref byte label, ref bool v) { fixed (byte* plabel = &label) { fixed (bool* pv = &v) { byte ret = CheckboxNative((byte*)plabel, (bool*)pv); return ret != 0; } } } /// /// To be documented. /// public static bool Checkbox(ReadOnlySpan label, ref bool v) { fixed (byte* plabel = label) { fixed (bool* pv = &v) { byte ret = CheckboxNative((byte*)plabel, (bool*)pv); return ret != 0; } } } /// /// To be documented. /// public static bool Checkbox(string label, ref bool v) { 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* pv = &v) { byte ret = CheckboxNative(pStr0, (bool*)pv); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[153])(label, flags, flagsValue); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[153])((nint)label, (nint)flags, flagsValue); #endif } /// /// To be documented. /// public static bool CheckboxFlags(byte* label, int* flags, int flagsValue) { byte ret = CheckboxFlagsNative(label, flags, flagsValue); return ret != 0; } /// /// To be documented. /// public static bool CheckboxFlags(ref byte label, int* flags, int flagsValue) { fixed (byte* plabel = &label) { byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(ReadOnlySpan label, int* flags, int flagsValue) { fixed (byte* plabel = label) { byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(string label, int* flags, int flagsValue) { 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 = CheckboxFlagsNative(pStr0, flags, flagsValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool CheckboxFlags(byte* label, ref int flags, int flagsValue) { fixed (int* pflags = &flags) { byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(ref byte label, ref int flags, int flagsValue) { fixed (byte* plabel = &label) { fixed (int* pflags = &flags) { byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); return ret != 0; } } } /// /// To be documented. /// public static bool CheckboxFlags(ReadOnlySpan label, ref int flags, int flagsValue) { fixed (byte* plabel = label) { fixed (int* pflags = &flags) { byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); return ret != 0; } } } /// /// To be documented. /// public static bool CheckboxFlags(string label, ref int flags, int flagsValue) { 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 (int* pflags = &flags) { byte ret = CheckboxFlagsNative(pStr0, (int*)pflags, flagsValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[154])(label, flags, flagsValue); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[154])((nint)label, (nint)flags, flagsValue); #endif } /// /// To be documented. /// public static bool CheckboxFlags(byte* label, uint* flags, uint flagsValue) { byte ret = CheckboxFlagsNative(label, flags, flagsValue); return ret != 0; } /// /// To be documented. /// public static bool CheckboxFlags(ref byte label, uint* flags, uint flagsValue) { fixed (byte* plabel = &label) { byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(ReadOnlySpan label, uint* flags, uint flagsValue) { fixed (byte* plabel = label) { byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(string label, uint* flags, uint flagsValue) { 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 = CheckboxFlagsNative(pStr0, flags, flagsValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool CheckboxFlags(byte* label, ref uint flags, uint flagsValue) { fixed (uint* pflags = &flags) { byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); return ret != 0; } } /// /// To be documented. /// public static bool CheckboxFlags(ref byte label, ref uint flags, uint flagsValue) { fixed (byte* plabel = &label) { fixed (uint* pflags = &flags) { byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); return ret != 0; } } } /// /// To be documented. /// public static bool CheckboxFlags(ReadOnlySpan label, ref uint flags, uint flagsValue) { fixed (byte* plabel = label) { fixed (uint* pflags = &flags) { byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); return ret != 0; } } } /// /// To be documented. /// public static bool CheckboxFlags(string label, ref uint flags, uint flagsValue) { 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 (uint* pflags = &flags) { byte ret = CheckboxFlagsNative(pStr0, (uint*)pflags, flagsValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte RadioButtonNative(byte* label, byte active) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[155])(label, active); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[155])((nint)label, active); #endif } /// /// To be documented. /// public static bool RadioButton(byte* label, bool active) { byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool RadioButton(ref byte label, bool active) { fixed (byte* plabel = &label) { byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool RadioButton(ReadOnlySpan label, bool active) { fixed (byte* plabel = label) { byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool RadioButton(string label, bool active) { 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 = RadioButtonNative(pStr0, active ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte RadioButtonNative(byte* label, int* v, int vButton) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[156])(label, v, vButton); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[156])((nint)label, (nint)v, vButton); #endif } /// /// To be documented. /// public static bool RadioButton(byte* label, int* v, int vButton) { byte ret = RadioButtonNative(label, v, vButton); return ret != 0; } /// /// To be documented. /// public static bool RadioButton(ref byte label, int* v, int vButton) { fixed (byte* plabel = &label) { byte ret = RadioButtonNative((byte*)plabel, v, vButton); return ret != 0; } } /// /// To be documented. /// public static bool RadioButton(ReadOnlySpan label, int* v, int vButton) { fixed (byte* plabel = label) { byte ret = RadioButtonNative((byte*)plabel, v, vButton); return ret != 0; } } /// /// To be documented. /// public static bool RadioButton(string label, int* v, int vButton) { 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 = RadioButtonNative(pStr0, v, vButton); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool RadioButton(byte* label, ref int v, int vButton) { fixed (int* pv = &v) { byte ret = RadioButtonNative(label, (int*)pv, vButton); return ret != 0; } } /// /// To be documented. /// public static bool RadioButton(ref byte label, ref int v, int vButton) { fixed (byte* plabel = &label) { fixed (int* pv = &v) { byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); return ret != 0; } } } /// /// To be documented. /// public static bool RadioButton(ReadOnlySpan label, ref int v, int vButton) { fixed (byte* plabel = label) { fixed (int* pv = &v) { byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); return ret != 0; } } } /// /// To be documented. /// public static bool RadioButton(string label, ref int v, int vButton) { 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 (int* pv = &v) { byte ret = RadioButtonNative(pStr0, (int*)pv, vButton); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[157])(fraction, sizeArg, overlay); #else ((delegate* unmanaged[Cdecl])funcTable[157])(fraction, sizeArg, (nint)overlay); #endif } /// /// To be documented. /// public static void ProgressBar(float fraction, Vector2 sizeArg, byte* overlay) { ProgressBarNative(fraction, sizeArg, overlay); } /// /// To be documented. /// public static void ProgressBar(float fraction, Vector2 sizeArg) { ProgressBarNative(fraction, sizeArg, (byte*)(default)); } /// /// To be documented. /// public static void ProgressBar(float fraction) { ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); } /// /// To be documented. /// public static void ProgressBar(float fraction, byte* overlay) { ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); } /// /// To be documented. /// public static void ProgressBar(float fraction, Vector2 sizeArg, ref byte overlay) { fixed (byte* poverlay = &overlay) { ProgressBarNative(fraction, sizeArg, (byte*)poverlay); } } /// /// To be documented. /// public static void ProgressBar(float fraction, ref byte overlay) { fixed (byte* poverlay = &overlay) { ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); } } /// /// To be documented. /// public static void ProgressBar(float fraction, Vector2 sizeArg, ReadOnlySpan overlay) { fixed (byte* poverlay = overlay) { ProgressBarNative(fraction, sizeArg, (byte*)poverlay); } } /// /// To be documented. /// public static void ProgressBar(float fraction, ReadOnlySpan overlay) { fixed (byte* poverlay = overlay) { ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); } } /// /// To be documented. /// public static void ProgressBar(float fraction, Vector2 sizeArg, string overlay) { byte* pStr0 = null; int pStrSize0 = 0; if (overlay != null) { pStrSize0 = Utils.GetByteCountUTF8(overlay); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ProgressBarNative(fraction, sizeArg, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ProgressBar(float fraction, string overlay) { byte* pStr0 = null; int pStrSize0 = 0; if (overlay != null) { pStrSize0 = Utils.GetByteCountUTF8(overlay); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BulletNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[158])(); #else ((delegate* unmanaged[Cdecl])funcTable[158])(); #endif } /// /// To be documented. /// public static void Bullet() { BulletNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginComboNative(byte* label, byte* previewValue, ImGuiComboFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[159])(label, previewValue, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[159])((nint)label, (nint)previewValue, flags); #endif } /// /// To be documented. /// public static bool BeginCombo(byte* label, byte* previewValue, ImGuiComboFlags flags) { byte ret = BeginComboNative(label, previewValue, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(byte* label, byte* previewValue) { byte ret = BeginComboNative(label, previewValue, (ImGuiComboFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(ref byte label, byte* previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = &label) { byte ret = BeginComboNative((byte*)plabel, previewValue, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ref byte label, byte* previewValue) { fixed (byte* plabel = &label) { byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, byte* previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = label) { byte ret = BeginComboNative((byte*)plabel, previewValue, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, byte* previewValue) { fixed (byte* plabel = label) { byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(string label, byte* previewValue, ImGuiComboFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative(pStr0, previewValue, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(string label, byte* previewValue) { 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 = BeginComboNative(pStr0, previewValue, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(byte* label, ref byte previewValue, ImGuiComboFlags flags) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(byte* label, ref byte previewValue) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(byte* label, ReadOnlySpan previewValue, ImGuiComboFlags flags) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(byte* label, ReadOnlySpan previewValue) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(byte* label, string previewValue, ImGuiComboFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative(label, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(byte* label, string previewValue) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative(label, pStr0, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(ref byte label, ref byte previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = &label) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ref byte label, ref byte previewValue) { fixed (byte* plabel = &label) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, ReadOnlySpan previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = label) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, ReadOnlySpan previewValue) { fixed (byte* plabel = label) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(string label, string previewValue, ImGuiComboFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (previewValue != null) { pStrSize1 = Utils.GetByteCountUTF8(previewValue); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = BeginComboNative(pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(string label, string previewValue) { 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* pStr1 = null; int pStrSize1 = 0; if (previewValue != null) { pStrSize1 = Utils.GetByteCountUTF8(previewValue); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = BeginComboNative(pStr0, pStr1, (ImGuiComboFlags)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginCombo(ref byte label, ReadOnlySpan previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = &label) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ref byte label, ReadOnlySpan previewValue) { fixed (byte* plabel = &label) { fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ref byte label, string previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative((byte*)plabel, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ref byte label, string previewValue) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, ref byte previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = label) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, ref byte previewValue) { fixed (byte* plabel = label) { fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, string previewValue, ImGuiComboFlags flags) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative((byte*)plabel, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(ReadOnlySpan label, string previewValue) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (previewValue != null) { pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(string label, ref byte previewValue, ImGuiComboFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(string label, ref byte previewValue) { 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 (byte* ppreviewValue = &previewValue) { byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(string label, ReadOnlySpan previewValue, ImGuiComboFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginCombo(string label, ReadOnlySpan previewValue) { 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 (byte* ppreviewValue = previewValue) { byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndComboNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[160])(); #else ((delegate* unmanaged[Cdecl])funcTable[160])(); #endif } /// /// To be documented. /// public static void EndCombo() { EndComboNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[161])(label, currentItem, items, itemsCount, popupMaxHeightInItems); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[161])((nint)label, (nint)currentItem, (nint)items, itemsCount, popupMaxHeightInItems); #endif } /// /// To be documented. /// public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); return ret != 0; } /// /// To be documented. /// public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount) { byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); return ret != 0; } /// /// To be documented. /// public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { fixed (byte* plabel = &label) { byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); return ret != 0; } } /// /// To be documented. /// public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount) { fixed (byte* plabel = &label) { byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool Combo(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { fixed (byte* plabel = label) { byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); return ret != 0; } } /// /// To be documented. /// public static bool Combo(ReadOnlySpan label, int* currentItem, byte** items, int itemsCount) { fixed (byte* plabel = label) { byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool Combo(string label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { 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 = ComboNative(pStr0, currentItem, items, itemsCount, popupMaxHeightInItems); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Combo(string label, int* currentItem, byte** items, int itemsCount) { 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 = ComboNative(pStr0, currentItem, items, itemsCount, (int)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } }