// ------------------------------------------------------------------------------ // // 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 ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ushort* glyphRanges) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (byte* pfilename = &filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ushort glyphRanges) { fixed (byte* pfilename = &filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (byte* pfilename = filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) { fixed (byte* pfilename = filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = &filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pfilename = filename) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (filename != null) { pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[587])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); #else return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[587])((nint)self, (nint)fontData, fontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); #endif } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[588])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); #else return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[588])((nint)self, (nint)compressedFontData, compressedFontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); #endif } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[589])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); #else return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[589])((nint)self, (nint)compressedFontDatabase85, sizePixels, (nint)fontCfg, (nint)glyphRanges); #endif } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); return ret; } } } } } /// /// To be documented. /// public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref ushort glyphRanges) { fixed (ImFontAtlas* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (compressedFontDatabase85 != null) { pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (ushort* pglyphRanges = &glyphRanges) { ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)pglyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearInputDataNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[590])(self); #else ((delegate* unmanaged[Cdecl])funcTable[590])((nint)self); #endif } /// /// To be documented. /// public static void ClearInputData(ImFontAtlasPtr self) { ClearInputDataNative(self); } /// /// To be documented. /// public static void ClearInputData(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ClearInputDataNative((ImFontAtlas*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearTexDataNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[591])(self); #else ((delegate* unmanaged[Cdecl])funcTable[591])((nint)self); #endif } /// /// To be documented. /// public static void ClearTexData(ImFontAtlasPtr self) { ClearTexDataNative(self); } /// /// To be documented. /// public static void ClearTexData(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ClearTexDataNative((ImFontAtlas*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearFontsNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[592])(self); #else ((delegate* unmanaged[Cdecl])funcTable[592])((nint)self); #endif } /// /// To be documented. /// public static void ClearFonts(ImFontAtlasPtr self) { ClearFontsNative(self); } /// /// To be documented. /// public static void ClearFonts(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ClearFontsNative((ImFontAtlas*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[593])(self); #else ((delegate* unmanaged[Cdecl])funcTable[593])((nint)self); #endif } /// /// To be documented. /// public static void Clear(ImFontAtlasPtr self) { ClearNative(self); } /// /// To be documented. /// public static void Clear(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ClearNative((ImFontAtlas*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BuildNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[594])(self); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[594])((nint)self); #endif } /// /// To be documented. /// public static bool Build(ImFontAtlasPtr self) { byte ret = BuildNative(self); return ret != 0; } /// /// To be documented. /// public static bool Build(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { byte ret = BuildNative((ImFontAtlas*)pself); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetTexDataAsAlpha8Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[595])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); #else ((delegate* unmanaged[Cdecl])funcTable[595])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); #endif } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetTexDataAsRGBA32Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); #else ((delegate* unmanaged[Cdecl])funcTable[596])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); #endif } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } /// /// To be documented. /// public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* pself = &self) { fixed (byte** poutPixels = &outPixels) { fixed (int* poutWidth = &outWidth) { fixed (int* poutHeight = &outHeight) { fixed (int* poutBytesPerPixel = &outBytesPerPixel) { GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsBuiltNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[597])(self); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[597])((nint)self); #endif } /// /// To be documented. /// public static bool IsBuilt(ImFontAtlasPtr self) { byte ret = IsBuiltNative(self); return ret != 0; } /// /// To be documented. /// public static bool IsBuilt(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { byte ret = IsBuiltNative((ImFontAtlas*)pself); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetTexIDNative(ImFontAtlas* self, int textureIndex, ImTextureID id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[598])(self, textureIndex, id); #else ((delegate* unmanaged[Cdecl])funcTable[598])((nint)self, textureIndex, id); #endif } /// /// To be documented. /// public static void SetTexID(ImFontAtlasPtr self, int textureIndex, ImTextureID id) { SetTexIDNative(self, textureIndex, id); } /// /// To be documented. /// public static void SetTexID(ref ImFontAtlas self, int textureIndex, ImTextureID id) { fixed (ImFontAtlas* pself = &self) { SetTexIDNative((ImFontAtlas*)pself, textureIndex, id); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearTexIDNative(ImFontAtlas* self, ImTextureID nullId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[599])(self, nullId); #else ((delegate* unmanaged[Cdecl])funcTable[599])((nint)self, nullId); #endif } /// /// To be documented. /// public static void ClearTexID(ImFontAtlasPtr self, ImTextureID nullId) { ClearTexIDNative(self, nullId); } /// /// To be documented. /// public static void ClearTexID(ref ImFontAtlas self, ImTextureID nullId) { fixed (ImFontAtlas* pself = &self) { ClearTexIDNative((ImFontAtlas*)pself, nullId); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ushort* GetGlyphRangesDefaultNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[600])(self); #else return (ushort*)((delegate* unmanaged[Cdecl])funcTable[600])((nint)self); #endif } /// /// To be documented. /// public static ushort* GetGlyphRangesDefault(ImFontAtlasPtr self) { ushort* ret = GetGlyphRangesDefaultNative(self); return ret; } /// /// To be documented. /// public static ushort* GetGlyphRangesDefault(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ushort* ret = GetGlyphRangesDefaultNative((ImFontAtlas*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ushort* GetGlyphRangesKoreanNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[601])(self); #else return (ushort*)((delegate* unmanaged[Cdecl])funcTable[601])((nint)self); #endif } /// /// To be documented. /// public static ushort* GetGlyphRangesKorean(ImFontAtlasPtr self) { ushort* ret = GetGlyphRangesKoreanNative(self); return ret; } /// /// To be documented. /// public static ushort* GetGlyphRangesKorean(ref ImFontAtlas self) { fixed (ImFontAtlas* pself = &self) { ushort* ret = GetGlyphRangesKoreanNative((ImFontAtlas*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ushort* GetGlyphRangesJapaneseNative(ImFontAtlas* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[602])(self); #else return (ushort*)((delegate* unmanaged[Cdecl])funcTable[602])((nint)self); #endif } /// /// To be documented. /// public static ushort* GetGlyphRangesJapanese(ImFontAtlasPtr self) { ushort* ret = GetGlyphRangesJapaneseNative(self); return ret; } } }