// ------------------------------------------------------------------------------ // // 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. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte InputTextNative(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1265])(label, buf, bufSize, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1265])((nint)label, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); #endif } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextNative(label, buf, bufSize, flags, callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextNative(label, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) { byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, void* userData) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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 = InputTextNative(pStr0, buf, bufSize, flags, callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, 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; } byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextNative(label, buf, bufSize, flags, callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextNative(label, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, void* userData) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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 = InputTextNative(pStr0, buf, bufSize, flags, callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, 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; } byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { 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 = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { fixed (byte* pbuf = &buf) { byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } } } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { 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* pStr1 = null; int pStrSize1 = 0; if (buf != null) { pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr1); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(ReadOnlySpan label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (buf != null) { pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (ret != 0) { buf = Utils.DecodeStringUTF8(pStr0); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) { 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* pbuf = &buf) { byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte InputTextMultilineNative(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl], void*, byte>)funcTable[1266])(label, buf, bufSize, size, flags, (delegate*)Utils.GetFunctionPointerForDelegate(callback), userData); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1266])((nint)label, (nint)buf, bufSize, size, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); #endif } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(byte* label, byte* buf, ulong bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); return ret != 0; } /// /// To be documented. /// public static bool InputTextMultiline(ref byte label, byte* buf, ulong bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) { fixed (byte* plabel = &label) { byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); return ret != 0; } } } }