// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGui { /// /// To be documented. /// public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (format != null) { pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, string format) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (format != null) { pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (format != null) { pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(ReadOnlySpan label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (format != null) { pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = &format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan format, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pformat = format) { byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ColorEdit3Native(byte* label, float* col, ImGuiColorEditFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[201])(label, col, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[201])((nint)label, (nint)col, flags); #endif } /// /// To be documented. /// public static bool ColorEdit3(byte* label, float* col, ImGuiColorEditFlags flags) { byte ret = ColorEdit3Native(label, col, flags); return ret != 0; } /// /// To be documented. /// public static bool ColorEdit3(byte* label, float* col) { byte ret = ColorEdit3Native(label, col, (ImGuiColorEditFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool ColorEdit3(ref byte label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { byte ret = ColorEdit3Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(ref byte label, float* col) { fixed (byte* plabel = &label) { byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { byte ret = ColorEdit3Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, float* col) { fixed (byte* plabel = label) { byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(string label, float* col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorEdit3Native(pStr0, col, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorEdit3(string label, float* col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorEdit3Native(pStr0, col, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ref float col, ImGuiColorEditFlags flags) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ref float col) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (float* pcol = col) { byte ret = ColorEdit3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ReadOnlySpan col) { fixed (float* pcol = col) { byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) { fixed (Vector3* pcol = &col) { byte ret = ColorEdit3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(byte* label, ref Vector3 col) { fixed (Vector3* pcol = &col) { byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(ref byte label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(ref byte label, ref float col) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, ReadOnlySpan col) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(string label, ref Vector3 col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector3* pcol = &col) { byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(string label, ref Vector3 col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector3* pcol = &col) { byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(ReadOnlySpan label, ref float col) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit3(string label, ref float col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit3(string label, ref float col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ColorEdit4Native(byte* label, float* col, ImGuiColorEditFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[202])(label, col, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[202])((nint)label, (nint)col, flags); #endif } /// /// To be documented. /// public static bool ColorEdit4(byte* label, float* col, ImGuiColorEditFlags flags) { byte ret = ColorEdit4Native(label, col, flags); return ret != 0; } /// /// To be documented. /// public static bool ColorEdit4(byte* label, float* col) { byte ret = ColorEdit4Native(label, col, (ImGuiColorEditFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool ColorEdit4(ref byte label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { byte ret = ColorEdit4Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(ref byte label, float* col) { fixed (byte* plabel = &label) { byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { byte ret = ColorEdit4Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, float* col) { fixed (byte* plabel = label) { byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(string label, float* col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorEdit4Native(pStr0, col, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorEdit4(string label, float* col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorEdit4Native(pStr0, col, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ref float col, ImGuiColorEditFlags flags) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ref float col) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (float* pcol = col) { byte ret = ColorEdit4Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ReadOnlySpan col) { fixed (float* pcol = col) { byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) { fixed (Vector4* pcol = &col) { byte ret = ColorEdit4Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(byte* label, ref Vector4 col) { fixed (Vector4* pcol = &col) { byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(ref byte label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(ref byte label, ref float col) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, ReadOnlySpan col) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(string label, ref Vector4 col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(string label, ref Vector4 col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(ReadOnlySpan label, ref float col) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorEdit4(string label, ref float col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorEdit4(string label, ref float col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ColorPicker3Native(byte* label, float* col, ImGuiColorEditFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[203])(label, col, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[203])((nint)label, (nint)col, flags); #endif } /// /// To be documented. /// public static bool ColorPicker3(byte* label, float* col, ImGuiColorEditFlags flags) { byte ret = ColorPicker3Native(label, col, flags); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker3(byte* label, float* col) { byte ret = ColorPicker3Native(label, col, (ImGuiColorEditFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker3(ref byte label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { byte ret = ColorPicker3Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(ref byte label, float* col) { fixed (byte* plabel = &label) { byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { byte ret = ColorPicker3Native((byte*)plabel, col, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, float* col) { fixed (byte* plabel = label) { byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(string label, float* col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker3Native(pStr0, col, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker3(string label, float* col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker3Native(pStr0, col, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ref float col, ImGuiColorEditFlags flags) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ref float col) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (float* pcol = col) { byte ret = ColorPicker3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ReadOnlySpan col) { fixed (float* pcol = col) { byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) { fixed (Vector3* pcol = &col) { byte ret = ColorPicker3Native(label, (float*)pcol, flags); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(byte* label, ref Vector3 col) { fixed (Vector3* pcol = &col) { byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(ref byte label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(ref byte label, ref float col) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, ReadOnlySpan col) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(string label, ref Vector3 col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector3* pcol = &col) { byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(string label, ref Vector3 col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector3* pcol = &col) { byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(ReadOnlySpan label, ref float col) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker3(string label, ref float col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker3(string label, ref float col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ColorPicker4Native(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[204])(label, col, flags, refCol); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[204])((nint)label, (nint)col, flags, (nint)refCol); #endif } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) { byte ret = ColorPicker4Native(label, col, flags, refCol); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags) { byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col) { byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col, float* refCol) { byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, float* refCol) { fixed (byte* plabel = &label) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col) { fixed (byte* plabel = &label) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col, float* refCol) { fixed (byte* plabel = &label) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags, float* refCol) { fixed (byte* plabel = label) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col) { fixed (byte* plabel = label) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col, float* refCol) { fixed (byte* plabel = label) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker4Native(pStr0, col, flags, refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker4Native(pStr0, col, flags, (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, float* refCol) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col, float* refCol) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags, float* refCol) { fixed (float* pcol = col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (float* pcol = col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col) { fixed (float* pcol = col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col, float* refCol) { fixed (float* pcol = col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) { fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) { fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col) { fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col, float* refCol) { fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, float* refCol) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col, float* refCol) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags, float* refCol) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, float* refCol) { fixed (byte* plabel = label) { fixed (float* pcol = col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags, float* refCol) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col, float* refCol) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col, float* refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, ref float refCol) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, float* col, ref float refCol) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, ref float refCol) { fixed (byte* plabel = &label) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, float* col, ref float refCol) { fixed (byte* plabel = &label) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col, ImGuiColorEditFlags flags, ref float refCol) { fixed (byte* plabel = label) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, float* col, ref float refCol) { fixed (byte* plabel = label) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, col, flags, (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(string label, float* col, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, ref float refCol) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref float col, ref float refCol) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col, ImGuiColorEditFlags flags, ref float refCol) { fixed (float* pcol = col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ReadOnlySpan col, ref float refCol) { fixed (float* pcol = col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) { fixed (Vector4* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(byte* label, ref Vector4 col, ref float refCol) { fixed (Vector4* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, ref float refCol) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(ref byte label, ref float col, ref float refCol) { fixed (byte* plabel = &label) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ImGuiColorEditFlags flags, ref float refCol) { fixed (byte* plabel = label) { fixed (float* pcol = col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ReadOnlySpan col, ref float refCol) { fixed (byte* plabel = label) { fixed (float* pcol = col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref Vector4 col, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (Vector4* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col, ImGuiColorEditFlags flags, ref float refCol) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(ReadOnlySpan label, ref float col, ref float refCol) { fixed (byte* plabel = label) { fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); return ret != 0; } } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool ColorPicker4(string label, ref float col, ref float refCol) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (float* pcol = &col) { fixed (float* prefCol = &refCol) { byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ColorButtonNative(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[205])(descId, col, flags, size); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[205])((nint)descId, col, flags, size); #endif } /// /// To be documented. /// public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) { byte ret = ColorButtonNative(descId, col, flags, size); return ret != 0; } /// /// To be documented. /// public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags) { byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); return ret != 0; } /// /// To be documented. /// public static bool ColorButton(byte* descId, Vector4 col) { byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); return ret != 0; } /// /// To be documented. /// public static bool ColorButton(byte* descId, Vector4 col, Vector2 size) { byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), size); return ret != 0; } /// /// To be documented. /// public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) { fixed (byte* pdescId = &descId) { byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags) { fixed (byte* pdescId = &descId) { byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ref byte descId, Vector4 col) { fixed (byte* pdescId = &descId) { byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ref byte descId, Vector4 col, Vector2 size) { fixed (byte* pdescId = &descId) { byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ReadOnlySpan descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) { fixed (byte* pdescId = descId) { byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ReadOnlySpan descId, Vector4 col, ImGuiColorEditFlags flags) { fixed (byte* pdescId = descId) { byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ReadOnlySpan descId, Vector4 col) { fixed (byte* pdescId = descId) { byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(ReadOnlySpan descId, Vector4 col, Vector2 size) { fixed (byte* pdescId = descId) { byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); return ret != 0; } } /// /// To be documented. /// public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (descId != null) { pStrSize0 = Utils.GetByteCountUTF8(descId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorButtonNative(pStr0, col, flags, size); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (descId != null) { pStrSize0 = Utils.GetByteCountUTF8(descId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorButtonNative(pStr0, col, flags, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorButton(string descId, Vector4 col) { byte* pStr0 = null; int pStrSize0 = 0; if (descId != null) { pStrSize0 = Utils.GetByteCountUTF8(descId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool ColorButton(string descId, Vector4 col, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (descId != null) { pStrSize0 = Utils.GetByteCountUTF8(descId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), size); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetColorEditOptionsNative(ImGuiColorEditFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[206])(flags); #else ((delegate* unmanaged[Cdecl])funcTable[206])(flags); #endif } /// /// To be documented. /// public static void SetColorEditOptions(ImGuiColorEditFlags flags) { SetColorEditOptionsNative(flags); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeNative(byte* label) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[207])(label); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[207])((nint)label); #endif } /// /// To be documented. /// public static bool TreeNode(byte* label) { byte ret = TreeNodeNative(label); return ret != 0; } /// /// To be documented. /// public static bool TreeNode(ref byte label) { fixed (byte* plabel = &label) { byte ret = TreeNodeNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = TreeNodeNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeNative(byte* strId, byte* fmt) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[208])(strId, fmt); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[208])((nint)strId, (nint)fmt); #endif } /// /// To be documented. /// public static bool TreeNode(byte* strId, byte* fmt) { byte ret = TreeNodeNative(strId, fmt); return ret != 0; } /// /// To be documented. /// public static bool TreeNode(ref byte strId, byte* fmt) { fixed (byte* pstrId = &strId) { byte ret = TreeNodeNative((byte*)pstrId, fmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(ReadOnlySpan strId, byte* fmt) { fixed (byte* pstrId = strId) { byte ret = TreeNodeNative((byte*)pstrId, fmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(string strId, byte* fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative(pStr0, fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNode(byte* strId, ref byte fmt) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeNative(strId, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(byte* strId, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeNative(strId, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(byte* strId, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative(strId, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNode(ref byte strId, ref byte fmt) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNode(ReadOnlySpan strId, ReadOnlySpan fmt) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNode(string strId, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = TreeNodeNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNode(ref byte strId, ReadOnlySpan fmt) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNode(ref byte strId, string fmt) { fixed (byte* pstrId = &strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative((byte*)pstrId, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(ReadOnlySpan strId, ref byte fmt) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNode(ReadOnlySpan strId, string fmt) { fixed (byte* pstrId = strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative((byte*)pstrId, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(string strId, ref byte fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = &fmt) { byte ret = TreeNodeNative(pStr0, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(string strId, ReadOnlySpan fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = fmt) { byte ret = TreeNodeNative(pStr0, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeNative(void* ptrId, byte* fmt) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[209])(ptrId, fmt); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[209])((nint)ptrId, (nint)fmt); #endif } /// /// To be documented. /// public static bool TreeNode(void* ptrId, byte* fmt) { byte ret = TreeNodeNative(ptrId, fmt); return ret != 0; } /// /// To be documented. /// public static bool TreeNode(void* ptrId, ref byte fmt) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeNative(ptrId, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(void* ptrId, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeNative(ptrId, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNode(void* ptrId, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeNative(ptrId, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeVNative(byte* strId, byte* fmt, nuint args) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[210])(strId, fmt, args); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[210])((nint)strId, (nint)fmt, args); #endif } /// /// To be documented. /// public static bool TreeNodeV(byte* strId, byte* fmt, nuint args) { byte ret = TreeNodeVNative(strId, fmt, args); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeV(ref byte strId, byte* fmt, nuint args) { fixed (byte* pstrId = &strId) { byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(ReadOnlySpan strId, byte* fmt, nuint args) { fixed (byte* pstrId = strId) { byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(string strId, byte* fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeVNative(pStr0, fmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeV(byte* strId, ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(byte* strId, ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(byte* strId, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeVNative(strId, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeV(ref byte strId, ref byte fmt, nuint args) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeV(ReadOnlySpan strId, ReadOnlySpan fmt, nuint args) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeV(string strId, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = TreeNodeVNative(pStr0, pStr1, args); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeV(ref byte strId, ReadOnlySpan fmt, nuint args) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeV(ref byte strId, string fmt, nuint args) { fixed (byte* pstrId = &strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(ReadOnlySpan strId, ref byte fmt, nuint args) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeV(ReadOnlySpan strId, string fmt, nuint args) { fixed (byte* pstrId = strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(string strId, ref byte fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = &fmt) { byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(string strId, ReadOnlySpan fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = fmt) { byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[211])(ptrId, fmt, args); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[211])((nint)ptrId, (nint)fmt, args); #endif } /// /// To be documented. /// public static bool TreeNodeV(void* ptrId, byte* fmt, nuint args) { byte ret = TreeNodeVNative(ptrId, fmt, args); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeV(void* ptrId, ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(void* ptrId, ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeV(void* ptrId, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeVNative(ptrId, pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeExNative(byte* label, ImGuiTreeNodeFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[212])(label, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[212])((nint)label, flags); #endif } /// /// To be documented. /// public static bool TreeNodeEx(byte* label, ImGuiTreeNodeFlags flags) { byte ret = TreeNodeExNative(label, flags); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(byte* label) { byte ret = TreeNodeExNative(label, (ImGuiTreeNodeFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(ref byte label, ImGuiTreeNodeFlags flags) { fixed (byte* plabel = &label) { byte ret = TreeNodeExNative((byte*)plabel, flags); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(ref byte label) { fixed (byte* plabel = &label) { byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan label, ImGuiTreeNodeFlags flags) { fixed (byte* plabel = label) { byte ret = TreeNodeExNative((byte*)plabel, flags); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(string label, ImGuiTreeNodeFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative(pStr0, (ImGuiTreeNodeFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeExNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[213])(strId, flags, fmt); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[213])((nint)strId, flags, (nint)fmt); #endif } /// /// To be documented. /// public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) { byte ret = TreeNodeExNative(strId, flags, fmt); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, byte* fmt) { fixed (byte* pstrId = &strId) { byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, byte* fmt) { fixed (byte* pstrId = strId) { byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, byte* fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative(pStr0, flags, fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ref byte fmt) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative(strId, flags, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ref byte fmt) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, 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(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = TreeNodeExNative(pStr0, flags, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) { fixed (byte* pstrId = &strId) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, string fmt) { fixed (byte* pstrId = &strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, ref byte fmt) { fixed (byte* pstrId = strId) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); return ret != 0; } } } /// /// To be documented. /// public static bool TreeNodeEx(ReadOnlySpan strId, ImGuiTreeNodeFlags flags, string fmt) { fixed (byte* pstrId = strId) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ref byte fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = &fmt) { byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pfmt = fmt) { byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TreeNodeExNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[214])(ptrId, flags, fmt); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[214])((nint)ptrId, flags, (nint)fmt); #endif } /// /// To be documented. /// public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) { byte ret = TreeNodeExNative(ptrId, flags, fmt); return ret != 0; } /// /// To be documented. /// public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ref byte fmt) { fixed (byte* pfmt = &fmt) { byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); return ret != 0; } } /// /// To be documented. /// public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = TreeNodeExNative(ptrId, flags, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } }