Dalamud/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs
2025-07-20 01:24:17 +02:00

5043 lines
129 KiB
C#
Generated

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