// ------------------------------------------------------------------------------ // // 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; using Dalamud.Bindings.ImGui; namespace Dalamud.Bindings.ImPlot { public unsafe partial class ImPlot { /// /// To be documented. /// public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, byte* labelId) { fixed (ImPlotItemGroup* pself = &self) { ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, labelId); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ref byte labelId) { fixed (byte* plabelId = &labelId) { ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ReadOnlySpan labelId) { fixed (byte* plabelId = labelId) { ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, string labelId) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotItemPtr ret = GetItemNative(self, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ref byte labelId) { fixed (ImPlotItemGroup* pself = &self) { fixed (byte* plabelId = &labelId) { ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); return ret; } } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ReadOnlySpan labelId) { fixed (ImPlotItemGroup* pself = &self) { fixed (byte* plabelId = labelId) { ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); return ret; } } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, string labelId) { fixed (ImPlotItemGroup* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* GetOrAddItemNative(ImPlotItemGroup* self, uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[585])(self, id); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[585])((nint)self, id); #endif } /// /// To be documented. /// public static ImPlotItemPtr GetOrAddItem(ImPlotItemGroupPtr self, uint id) { ImPlotItemPtr ret = GetOrAddItemNative(self, id); return ret; } /// /// To be documented. /// public static ImPlotItemPtr GetOrAddItem(ref ImPlotItemGroup self, uint id) { fixed (ImPlotItemGroup* pself = &self) { ImPlotItemPtr ret = GetOrAddItemNative((ImPlotItemGroup*)pself, id); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* GetItemByIndexNative(ImPlotItemGroup* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[586])(self, i); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[586])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotItemPtr GetItemByIndex(ImPlotItemGroupPtr self, int i) { ImPlotItemPtr ret = GetItemByIndexNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotItemPtr GetItemByIndex(ref ImPlotItemGroup self, int i) { fixed (ImPlotItemGroup* pself = &self) { ImPlotItemPtr ret = GetItemByIndexNative((ImPlotItemGroup*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetItemIndexNative(ImPlotItemGroup* self, ImPlotItem* item) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[587])(self, item); #else return (int)((delegate* unmanaged[Cdecl])funcTable[587])((nint)self, (nint)item); #endif } /// /// To be documented. /// public static int GetItemIndex(ImPlotItemGroupPtr self, ImPlotItemPtr item) { int ret = GetItemIndexNative(self, item); return ret; } /// /// To be documented. /// public static int GetItemIndex(ref ImPlotItemGroup self, ImPlotItemPtr item) { fixed (ImPlotItemGroup* pself = &self) { int ret = GetItemIndexNative((ImPlotItemGroup*)pself, item); return ret; } } /// /// To be documented. /// public static int GetItemIndex(ImPlotItemGroupPtr self, ref ImPlotItem item) { fixed (ImPlotItem* pitem = &item) { int ret = GetItemIndexNative(self, (ImPlotItem*)pitem); return ret; } } /// /// To be documented. /// public static int GetItemIndex(ref ImPlotItemGroup self, ref ImPlotItem item) { fixed (ImPlotItemGroup* pself = &self) { fixed (ImPlotItem* pitem = &item) { int ret = GetItemIndexNative((ImPlotItemGroup*)pself, (ImPlotItem*)pitem); return ret; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetLegendCountNative(ImPlotItemGroup* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[588])(self); #else return (int)((delegate* unmanaged[Cdecl])funcTable[588])((nint)self); #endif } /// /// To be documented. /// public static int GetLegendCount(ImPlotItemGroupPtr self) { int ret = GetLegendCountNative(self); return ret; } /// /// To be documented. /// public static int GetLegendCount(ref ImPlotItemGroup self) { fixed (ImPlotItemGroup* pself = &self) { int ret = GetLegendCountNative((ImPlotItemGroup*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* GetLegendItemNative(ImPlotItemGroup* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[589])(self, i); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[589])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotItemPtr GetLegendItem(ImPlotItemGroupPtr self, int i) { ImPlotItemPtr ret = GetLegendItemNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotItemPtr GetLegendItem(ref ImPlotItemGroup self, int i) { fixed (ImPlotItemGroup* pself = &self) { ImPlotItemPtr ret = GetLegendItemNative((ImPlotItemGroup*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetLegendLabelNative(ImPlotItemGroup* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[590])(self, i); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[590])((nint)self, i); #endif } /// /// To be documented. /// public static byte* GetLegendLabel(ImPlotItemGroupPtr self, int i) { byte* ret = GetLegendLabelNative(self, i); return ret; } /// /// To be documented. /// public static string GetLegendLabelS(ImPlotItemGroupPtr self, int i) { string ret = Utils.DecodeStringUTF8(GetLegendLabelNative(self, i)); return ret; } /// /// To be documented. /// public static byte* GetLegendLabel(ref ImPlotItemGroup self, int i) { fixed (ImPlotItemGroup* pself = &self) { byte* ret = GetLegendLabelNative((ImPlotItemGroup*)pself, i); return ret; } } /// /// To be documented. /// public static string GetLegendLabelS(ref ImPlotItemGroup self, int i) { fixed (ImPlotItemGroup* pself = &self) { string ret = Utils.DecodeStringUTF8(GetLegendLabelNative((ImPlotItemGroup*)pself, i)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetNative(ImPlotItemGroup* 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 Reset(ImPlotItemGroupPtr self) { ResetNative(self); } /// /// To be documented. /// public static void Reset(ref ImPlotItemGroup self) { fixed (ImPlotItemGroup* pself = &self) { ResetNative((ImPlotItemGroup*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotPlot* ImPlotPlotNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[592])(); #else return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[592])(); #endif } /// /// To be documented. /// public static ImPlotPlotPtr ImPlotPlot() { ImPlotPlotPtr ret = ImPlotPlotNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImPlotPlot* 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 Destroy(ImPlotPlotPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { DestroyNative((ImPlotPlot*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsInputLockedNative(ImPlotPlot* 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 IsInputLocked(ImPlotPlotPtr self) { byte ret = IsInputLockedNative(self); return ret != 0; } /// /// To be documented. /// public static bool IsInputLocked(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { byte ret = IsInputLockedNative((ImPlotPlot*)pself); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearTextBufferNative(ImPlotPlot* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[595])(self); #else ((delegate* unmanaged[Cdecl])funcTable[595])((nint)self); #endif } /// /// To be documented. /// public static void ClearTextBuffer(ImPlotPlotPtr self) { ClearTextBufferNative(self); } /// /// To be documented. /// public static void ClearTextBuffer(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { ClearTextBufferNative((ImPlotPlot*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetTitleNative(ImPlotPlot* self, byte* title) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[596])(self, title); #else ((delegate* unmanaged[Cdecl])funcTable[596])((nint)self, (nint)title); #endif } /// /// To be documented. /// public static void SetTitle(ImPlotPlotPtr self, byte* title) { SetTitleNative(self, title); } /// /// To be documented. /// public static void SetTitle(ref ImPlotPlot self, byte* title) { fixed (ImPlotPlot* pself = &self) { SetTitleNative((ImPlotPlot*)pself, title); } } /// /// To be documented. /// public static void SetTitle(ImPlotPlotPtr self, ref byte title) { fixed (byte* ptitle = &title) { SetTitleNative(self, (byte*)ptitle); } } /// /// To be documented. /// public static void SetTitle(ImPlotPlotPtr self, ReadOnlySpan title) { fixed (byte* ptitle = title) { SetTitleNative(self, (byte*)ptitle); } } /// /// To be documented. /// public static void SetTitle(ImPlotPlotPtr self, string title) { byte* pStr0 = null; int pStrSize0 = 0; if (title != null) { pStrSize0 = Utils.GetByteCountUTF8(title); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetTitleNative(self, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void SetTitle(ref ImPlotPlot self, ref byte title) { fixed (ImPlotPlot* pself = &self) { fixed (byte* ptitle = &title) { SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); } } } /// /// To be documented. /// public static void SetTitle(ref ImPlotPlot self, ReadOnlySpan title) { fixed (ImPlotPlot* pself = &self) { fixed (byte* ptitle = title) { SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); } } } /// /// To be documented. /// public static void SetTitle(ref ImPlotPlot self, string title) { fixed (ImPlotPlot* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (title != null) { pStrSize0 = Utils.GetByteCountUTF8(title); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetTitleNative((ImPlotPlot*)pself, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte HasTitleNative(ImPlotPlot* 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 HasTitle(ImPlotPlotPtr self) { byte ret = HasTitleNative(self); return ret != 0; } /// /// To be documented. /// public static bool HasTitle(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { byte ret = HasTitleNative((ImPlotPlot*)pself); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetTitleNative(ImPlotPlot* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[598])(self); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[598])((nint)self); #endif } /// /// To be documented. /// public static byte* GetTitle(ImPlotPlotPtr self) { byte* ret = GetTitleNative(self); return ret; } /// /// To be documented. /// public static string GetTitleS(ImPlotPlotPtr self) { string ret = Utils.DecodeStringUTF8(GetTitleNative(self)); return ret; } /// /// To be documented. /// public static byte* GetTitle(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { byte* ret = GetTitleNative((ImPlotPlot*)pself); return ret; } } /// /// To be documented. /// public static string GetTitleS(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { string ret = Utils.DecodeStringUTF8(GetTitleNative((ImPlotPlot*)pself)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotAxis* XAxisNative(ImPlotPlot* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[599])(self, i); #else return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[599])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotAxisPtr XAxis(ImPlotPlotPtr self, int i) { ImPlotAxisPtr ret = XAxisNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotAxisPtr XAxis(ref ImPlotPlot self, int i) { fixed (ImPlotPlot* pself = &self) { ImPlotAxisPtr ret = XAxisNative((ImPlotPlot*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotAxis* ImPlotPlotXAxisConstNative(ImPlotPlot* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[600])(self, i); #else return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[600])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotAxisPtr ImPlotPlotXAxisConst(ImPlotPlotPtr self, int i) { ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotAxisPtr ImPlotPlotXAxisConst(ref ImPlotPlot self, int i) { fixed (ImPlotPlot* pself = &self) { ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative((ImPlotPlot*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotAxis* YAxisNative(ImPlotPlot* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[601])(self, i); #else return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[601])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotAxisPtr YAxis(ImPlotPlotPtr self, int i) { ImPlotAxisPtr ret = YAxisNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotAxisPtr YAxis(ref ImPlotPlot self, int i) { fixed (ImPlotPlot* pself = &self) { ImPlotAxisPtr ret = YAxisNative((ImPlotPlot*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotAxis* ImPlotPlotYAxisConstNative(ImPlotPlot* self, int i) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[602])(self, i); #else return (ImPlotAxis*)((delegate* unmanaged[Cdecl])funcTable[602])((nint)self, i); #endif } /// /// To be documented. /// public static ImPlotAxisPtr ImPlotPlotYAxisConst(ImPlotPlotPtr self, int i) { ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative(self, i); return ret; } /// /// To be documented. /// public static ImPlotAxisPtr ImPlotPlotYAxisConst(ref ImPlotPlot self, int i) { fixed (ImPlotPlot* pself = &self) { ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative((ImPlotPlot*)pself, i); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int EnabledAxesXNative(ImPlotPlot* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[603])(self); #else return (int)((delegate* unmanaged[Cdecl])funcTable[603])((nint)self); #endif } /// /// To be documented. /// public static int EnabledAxesX(ImPlotPlotPtr self) { int ret = EnabledAxesXNative(self); return ret; } /// /// To be documented. /// public static int EnabledAxesX(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { int ret = EnabledAxesXNative((ImPlotPlot*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int EnabledAxesYNative(ImPlotPlot* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[604])(self); #else return (int)((delegate* unmanaged[Cdecl])funcTable[604])((nint)self); #endif } /// /// To be documented. /// public static int EnabledAxesY(ImPlotPlotPtr self) { int ret = EnabledAxesYNative(self); return ret; } /// /// To be documented. /// public static int EnabledAxesY(ref ImPlotPlot self) { fixed (ImPlotPlot* pself = &self) { int ret = EnabledAxesYNative((ImPlotPlot*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetAxisLabelNative(ImPlotPlot* self, ImPlotAxis* axis, byte* label) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[605])(self, axis, label); #else ((delegate* unmanaged[Cdecl])funcTable[605])((nint)self, (nint)axis, (nint)label); #endif } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, byte* label) { SetAxisLabelNative(self, axis, label); } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, byte* label) { fixed (ImPlotPlot* pself = &self) { SetAxisLabelNative((ImPlotPlot*)pself, axis, label); } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, byte* label) { fixed (ImPlotAxis* paxis = &axis) { SetAxisLabelNative(self, (ImPlotAxis*)paxis, label); } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, byte* label) { fixed (ImPlotPlot* pself = &self) { fixed (ImPlotAxis* paxis = &axis) { SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, label); } } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ref byte label) { fixed (byte* plabel = &label) { SetAxisLabelNative(self, axis, (byte*)plabel); } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ReadOnlySpan label) { fixed (byte* plabel = label) { SetAxisLabelNative(self, axis, (byte*)plabel); } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetAxisLabelNative(self, axis, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ref byte label) { fixed (ImPlotPlot* pself = &self) { fixed (byte* plabel = &label) { SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); } } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ReadOnlySpan label) { fixed (ImPlotPlot* pself = &self) { fixed (byte* plabel = label) { SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); } } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, string label) { fixed (ImPlotPlot* pself = &self) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetAxisLabelNative((ImPlotPlot*)pself, axis, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ref byte label) { fixed (ImPlotAxis* paxis = &axis) { fixed (byte* plabel = &label) { SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); } } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ReadOnlySpan label) { fixed (ImPlotAxis* paxis = &axis) { fixed (byte* plabel = label) { SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); } } } /// /// To be documented. /// public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, string label) { fixed (ImPlotAxis* paxis = &axis) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetAxisLabelNative(self, (ImPlotAxis*)paxis, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ref byte label) { fixed (ImPlotPlot* pself = &self) { fixed (ImPlotAxis* paxis = &axis) { fixed (byte* plabel = &label) { SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); } } } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ReadOnlySpan label) { fixed (ImPlotPlot* pself = &self) { fixed (ImPlotAxis* paxis = &axis) { fixed (byte* plabel = label) { SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); } } } } /// /// To be documented. /// public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, string label) { fixed (ImPlotPlot* pself = &self) { fixed (ImPlotAxis* paxis = &axis) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetAxisLabelNative(ImPlotPlot* self, ImPlotAxis axis) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[606])(self, axis); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[606])((nint)self, axis); #endif } /// /// To be documented. /// public static byte* GetAxisLabel(ImPlotPlotPtr self, ImPlotAxis axis) { byte* ret = GetAxisLabelNative(self, axis); return ret; } /// /// To be documented. /// public static string GetAxisLabelS(ImPlotPlotPtr self, ImPlotAxis axis) { string ret = Utils.DecodeStringUTF8(GetAxisLabelNative(self, axis)); return ret; } /// /// To be documented. /// public static byte* GetAxisLabel(ref ImPlotPlot self, ImPlotAxis axis) { fixed (ImPlotPlot* pself = &self) { byte* ret = GetAxisLabelNative((ImPlotPlot*)pself, axis); return ret; } } /// /// To be documented. /// public static string GetAxisLabelS(ref ImPlotPlot self, ImPlotAxis axis) { fixed (ImPlotPlot* pself = &self) { string ret = Utils.DecodeStringUTF8(GetAxisLabelNative((ImPlotPlot*)pself, axis)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotSubplot* ImPlotSubplotNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[607])(); #else return (ImPlotSubplot*)((delegate* unmanaged[Cdecl])funcTable[607])(); #endif } /// /// To be documented. /// public static ImPlotSubplotPtr ImPlotSubplot() { ImPlotSubplotPtr ret = ImPlotSubplotNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImPlotSubplot* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[608])(self); #else ((delegate* unmanaged[Cdecl])funcTable[608])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImPlotSubplotPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImPlotSubplot self) { fixed (ImPlotSubplot* pself = &self) { DestroyNative((ImPlotSubplot*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotNextPlotData* ImPlotNextPlotDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[609])(); #else return (ImPlotNextPlotData*)((delegate* unmanaged[Cdecl])funcTable[609])(); #endif } /// /// To be documented. /// public static ImPlotNextPlotDataPtr ImPlotNextPlotData() { ImPlotNextPlotDataPtr ret = ImPlotNextPlotDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImPlotNextPlotData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[610])(self); #else ((delegate* unmanaged[Cdecl])funcTable[610])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImPlotNextPlotDataPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImPlotNextPlotData self) { fixed (ImPlotNextPlotData* pself = &self) { DestroyNative((ImPlotNextPlotData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetNative(ImPlotNextPlotData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[611])(self); #else ((delegate* unmanaged[Cdecl])funcTable[611])((nint)self); #endif } /// /// To be documented. /// public static void Reset(ImPlotNextPlotDataPtr self) { ResetNative(self); } /// /// To be documented. /// public static void Reset(ref ImPlotNextPlotData self) { fixed (ImPlotNextPlotData* pself = &self) { ResetNative((ImPlotNextPlotData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotNextItemData* ImPlotNextItemDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[612])(); #else return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[612])(); #endif } /// /// To be documented. /// public static ImPlotNextItemDataPtr ImPlotNextItemData() { ImPlotNextItemDataPtr ret = ImPlotNextItemDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(ImPlotNextItemData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[613])(self); #else ((delegate* unmanaged[Cdecl])funcTable[613])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(ImPlotNextItemDataPtr self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref ImPlotNextItemData self) { fixed (ImPlotNextItemData* pself = &self) { DestroyNative((ImPlotNextItemData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetNative(ImPlotNextItemData* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[614])(self); #else ((delegate* unmanaged[Cdecl])funcTable[614])((nint)self); #endif } /// /// To be documented. /// public static void Reset(ImPlotNextItemDataPtr self) { ResetNative(self); } /// /// To be documented. /// public static void Reset(ref ImPlotNextItemData self) { fixed (ImPlotNextItemData* pself = &self) { ResetNative((ImPlotNextItemData*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void InitializeNative(ImPlotContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[615])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[615])((nint)ctx); #endif } /// /// To be documented. /// public static void Initialize(ImPlotContextPtr ctx) { InitializeNative(ctx); } /// /// To be documented. /// public static void Initialize(ref ImPlotContext ctx) { fixed (ImPlotContext* pctx = &ctx) { InitializeNative((ImPlotContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetCtxForNextPlotNative(ImPlotContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[616])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[616])((nint)ctx); #endif } /// /// To be documented. /// public static void ResetCtxForNextPlot(ImPlotContextPtr ctx) { ResetCtxForNextPlotNative(ctx); } /// /// To be documented. /// public static void ResetCtxForNextPlot(ref ImPlotContext ctx) { fixed (ImPlotContext* pctx = &ctx) { ResetCtxForNextPlotNative((ImPlotContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetCtxForNextAlignedPlotsNative(ImPlotContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[617])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[617])((nint)ctx); #endif } /// /// To be documented. /// public static void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) { ResetCtxForNextAlignedPlotsNative(ctx); } /// /// To be documented. /// public static void ResetCtxForNextAlignedPlots(ref ImPlotContext ctx) { fixed (ImPlotContext* pctx = &ctx) { ResetCtxForNextAlignedPlotsNative((ImPlotContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetCtxForNextSubplotNative(ImPlotContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[618])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[618])((nint)ctx); #endif } /// /// To be documented. /// public static void ResetCtxForNextSubplot(ImPlotContextPtr ctx) { ResetCtxForNextSubplotNative(ctx); } /// /// To be documented. /// public static void ResetCtxForNextSubplot(ref ImPlotContext ctx) { fixed (ImPlotContext* pctx = &ctx) { ResetCtxForNextSubplotNative((ImPlotContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotPlot* GetPlotNative(byte* title) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[619])(title); #else return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[619])((nint)title); #endif } /// /// To be documented. /// public static ImPlotPlotPtr GetPlot(byte* title) { ImPlotPlotPtr ret = GetPlotNative(title); return ret; } /// /// To be documented. /// public static ImPlotPlotPtr GetPlot(ref byte title) { fixed (byte* ptitle = &title) { ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); return ret; } } /// /// To be documented. /// public static ImPlotPlotPtr GetPlot(ReadOnlySpan title) { fixed (byte* ptitle = title) { ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); return ret; } } /// /// To be documented. /// public static ImPlotPlotPtr GetPlot(string title) { byte* pStr0 = null; int pStrSize0 = 0; if (title != null) { pStrSize0 = Utils.GetByteCountUTF8(title); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotPlotPtr ret = GetPlotNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotPlot* GetCurrentPlotNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[620])(); #else return (ImPlotPlot*)((delegate* unmanaged[Cdecl])funcTable[620])(); #endif } /// /// To be documented. /// public static ImPlotPlotPtr GetCurrentPlot() { ImPlotPlotPtr ret = GetCurrentPlotNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BustPlotCacheNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[621])(); #else ((delegate* unmanaged[Cdecl])funcTable[621])(); #endif } /// /// To be documented. /// public static void BustPlotCache() { BustPlotCacheNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowPlotContextMenuNative(ImPlotPlot* plot) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[622])(plot); #else ((delegate* unmanaged[Cdecl])funcTable[622])((nint)plot); #endif } /// /// To be documented. /// public static void ShowPlotContextMenu(ImPlotPlotPtr plot) { ShowPlotContextMenuNative(plot); } /// /// To be documented. /// public static void ShowPlotContextMenu(ref ImPlotPlot plot) { fixed (ImPlotPlot* pplot = &plot) { ShowPlotContextMenuNative((ImPlotPlot*)pplot); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetupLockNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[623])(); #else ((delegate* unmanaged[Cdecl])funcTable[623])(); #endif } /// /// To be documented. /// public static void SetupLock() { SetupLockNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SubplotNextCellNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[624])(); #else ((delegate* unmanaged[Cdecl])funcTable[624])(); #endif } /// /// To be documented. /// public static void SubplotNextCell() { SubplotNextCellNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowSubplotsContextMenuNative(ImPlotSubplot* subplot) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[625])(subplot); #else ((delegate* unmanaged[Cdecl])funcTable[625])((nint)subplot); #endif } /// /// To be documented. /// public static void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) { ShowSubplotsContextMenuNative(subplot); } /// /// To be documented. /// public static void ShowSubplotsContextMenu(ref ImPlotSubplot subplot) { fixed (ImPlotSubplot* psubplot = &subplot) { ShowSubplotsContextMenuNative((ImPlotSubplot*)psubplot); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginItemNative(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[626])(labelId, flags, recolorFrom); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[626])((nint)labelId, flags, recolorFrom); #endif } /// /// To be documented. /// public static bool BeginItem(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { byte ret = BeginItemNative(labelId, flags, recolorFrom); return ret != 0; } /// /// To be documented. /// public static bool BeginItem(byte* labelId, ImPlotItemFlags flags) { byte ret = BeginItemNative(labelId, flags, (ImPlotCol)(-1)); return ret != 0; } /// /// To be documented. /// public static bool BeginItem(byte* labelId) { byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); return ret != 0; } /// /// To be documented. /// public static bool BeginItem(byte* labelId, ImPlotCol recolorFrom) { byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), recolorFrom); return ret != 0; } /// /// To be documented. /// public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { fixed (byte* plabelId = &labelId) { byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags) { fixed (byte* plabelId = &labelId) { byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ref byte labelId) { fixed (byte* plabelId = &labelId) { byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ref byte labelId, ImPlotCol recolorFrom) { fixed (byte* plabelId = &labelId) { byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { fixed (byte* plabelId = labelId) { byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ReadOnlySpan labelId, ImPlotItemFlags flags) { fixed (byte* plabelId = labelId) { byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ReadOnlySpan labelId) { fixed (byte* plabelId = labelId) { byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(ReadOnlySpan labelId, ImPlotCol recolorFrom) { fixed (byte* plabelId = labelId) { byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); return ret != 0; } } /// /// To be documented. /// public static bool BeginItem(string labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginItemNative(pStr0, flags, recolorFrom); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginItem(string labelId, ImPlotItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginItemNative(pStr0, flags, (ImPlotCol)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginItem(string labelId) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginItem(string labelId, ImPlotCol recolorFrom) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), recolorFrom); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndItemNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[627])(); #else ((delegate* unmanaged[Cdecl])funcTable[627])(); #endif } /// /// To be documented. /// public static void EndItem() { EndItemNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* RegisterOrGetItemNative(byte* labelId, ImPlotItemFlags flags, bool* justCreated) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[628])(labelId, flags, justCreated); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[628])((nint)labelId, flags, (nint)justCreated); #endif } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, bool* justCreated) { ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, justCreated); return ret; } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags) { ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)(((void*)0))); return ret; } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, bool* justCreated) { fixed (byte* plabelId = &labelId) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags) { fixed (byte* plabelId = &labelId) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, bool* justCreated) { fixed (byte* plabelId = labelId) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags) { fixed (byte* plabelId = labelId) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, bool* justCreated) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, justCreated); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, ref bool justCreated) { fixed (bool* pjustCreated = &justCreated) { ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)pjustCreated); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, ref bool justCreated) { fixed (byte* plabelId = &labelId) { fixed (bool* pjustCreated = &justCreated) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); return ret; } } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan labelId, ImPlotItemFlags flags, ref bool justCreated) { fixed (byte* plabelId = labelId) { fixed (bool* pjustCreated = &justCreated) { ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); return ret; } } } /// /// To be documented. /// public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, ref bool justCreated) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* pjustCreated = &justCreated) { ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)pjustCreated); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* GetItemNative(byte* labelId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[629])(labelId); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[629])((nint)labelId); #endif } /// /// To be documented. /// public static ImPlotItemPtr GetItem(byte* labelId) { ImPlotItemPtr ret = GetItemNative(labelId); return ret; } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ref byte labelId) { fixed (byte* plabelId = &labelId) { ImPlotItemPtr ret = GetItemNative((byte*)plabelId); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(ReadOnlySpan labelId) { fixed (byte* plabelId = labelId) { ImPlotItemPtr ret = GetItemNative((byte*)plabelId); return ret; } } /// /// To be documented. /// public static ImPlotItemPtr GetItem(string labelId) { byte* pStr0 = null; int pStrSize0 = 0; if (labelId != null) { pStrSize0 = Utils.GetByteCountUTF8(labelId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImPlotItemPtr ret = GetItemNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotItem* GetCurrentItemNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[630])(); #else return (ImPlotItem*)((delegate* unmanaged[Cdecl])funcTable[630])(); #endif } /// /// To be documented. /// public static ImPlotItemPtr GetCurrentItem() { ImPlotItemPtr ret = GetCurrentItemNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BustItemCacheNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[631])(); #else ((delegate* unmanaged[Cdecl])funcTable[631])(); #endif } /// /// To be documented. /// public static void BustItemCache() { BustItemCacheNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte AnyAxesInputLockedNative(ImPlotAxis* axes, int count) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[632])(axes, count); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[632])((nint)axes, count); #endif } /// /// To be documented. /// public static bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) { byte ret = AnyAxesInputLockedNative(axes, count); return ret != 0; } /// /// To be documented. /// public static bool AnyAxesInputLocked(ref ImPlotAxis axes, int count) { fixed (ImPlotAxis* paxes = &axes) { byte ret = AnyAxesInputLockedNative((ImPlotAxis*)paxes, count); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte AllAxesInputLockedNative(ImPlotAxis* axes, int count) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[633])(axes, count); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[633])((nint)axes, count); #endif } /// /// To be documented. /// public static bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) { byte ret = AllAxesInputLockedNative(axes, count); return ret != 0; } /// /// To be documented. /// public static bool AllAxesInputLocked(ref ImPlotAxis axes, int count) { fixed (ImPlotAxis* paxes = &axes) { byte ret = AllAxesInputLockedNative((ImPlotAxis*)paxes, count); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte AnyAxesHeldNative(ImPlotAxis* axes, int count) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[634])(axes, count); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[634])((nint)axes, count); #endif } /// /// To be documented. /// public static bool AnyAxesHeld(ImPlotAxisPtr axes, int count) { byte ret = AnyAxesHeldNative(axes, count); return ret != 0; } /// /// To be documented. /// public static bool AnyAxesHeld(ref ImPlotAxis axes, int count) { fixed (ImPlotAxis* paxes = &axes) { byte ret = AnyAxesHeldNative((ImPlotAxis*)paxes, count); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte AnyAxesHoveredNative(ImPlotAxis* axes, int count) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[635])(axes, count); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[635])((nint)axes, count); #endif } /// /// To be documented. /// public static bool AnyAxesHovered(ImPlotAxisPtr axes, int count) { byte ret = AnyAxesHoveredNative(axes, count); return ret != 0; } /// /// To be documented. /// public static bool AnyAxesHovered(ref ImPlotAxis axes, int count) { fixed (ImPlotAxis* paxes = &axes) { byte ret = AnyAxesHoveredNative((ImPlotAxis*)paxes, count); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte FitThisFrameNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[636])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[636])(); #endif } /// /// To be documented. /// public static bool FitThisFrame() { byte ret = FitThisFrameNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void FitPointXNative(double x) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[637])(x); #else ((delegate* unmanaged[Cdecl])funcTable[637])(x); #endif } /// /// To be documented. /// public static void FitPointX(double x) { FitPointXNative(x); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void FitPointYNative(double y) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[638])(y); #else ((delegate* unmanaged[Cdecl])funcTable[638])(y); #endif } /// /// To be documented. /// public static void FitPointY(double y) { FitPointYNative(y); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void FitPointNative(ImPlotPoint p) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[639])(p); #else ((delegate* unmanaged[Cdecl])funcTable[639])(p); #endif } /// /// To be documented. /// public static void FitPoint(ImPlotPoint p) { FitPointNative(p); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte RangesOverlapNative(ImPlotRange r1, ImPlotRange r2) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[640])(r1, r2); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[640])(r1, r2); #endif } /// /// To be documented. /// public static bool RangesOverlap(ImPlotRange r1, ImPlotRange r2) { byte ret = RangesOverlapNative(r1, r2); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowAxisContextMenuNative(ImPlotAxis* axis, ImPlotAxis* equalAxis, byte timeAllowed) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[641])(axis, equalAxis, timeAllowed); #else ((delegate* unmanaged[Cdecl])funcTable[641])((nint)axis, (nint)equalAxis, timeAllowed); #endif } /// /// To be documented. /// public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis, bool timeAllowed) { ShowAxisContextMenuNative(axis, equalAxis, timeAllowed ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis) { ShowAxisContextMenuNative(axis, equalAxis, (byte)(0)); } /// /// To be documented. /// public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis, bool timeAllowed) { fixed (ImPlotAxis* paxis = &axis) { ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, timeAllowed ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis) { fixed (ImPlotAxis* paxis = &axis) { ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, (byte)(0)); } } /// /// To be documented. /// public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis, bool timeAllowed) { fixed (ImPlotAxis* pequalAxis = &equalAxis) { ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis) { fixed (ImPlotAxis* pequalAxis = &equalAxis) { ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, (byte)(0)); } } /// /// To be documented. /// public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis, bool timeAllowed) { fixed (ImPlotAxis* paxis = &axis) { fixed (ImPlotAxis* pequalAxis = &equalAxis) { ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis) { fixed (ImPlotAxis* paxis = &axis) { fixed (ImPlotAxis* pequalAxis = &equalAxis) { ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, (byte)(0)); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetLocationPosNative(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[642])(pOut, outerRect, innerSize, location, pad); #else ((delegate* unmanaged[Cdecl])funcTable[642])((nint)pOut, outerRect, innerSize, location, pad); #endif } /// /// To be documented. /// public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location) { Vector2 ret; GetLocationPosNative(&ret, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); return ret; } /// /// To be documented. /// public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) { Vector2 ret; GetLocationPosNative(&ret, outerRect, innerSize, location, pad); return ret; } /// /// To be documented. /// public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) { GetLocationPosNative(pOut, outerRect, innerSize, location, pad); } /// /// To be documented. /// public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) { GetLocationPosNative(pOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); } /// /// To be documented. /// public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) { fixed (Vector2* ppOut = &pOut) { GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, pad); } } /// /// To be documented. /// public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) { fixed (Vector2* ppOut = &pOut) { GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CalcLegendSizeNative(Vector2* pOut, ImPlotItemGroup* items, Vector2 pad, Vector2 spacing, byte vertical) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[643])(pOut, items, pad, spacing, vertical); #else ((delegate* unmanaged[Cdecl])funcTable[643])((nint)pOut, (nint)items, pad, spacing, vertical); #endif } /// /// To be documented. /// public static Vector2 CalcLegendSize(ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) { Vector2 ret; CalcLegendSizeNative(&ret, items, pad, spacing, vertical ? (byte)1 : (byte)0); return ret; } /// /// To be documented. /// public static void CalcLegendSize(Vector2* pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) { CalcLegendSizeNative(pOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void CalcLegendSize(ref Vector2 pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) { fixed (Vector2* ppOut = &pOut) { CalcLegendSizeNative((Vector2*)ppOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static Vector2 CalcLegendSize(ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) { fixed (ImPlotItemGroup* pitems = &items) { Vector2 ret; CalcLegendSizeNative(&ret, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); return ret; } } /// /// To be documented. /// public static void CalcLegendSize(Vector2* pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) { fixed (ImPlotItemGroup* pitems = &items) { CalcLegendSizeNative(pOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void CalcLegendSize(ref Vector2 pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) { fixed (Vector2* ppOut = &pOut) { fixed (ImPlotItemGroup* pitems = &items) { CalcLegendSizeNative((Vector2*)ppOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ShowLegendEntriesNative(ImPlotItemGroup* items, ImRect legendBb, byte interactable, Vector2 pad, Vector2 spacing, byte vertical, ImDrawList* drawList) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[644])(items, legendBb, interactable, pad, spacing, vertical, drawList); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[644])((nint)items, legendBb, interactable, pad, spacing, vertical, (nint)drawList); #endif } /// /// To be documented. /// public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) { byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); return ret != 0; } /// /// To be documented. /// public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) { fixed (ImPlotItemGroup* pitems = &items) { byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); return ret != 0; } } /// /// To be documented. /// public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) { fixed (ImDrawList* pdrawList = &drawList) { byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); return ret != 0; } } /// /// To be documented. /// public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) { fixed (ImPlotItemGroup* pitems = &items) { fixed (ImDrawList* pdrawList = &drawList) { byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowAltLegendNative(byte* titleId, byte vertical, Vector2 size, byte interactable) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[645])(titleId, vertical, size, interactable); #else ((delegate* unmanaged[Cdecl])funcTable[645])((nint)titleId, vertical, size, interactable); #endif } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size, bool interactable) { ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size) { ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, bool vertical) { ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId) { ShowAltLegendNative(titleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, Vector2 size) { ShowAltLegendNative(titleId, (byte)(1), size, (byte)(1)); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, bool vertical, bool interactable) { ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void ShowAltLegend(byte* titleId, Vector2 size, bool interactable) { ShowAltLegendNative(titleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size, bool interactable) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, bool vertical) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, Vector2 size) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, bool vertical, bool interactable) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(ref byte titleId, Vector2 size, bool interactable) { fixed (byte* ptitleId = &titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size, bool interactable) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, Vector2 size) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, bool vertical, bool interactable) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(ReadOnlySpan titleId, Vector2 size, bool interactable) { fixed (byte* ptitleId = titleId) { ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, bool vertical, Vector2 size, bool interactable) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, bool vertical, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, bool vertical) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, (byte)(1), size, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, bool vertical, bool interactable) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void ShowAltLegend(string titleId, Vector2 size, bool interactable) { byte* pStr0 = null; int pStrSize0 = 0; if (titleId != null) { pStrSize0 = Utils.GetByteCountUTF8(titleId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ShowAltLegendNative(pStr0, (byte)(1), size, interactable ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ShowLegendContextMenuNative(ImPlotLegend* legend, byte visible) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[646])(legend, visible); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[646])((nint)legend, visible); #endif } /// /// To be documented. /// public static bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) { byte ret = ShowLegendContextMenuNative(legend, visible ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool ShowLegendContextMenu(ref ImPlotLegend legend, bool visible) { fixed (ImPlotLegend* plegend = &legend) { byte ret = ShowLegendContextMenuNative((ImPlotLegend*)plegend, visible ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LabelAxisValueNative(ImPlotAxis axis, double value, byte* buff, int size, byte round) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[647])(axis, value, buff, size, round); #else ((delegate* unmanaged[Cdecl])funcTable[647])(axis, value, (nint)buff, size, round); #endif } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size, bool round) { LabelAxisValueNative(axis, value, buff, size, round ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size) { LabelAxisValueNative(axis, value, buff, size, (byte)(0)); } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size, bool round) { fixed (byte* pbuff = &buff) { LabelAxisValueNative(axis, value, (byte*)pbuff, size, round ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size) { fixed (byte* pbuff = &buff) { LabelAxisValueNative(axis, value, (byte*)pbuff, size, (byte)(0)); } } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size, bool round) { byte* pStr0 = null; int pStrSize0 = 0; if (buff != null) { pStrSize0 = Utils.GetByteCountUTF8(buff); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelAxisValueNative(axis, value, pStr0, size, round ? (byte)1 : (byte)0); buff = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size) { byte* pStr0 = null; int pStrSize0 = 0; if (buff != null) { pStrSize0 = Utils.GetByteCountUTF8(buff); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LabelAxisValueNative(axis, value, pStr0, size, (byte)(0)); buff = Utils.DecodeStringUTF8(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImPlotNextItemData* GetItemDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[648])(); #else return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl])funcTable[648])(); #endif } /// /// To be documented. /// public static ImPlotNextItemDataPtr GetItemData() { ImPlotNextItemDataPtr ret = GetItemDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsColorAutoNative(Vector4 col) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[649])(col); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[649])(col); #endif } /// /// To be documented. /// public static bool IsColorAuto(Vector4 col) { byte ret = IsColorAutoNative(col); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsColorAutoNative(ImPlotCol idx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[650])(idx); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[650])(idx); #endif } /// /// To be documented. /// public static bool IsColorAuto(ImPlotCol idx) { byte ret = IsColorAutoNative(idx); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetAutoColorNative(Vector4* pOut, ImPlotCol idx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[651])(pOut, idx); #else ((delegate* unmanaged[Cdecl])funcTable[651])((nint)pOut, idx); #endif } /// /// To be documented. /// public static Vector4 GetAutoColor(ImPlotCol idx) { Vector4 ret; GetAutoColorNative(&ret, idx); return ret; } /// /// To be documented. /// public static void GetAutoColor(Vector4* pOut, ImPlotCol idx) { GetAutoColorNative(pOut, idx); } /// /// To be documented. /// public static void GetAutoColor(ref Vector4 pOut, ImPlotCol idx) { fixed (Vector4* ppOut = &pOut) { GetAutoColorNative((Vector4*)ppOut, idx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetStyleColorVec4Native(Vector4* pOut, ImPlotCol idx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[652])(pOut, idx); #else ((delegate* unmanaged[Cdecl])funcTable[652])((nint)pOut, idx); #endif } /// /// To be documented. /// public static Vector4 GetStyleColorVec4(ImPlotCol idx) { Vector4 ret; GetStyleColorVec4Native(&ret, idx); return ret; } /// /// To be documented. /// public static void GetStyleColorVec4(Vector4* pOut, ImPlotCol idx) { GetStyleColorVec4Native(pOut, idx); } /// /// To be documented. /// public static void GetStyleColorVec4(ref Vector4 pOut, ImPlotCol idx) { fixed (Vector4* ppOut = &pOut) { GetStyleColorVec4Native((Vector4*)ppOut, idx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetStyleColorU32Native(ImPlotCol idx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[653])(idx); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[653])(idx); #endif } /// /// To be documented. /// public static uint GetStyleColorU32(ImPlotCol idx) { uint ret = GetStyleColorU32Native(idx); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddTextVerticalNative(ImDrawList* drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[654])(drawList, pos, col, textBegin, textEnd); #else ((delegate* unmanaged[Cdecl])funcTable[654])((nint)drawList, pos, col, (nint)textBegin, (nint)textEnd); #endif } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { AddTextVerticalNative(drawList, pos, col, textBegin, textEnd); } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin) { AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)(((void*)0))); } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, textEnd); } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin) { fixed (ImDrawList* pdrawList = &drawList) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { fixed (byte* ptextBegin = &textBegin) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin) { fixed (byte* ptextBegin = &textBegin) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) { fixed (byte* ptextBegin = textBegin) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) { fixed (byte* ptextBegin = textBegin) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative(drawList, pos, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative(drawList, pos, col, textBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } AddTextVerticalNative(drawList, pos, col, pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) { fixed (byte* ptextBegin = &textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) { fixed (byte* ptextBegin = textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ReadOnlySpan textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, string textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, ref byte textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan textBegin, string textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddTextCenteredNative(ImDrawList* drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[655])(drawList, topCenter, col, textBegin, textEnd); #else ((delegate* unmanaged[Cdecl])funcTable[655])((nint)drawList, topCenter, col, (nint)textBegin, (nint)textEnd); #endif } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) { AddTextCenteredNative(drawList, topCenter, col, textBegin, textEnd); } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin) { AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)(((void*)0))); } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, textEnd); } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin) { fixed (ImDrawList* pdrawList = &drawList) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) { fixed (byte* ptextBegin = &textBegin) { AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin) { fixed (byte* ptextBegin = &textBegin) { AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) { fixed (byte* ptextBegin = textBegin) { AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) { fixed (byte* ptextBegin = textBegin) { AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextCenteredNative(drawList, topCenter, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); } } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = &textBegin) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); } } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan textBegin) { fixed (ImDrawList* pdrawList = &drawList) { fixed (byte* ptextBegin = textBegin) { AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); } } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin) { fixed (ImDrawList* pdrawList = &drawList) { byte* pStr0 = null; int pStrSize0 = 0; if (textBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)(((void*)0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); } } /// /// To be documented. /// public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } AddTextCenteredNative(drawList, topCenter, col, textBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } }