// ------------------------------------------------------------------------------ // // 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 AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = &textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { fixed (byte* ptextBegin = textBegin) { 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; } fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* pself = &self) { fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[523])(self, points, numPoints, col, flags, thickness); #else ((delegate* unmanaged[Cdecl])funcTable[523])((nint)self, (nint)points, numPoints, col, flags, thickness); #endif } /// /// To be documented. /// public static void AddPolyline(ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) { AddPolylineNative(self, points, numPoints, col, flags, thickness); } /// /// To be documented. /// public static void AddPolyline(ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) { fixed (ImDrawList* pself = &self) { AddPolylineNative((ImDrawList*)pself, points, numPoints, col, flags, thickness); } } /// /// To be documented. /// public static void AddPolyline(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) { fixed (Vector2* ppoints = &points) { AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); } } /// /// To be documented. /// public static void AddPolyline(ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) { fixed (ImDrawList* pself = &self) { fixed (Vector2* ppoints = &points) { AddPolylineNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[524])(self, points, numPoints, col); #else ((delegate* unmanaged[Cdecl])funcTable[524])((nint)self, (nint)points, numPoints, col); #endif } /// /// To be documented. /// public static void AddConvexPolyFilled(ImDrawListPtr self, Vector2* points, int numPoints, uint col) { AddConvexPolyFilledNative(self, points, numPoints, col); } /// /// To be documented. /// public static void AddConvexPolyFilled(ref ImDrawList self, Vector2* points, int numPoints, uint col) { fixed (ImDrawList* pself = &self) { AddConvexPolyFilledNative((ImDrawList*)pself, points, numPoints, col); } } /// /// To be documented. /// public static void AddConvexPolyFilled(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) { fixed (Vector2* ppoints = &points) { AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); } } /// /// To be documented. /// public static void AddConvexPolyFilled(ref ImDrawList self, ref Vector2 points, int numPoints, uint col) { fixed (ImDrawList* pself = &self) { fixed (Vector2* ppoints = &points) { AddConvexPolyFilledNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[525])((nint)self, p1, p2, p3, p4, col, thickness, numSegments); #endif } /// /// To be documented. /// public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) { AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); } /// /// To be documented. /// public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); } /// /// To be documented. /// public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) { fixed (ImDrawList* pself = &self) { AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); } } /// /// To be documented. /// public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { fixed (ImDrawList* pself = &self) { AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[526])((nint)self, p1, p2, p3, col, thickness, numSegments); #endif } /// /// To be documented. /// public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) { AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); } /// /// To be documented. /// public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); } /// /// To be documented. /// public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) { fixed (ImDrawList* pself = &self) { AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); } } /// /// To be documented. /// public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { fixed (ImDrawList* pself = &self) { AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); #else ((delegate* unmanaged[Cdecl])funcTable[527])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col); #endif } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) { AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) { AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) { AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) { AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) { AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); } /// /// To be documented. /// public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) { AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); } } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); } } /// /// To be documented. /// public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) { fixed (ImDrawList* pself = &self) { AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); #else ((delegate* unmanaged[Cdecl])funcTable[528])((nint)self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); #endif } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } /// /// To be documented. /// public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } } /// /// To be documented. /// public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { fixed (ImDrawList* pself = &self) { AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); #else ((delegate* unmanaged[Cdecl])funcTable[529])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); #endif } /// /// To be documented. /// public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) { AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); } /// /// To be documented. /// public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) { AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); } /// /// To be documented. /// public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) { fixed (ImDrawList* pself = &self) { AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); } } /// /// To be documented. /// public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) { fixed (ImDrawList* pself = &self) { AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathClearNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[530])(self); #else ((delegate* unmanaged[Cdecl])funcTable[530])((nint)self); #endif } /// /// To be documented. /// public static void PathClear(ImDrawListPtr self) { PathClearNative(self); } /// /// To be documented. /// public static void PathClear(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { PathClearNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathLineToNative(ImDrawList* self, Vector2 pos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[531])(self, pos); #else ((delegate* unmanaged[Cdecl])funcTable[531])((nint)self, pos); #endif } /// /// To be documented. /// public static void PathLineTo(ImDrawListPtr self, Vector2 pos) { PathLineToNative(self, pos); } /// /// To be documented. /// public static void PathLineTo(ref ImDrawList self, Vector2 pos) { fixed (ImDrawList* pself = &self) { PathLineToNative((ImDrawList*)pself, pos); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[532])(self, pos); #else ((delegate* unmanaged[Cdecl])funcTable[532])((nint)self, pos); #endif } /// /// To be documented. /// public static void PathLineToMergeDuplicate(ImDrawListPtr self, Vector2 pos) { PathLineToMergeDuplicateNative(self, pos); } /// /// To be documented. /// public static void PathLineToMergeDuplicate(ref ImDrawList self, Vector2 pos) { fixed (ImDrawList* pself = &self) { PathLineToMergeDuplicateNative((ImDrawList*)pself, pos); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathFillConvexNative(ImDrawList* self, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[533])(self, col); #else ((delegate* unmanaged[Cdecl])funcTable[533])((nint)self, col); #endif } /// /// To be documented. /// public static void PathFillConvex(ImDrawListPtr self, uint col) { PathFillConvexNative(self, col); } /// /// To be documented. /// public static void PathFillConvex(ref ImDrawList self, uint col) { fixed (ImDrawList* pself = &self) { PathFillConvexNative((ImDrawList*)pself, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathStrokeNative(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[534])(self, col, flags, thickness); #else ((delegate* unmanaged[Cdecl])funcTable[534])((nint)self, col, flags, thickness); #endif } /// /// To be documented. /// public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) { PathStrokeNative(self, col, flags, thickness); } /// /// To be documented. /// public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags) { PathStrokeNative(self, col, flags, (float)(1.0f)); } /// /// To be documented. /// public static void PathStroke(ImDrawListPtr self, uint col) { PathStrokeNative(self, col, (ImDrawFlags)(0), (float)(1.0f)); } /// /// To be documented. /// public static void PathStroke(ImDrawListPtr self, uint col, float thickness) { PathStrokeNative(self, col, (ImDrawFlags)(0), thickness); } /// /// To be documented. /// public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) { fixed (ImDrawList* pself = &self) { PathStrokeNative((ImDrawList*)pself, col, flags, thickness); } } /// /// To be documented. /// public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags) { fixed (ImDrawList* pself = &self) { PathStrokeNative((ImDrawList*)pself, col, flags, (float)(1.0f)); } } /// /// To be documented. /// public static void PathStroke(ref ImDrawList self, uint col) { fixed (ImDrawList* pself = &self) { PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); } } /// /// To be documented. /// public static void PathStroke(ref ImDrawList self, uint col, float thickness) { fixed (ImDrawList* pself = &self) { PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[535])(self, center, radius, aMin, aMax, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[535])((nint)self, center, radius, aMin, aMax, numSegments); #endif } /// /// To be documented. /// public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { PathArcToNative(self, center, radius, aMin, aMax, numSegments); } /// /// To be documented. /// public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) { PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); } /// /// To be documented. /// public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { fixed (ImDrawList* pself = &self) { PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); } } /// /// To be documented. /// public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) { fixed (ImDrawList* pself = &self) { PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); #else ((delegate* unmanaged[Cdecl])funcTable[536])((nint)self, center, radius, aMinOf12, aMaxOf12); #endif } /// /// To be documented. /// public static void PathArcToFast(ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) { PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); } /// /// To be documented. /// public static void PathArcToFast(ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) { fixed (ImDrawList* pself = &self) { PathArcToFastNative((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[537])(self, p2, p3, p4, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[537])((nint)self, p2, p3, p4, numSegments); #endif } /// /// To be documented. /// public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) { PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); } /// /// To be documented. /// public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) { PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); } /// /// To be documented. /// public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) { fixed (ImDrawList* pself = &self) { PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, numSegments); } } /// /// To be documented. /// public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) { fixed (ImDrawList* pself = &self) { PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, (int)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[538])(self, p2, p3, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[538])((nint)self, p2, p3, numSegments); #endif } /// /// To be documented. /// public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) { PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); } /// /// To be documented. /// public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3) { PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); } /// /// To be documented. /// public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) { fixed (ImDrawList* pself = &self) { PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, numSegments); } } /// /// To be documented. /// public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3) { fixed (ImDrawList* pself = &self) { PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, (int)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[539])(self, rectMin, rectMax, rounding, flags); #else ((delegate* unmanaged[Cdecl])funcTable[539])((nint)self, rectMin, rectMax, rounding, flags); #endif } /// /// To be documented. /// public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) { PathRectNative(self, rectMin, rectMax, rounding, flags); } /// /// To be documented. /// public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) { PathRectNative(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); } /// /// To be documented. /// public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) { PathRectNative(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); } /// /// To be documented. /// public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) { PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); } /// /// To be documented. /// public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) { fixed (ImDrawList* pself = &self) { PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, flags); } } /// /// To be documented. /// public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) { fixed (ImDrawList* pself = &self) { PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); } } /// /// To be documented. /// public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) { fixed (ImDrawList* pself = &self) { PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); } } /// /// To be documented. /// public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) { fixed (ImDrawList* pself = &self) { PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl], void*, void>)funcTable[540])(self, (delegate*)Utils.GetFunctionPointerForDelegate(callback), callbackData); #else ((delegate* unmanaged[Cdecl])funcTable[540])((nint)self, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)callbackData); #endif } /// /// To be documented. /// public static void AddCallback(ImDrawListPtr self, ImDrawCallback callback, void* callbackData) { AddCallbackNative(self, callback, callbackData); } /// /// To be documented. /// public static void AddCallback(ref ImDrawList self, ImDrawCallback callback, void* callbackData) { fixed (ImDrawList* pself = &self) { AddCallbackNative((ImDrawList*)pself, callback, callbackData); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddDrawCmdNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[541])(self); #else ((delegate* unmanaged[Cdecl])funcTable[541])((nint)self); #endif } /// /// To be documented. /// public static void AddDrawCmd(ImDrawListPtr self) { AddDrawCmdNative(self); } /// /// To be documented. /// public static void AddDrawCmd(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { AddDrawCmdNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* CloneOutputNative(ImDrawList* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[542])(self); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[542])((nint)self); #endif } /// /// To be documented. /// public static ImDrawListPtr CloneOutput(ImDrawListPtr self) { ImDrawListPtr ret = CloneOutputNative(self); return ret; } /// /// To be documented. /// public static ImDrawListPtr CloneOutput(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { ImDrawListPtr ret = CloneOutputNative((ImDrawList*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ChannelsSplitNative(ImDrawList* self, int count) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[543])(self, count); #else ((delegate* unmanaged[Cdecl])funcTable[543])((nint)self, count); #endif } /// /// To be documented. /// public static void ChannelsSplit(ImDrawListPtr self, int count) { ChannelsSplitNative(self, count); } /// /// To be documented. /// public static void ChannelsSplit(ref ImDrawList self, int count) { fixed (ImDrawList* pself = &self) { ChannelsSplitNative((ImDrawList*)pself, count); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ChannelsMergeNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[544])(self); #else ((delegate* unmanaged[Cdecl])funcTable[544])((nint)self); #endif } /// /// To be documented. /// public static void ChannelsMerge(ImDrawListPtr self) { ChannelsMergeNative(self); } /// /// To be documented. /// public static void ChannelsMerge(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { ChannelsMergeNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ChannelsSetCurrentNative(ImDrawList* self, int n) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[545])(self, n); #else ((delegate* unmanaged[Cdecl])funcTable[545])((nint)self, n); #endif } /// /// To be documented. /// public static void ChannelsSetCurrent(ImDrawListPtr self, int n) { ChannelsSetCurrentNative(self, n); } /// /// To be documented. /// public static void ChannelsSetCurrent(ref ImDrawList self, int n) { fixed (ImDrawList* pself = &self) { ChannelsSetCurrentNative((ImDrawList*)pself, n); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[546])(self, idxCount, vtxCount); #else ((delegate* unmanaged[Cdecl])funcTable[546])((nint)self, idxCount, vtxCount); #endif } /// /// To be documented. /// public static void PrimReserve(ImDrawListPtr self, int idxCount, int vtxCount) { PrimReserveNative(self, idxCount, vtxCount); } /// /// To be documented. /// public static void PrimReserve(ref ImDrawList self, int idxCount, int vtxCount) { fixed (ImDrawList* pself = &self) { PrimReserveNative((ImDrawList*)pself, idxCount, vtxCount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[547])(self, idxCount, vtxCount); #else ((delegate* unmanaged[Cdecl])funcTable[547])((nint)self, idxCount, vtxCount); #endif } /// /// To be documented. /// public static void PrimUnreserve(ImDrawListPtr self, int idxCount, int vtxCount) { PrimUnreserveNative(self, idxCount, vtxCount); } /// /// To be documented. /// public static void PrimUnreserve(ref ImDrawList self, int idxCount, int vtxCount) { fixed (ImDrawList* pself = &self) { PrimUnreserveNative((ImDrawList*)pself, idxCount, vtxCount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[548])(self, a, b, col); #else ((delegate* unmanaged[Cdecl])funcTable[548])((nint)self, a, b, col); #endif } /// /// To be documented. /// public static void PrimRect(ImDrawListPtr self, Vector2 a, Vector2 b, uint col) { PrimRectNative(self, a, b, col); } /// /// To be documented. /// public static void PrimRect(ref ImDrawList self, Vector2 a, Vector2 b, uint col) { fixed (ImDrawList* pself = &self) { PrimRectNative((ImDrawList*)pself, a, b, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[549])(self, a, b, uvA, uvB, col); #else ((delegate* unmanaged[Cdecl])funcTable[549])((nint)self, a, b, uvA, uvB, col); #endif } /// /// To be documented. /// public static void PrimRectUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) { PrimRectUVNative(self, a, b, uvA, uvB, col); } /// /// To be documented. /// public static void PrimRectUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) { fixed (ImDrawList* pself = &self) { PrimRectUVNative((ImDrawList*)pself, a, b, uvA, uvB, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); #else ((delegate* unmanaged[Cdecl])funcTable[550])((nint)self, a, b, c, d, uvA, uvB, uvC, uvD, col); #endif } /// /// To be documented. /// public static void PrimQuadUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) { PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); } /// /// To be documented. /// public static void PrimQuadUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) { fixed (ImDrawList* pself = &self) { PrimQuadUVNative((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[551])(self, pos, uv, col); #else ((delegate* unmanaged[Cdecl])funcTable[551])((nint)self, pos, uv, col); #endif } /// /// To be documented. /// public static void PrimWriteVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) { PrimWriteVtxNative(self, pos, uv, col); } /// /// To be documented. /// public static void PrimWriteVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) { fixed (ImDrawList* pself = &self) { PrimWriteVtxNative((ImDrawList*)pself, pos, uv, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimWriteIdxNative(ImDrawList* self, ushort idx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[552])(self, idx); #else ((delegate* unmanaged[Cdecl])funcTable[552])((nint)self, idx); #endif } /// /// To be documented. /// public static void PrimWriteIdx(ImDrawListPtr self, ushort idx) { PrimWriteIdxNative(self, idx); } /// /// To be documented. /// public static void PrimWriteIdx(ref ImDrawList self, ushort idx) { fixed (ImDrawList* pself = &self) { PrimWriteIdxNative((ImDrawList*)pself, idx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[553])(self, pos, uv, col); #else ((delegate* unmanaged[Cdecl])funcTable[553])((nint)self, pos, uv, col); #endif } /// /// To be documented. /// public static void PrimVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) { PrimVtxNative(self, pos, uv, col); } /// /// To be documented. /// public static void PrimVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) { fixed (ImDrawList* pself = &self) { PrimVtxNative((ImDrawList*)pself, pos, uv, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _ResetForNewFrameNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[554])(self); #else ((delegate* unmanaged[Cdecl])funcTable[554])((nint)self); #endif } /// /// To be documented. /// public static void _ResetForNewFrame(ImDrawListPtr self) { _ResetForNewFrameNative(self); } /// /// To be documented. /// public static void _ResetForNewFrame(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _ResetForNewFrameNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _ClearFreeMemoryNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[555])(self); #else ((delegate* unmanaged[Cdecl])funcTable[555])((nint)self); #endif } /// /// To be documented. /// public static void _ClearFreeMemory(ImDrawListPtr self) { _ClearFreeMemoryNative(self); } /// /// To be documented. /// public static void _ClearFreeMemory(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _ClearFreeMemoryNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _PopUnusedDrawCmdNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[556])(self); #else ((delegate* unmanaged[Cdecl])funcTable[556])((nint)self); #endif } /// /// To be documented. /// public static void _PopUnusedDrawCmd(ImDrawListPtr self) { _PopUnusedDrawCmdNative(self); } /// /// To be documented. /// public static void _PopUnusedDrawCmd(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _PopUnusedDrawCmdNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _TryMergeDrawCmdsNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[557])(self); #else ((delegate* unmanaged[Cdecl])funcTable[557])((nint)self); #endif } /// /// To be documented. /// public static void _TryMergeDrawCmds(ImDrawListPtr self) { _TryMergeDrawCmdsNative(self); } /// /// To be documented. /// public static void _TryMergeDrawCmds(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _TryMergeDrawCmdsNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _OnChangedClipRectNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[558])(self); #else ((delegate* unmanaged[Cdecl])funcTable[558])((nint)self); #endif } /// /// To be documented. /// public static void _OnChangedClipRect(ImDrawListPtr self) { _OnChangedClipRectNative(self); } /// /// To be documented. /// public static void _OnChangedClipRect(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _OnChangedClipRectNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _OnChangedTextureIDNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[559])(self); #else ((delegate* unmanaged[Cdecl])funcTable[559])((nint)self); #endif } /// /// To be documented. /// public static void _OnChangedTextureID(ImDrawListPtr self) { _OnChangedTextureIDNative(self); } /// /// To be documented. /// public static void _OnChangedTextureID(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _OnChangedTextureIDNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _OnChangedVtxOffsetNative(ImDrawList* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[560])(self); #else ((delegate* unmanaged[Cdecl])funcTable[560])((nint)self); #endif } /// /// To be documented. /// public static void _OnChangedVtxOffset(ImDrawListPtr self) { _OnChangedVtxOffsetNative(self); } /// /// To be documented. /// public static void _OnChangedVtxOffset(ref ImDrawList self) { fixed (ImDrawList* pself = &self) { _OnChangedVtxOffsetNative((ImDrawList*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[561])(self, radius); #else return (int)((delegate* unmanaged[Cdecl])funcTable[561])((nint)self, radius); #endif } /// /// To be documented. /// public static int _CalcCircleAutoSegmentCount(ImDrawListPtr self, float radius) { int ret = _CalcCircleAutoSegmentCountNative(self, radius); return ret; } /// /// To be documented. /// public static int _CalcCircleAutoSegmentCount(ref ImDrawList self, float radius) { fixed (ImDrawList* pself = &self) { int ret = _CalcCircleAutoSegmentCountNative((ImDrawList*)pself, radius); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); #else ((delegate* unmanaged[Cdecl])funcTable[562])((nint)self, center, radius, aMinSample, aMaxSample, aStep); #endif } /// /// To be documented. /// public static void _PathArcToFastEx(ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) { _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); } /// /// To be documented. /// public static void _PathArcToFastEx(ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) { fixed (ImDrawList* pself = &self) { _PathArcToFastExNative((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[563])(self, center, radius, aMin, aMax, numSegments); #else ((delegate* unmanaged[Cdecl])funcTable[563])((nint)self, center, radius, aMin, aMax, numSegments); #endif } /// /// To be documented. /// public static void _PathArcToN(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); } /// /// To be documented. /// public static void _PathArcToN(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { fixed (ImDrawList* pself = &self) { _PathArcToNNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawData* ImDrawDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[564])(); #else return (ImDrawData*)((delegate* unmanaged[Cdecl])funcTable[564])(); #endif } /// /// To be documented. /// public static ImDrawDataPtr ImDrawData() { ImDrawDataPtr ret = ImDrawDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImDrawData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[565])(self); #else ((delegate* unmanaged[Cdecl])funcTable[565])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImDrawDataPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImDrawData self) { fixed (ImDrawData* pself = &self) { DestroyNative((ImDrawData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearNative(ImDrawData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[566])(self); #else ((delegate* unmanaged[Cdecl])funcTable[566])((nint)self); #endif } /// /// To be documented. /// public static void Clear(ImDrawDataPtr self) { ClearNative(self); } /// /// To be documented. /// public static void Clear(ref ImDrawData self) { fixed (ImDrawData* pself = &self) { ClearNative((ImDrawData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DeIndexAllBuffersNative(ImDrawData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[567])(self); #else ((delegate* unmanaged[Cdecl])funcTable[567])((nint)self); #endif } /// /// To be documented. /// public static void DeIndexAllBuffers(ImDrawDataPtr self) { DeIndexAllBuffersNative(self); } /// /// To be documented. /// public static void DeIndexAllBuffers(ref ImDrawData self) { fixed (ImDrawData* pself = &self) { DeIndexAllBuffersNative((ImDrawData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[568])(self, fbScale); #else ((delegate* unmanaged[Cdecl])funcTable[568])((nint)self, fbScale); #endif } /// /// To be documented. /// public static void ScaleClipRects(ImDrawDataPtr self, Vector2 fbScale) { ScaleClipRectsNative(self, fbScale); } /// /// To be documented. /// public static void ScaleClipRects(ref ImDrawData self, Vector2 fbScale) { fixed (ImDrawData* pself = &self) { ScaleClipRectsNative((ImDrawData*)pself, fbScale); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFontConfig* ImFontConfigNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[569])(); #else return (ImFontConfig*)((delegate* unmanaged[Cdecl])funcTable[569])(); #endif } /// /// To be documented. /// public static ImFontConfigPtr ImFontConfig() { ImFontConfigPtr ret = ImFontConfigNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImFontConfig* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[570])(self); #else ((delegate* unmanaged[Cdecl])funcTable[570])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImFontConfigPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImFontConfig self) { fixed (ImFontConfig* pself = &self) { DestroyNative((ImFontConfig*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[571])(); #else return (ImFontGlyphRangesBuilder*)((delegate* unmanaged[Cdecl])funcTable[571])(); #endif } /// /// To be documented. /// public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() { ImFontGlyphRangesBuilderPtr ret = ImFontGlyphRangesBuilderNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImFontGlyphRangesBuilder* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[572])(self); #else ((delegate* unmanaged[Cdecl])funcTable[572])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImFontGlyphRangesBuilderPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImFontGlyphRangesBuilder self) { fixed (ImFontGlyphRangesBuilder* pself = &self) { DestroyNative((ImFontGlyphRangesBuilder*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearNative(ImFontGlyphRangesBuilder* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[573])(self); #else ((delegate* unmanaged[Cdecl])funcTable[573])((nint)self); #endif } /// /// To be documented. /// public static void Clear(ImFontGlyphRangesBuilderPtr self) { ClearNative(self); } /// /// To be documented. /// public static void Clear(ref ImFontGlyphRangesBuilder self) { fixed (ImFontGlyphRangesBuilder* pself = &self) { ClearNative((ImFontGlyphRangesBuilder*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte GetBitNative(ImFontGlyphRangesBuilder* self, nuint n) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[574])(self, n); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[574])((nint)self, n); #endif } /// /// To be documented. /// public static bool GetBit(ImFontGlyphRangesBuilderPtr self, nuint n) { byte ret = GetBitNative(self, n); return ret != 0; } /// /// To be documented. /// public static bool GetBit(ref ImFontGlyphRangesBuilder self, nuint n) { fixed (ImFontGlyphRangesBuilder* pself = &self) { byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetBitNative(ImFontGlyphRangesBuilder* self, nuint n) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[575])(self, n); #else ((delegate* unmanaged[Cdecl])funcTable[575])((nint)self, n); #endif } /// /// To be documented. /// public static void SetBit(ImFontGlyphRangesBuilderPtr self, nuint n) { SetBitNative(self, n); } /// /// To be documented. /// public static void SetBit(ref ImFontGlyphRangesBuilder self, nuint n) { fixed (ImFontGlyphRangesBuilder* pself = &self) { SetBitNative((ImFontGlyphRangesBuilder*)pself, n); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddCharNative(ImFontGlyphRangesBuilder* self, ushort c) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[576])(self, c); #else ((delegate* unmanaged[Cdecl])funcTable[576])((nint)self, c); #endif } /// /// To be documented. /// public static void AddChar(ImFontGlyphRangesBuilderPtr self, ushort c) { AddCharNative(self, c); } /// /// To be documented. /// public static void AddChar(ref ImFontGlyphRangesBuilder self, ushort c) { fixed (ImFontGlyphRangesBuilder* pself = &self) { AddCharNative((ImFontGlyphRangesBuilder*)pself, c); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[577])(self, text, textEnd); #else ((delegate* unmanaged[Cdecl])funcTable[577])((nint)self, (nint)text, (nint)textEnd); #endif } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, byte* textEnd) { AddTextNative(self, text, textEnd); } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text) { AddTextNative(self, text, (byte*)(default)); } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { AddTextNative((ImFontGlyphRangesBuilder*)pself, text, textEnd); } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text) { fixed (ImFontGlyphRangesBuilder* pself = &self) { AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)(default)); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { AddTextNative(self, (byte*)ptext, textEnd); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text) { fixed (byte* ptext = &text) { AddTextNative(self, (byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { AddTextNative(self, (byte*)ptext, textEnd); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text) { fixed (byte* ptext = text) { AddTextNative(self, (byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptext = &text) { AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptext = &text) { AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptext = text) { AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan text) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptext = text) { AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, string text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { 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; } AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, string text) { fixed (ImFontGlyphRangesBuilder* pself = &self) { 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; } AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { AddTextNative(self, text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { AddTextNative(self, text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ref byte textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptextEnd = &textEnd) { AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ReadOnlySpan textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptextEnd = textEnd) { AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, string textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { 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; } AddTextNative((ImFontGlyphRangesBuilder*)pself, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ref byte textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ReadOnlySpan textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ReadOnlySpan textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan text, ref byte textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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; } AddTextNative(self, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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) { AddTextNative(self, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ImFontGlyphRangesBuilderPtr self, 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) { AddTextNative(self, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ref byte textEnd) { fixed (ImFontGlyphRangesBuilder* pself = &self) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); } } } } } }