Dalamud/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs
2025-04-06 21:08:34 +02:00

5031 lines
120 KiB
C#

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