// ------------------------------------------------------------------------------ // // 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 MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[244])(label, shortcut, selected, enabled); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[244])((nint)label, (nint)shortcut, selected, enabled); #endif } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, bool selected, bool enabled) { byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, bool selected) { byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut) { byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label) { byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, bool selected) { byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, bool selected, bool enabled) { byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, bool selected) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, bool selected) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool selected) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, bool selected) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, bool selected, bool enabled) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, bool selected, bool enabled) { 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 = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, bool selected) { 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 = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut) { 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 = MenuItemNative(pStr0, shortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(pStr0, (byte*)(default), (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, bool selected) { 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 = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, bool selected, bool enabled) { 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 = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, bool selected, bool enabled) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, bool selected) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool selected) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, bool selected) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, bool selected, bool enabled) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, bool selected) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = MenuItemNative(pStr0, pStr1, (byte)(0), (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, bool selected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, bool selected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, bool selected, bool enabled) { 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* pshortcut = &shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, bool selected) { 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* pshortcut = &shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut) { 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* pshortcut = &shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, bool selected, bool enabled) { 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* pshortcut = shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, bool selected) { 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* pshortcut = shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut) { 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* pshortcut = shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte MenuItemNative(byte* label, byte* shortcut, bool* pSelected, byte enabled) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[245])(label, shortcut, pSelected, enabled); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[245])((nint)label, (nint)shortcut, (nint)pSelected, enabled); #endif } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected, bool enabled) { byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected) { byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected) { fixed (byte* plabel = &label) { byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, bool* pSelected) { fixed (byte* plabel = label) { byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, bool* pSelected, bool enabled) { 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 = MenuItemNative(pStr0, shortcut, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, bool* pSelected) { 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 = MenuItemNative(pStr0, shortcut, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected, bool enabled) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, bool* pSelected) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, bool* pSelected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, bool* pSelected) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative(label, pStr0, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, bool* pSelected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, bool* pSelected, bool enabled) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = MenuItemNative(pStr0, pStr1, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, bool* pSelected) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte ret = MenuItemNative(pStr0, pStr1, pSelected, (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, bool* pSelected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, bool* pSelected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, bool* pSelected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, bool* pSelected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, bool* pSelected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, bool* pSelected, bool enabled) { 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* pshortcut = &shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, bool* pSelected) { 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* pshortcut = &shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, bool* pSelected, bool enabled) { 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* pshortcut = shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, bool* pSelected) { 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* pshortcut = shortcut) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected, bool enabled) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = &label) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected) { fixed (byte* plabel = &label) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = label) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, byte* shortcut, ref bool pSelected) { fixed (byte* plabel = label) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, ref bool pSelected, bool enabled) { 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 (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, byte* shortcut, ref bool pSelected) { 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 (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected, bool enabled) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(byte* label, ReadOnlySpan shortcut, ref bool pSelected) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, ref bool pSelected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(byte* label, string shortcut, ref bool pSelected) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ReadOnlySpan shortcut, ref bool pSelected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, ref bool pSelected, bool enabled) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(string label, string shortcut, ref bool pSelected) { 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 (shortcut != null) { pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, ReadOnlySpan shortcut, ref bool pSelected) { fixed (byte* plabel = &label) { fixed (byte* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, ref byte shortcut, ref bool pSelected) { fixed (byte* plabel = label) { fixed (byte* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, ref bool pSelected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(ReadOnlySpan label, string shortcut, ref bool pSelected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (shortcut != null) { pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected, bool enabled) { 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* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected) { 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* pshortcut = &shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, ref bool pSelected, bool enabled) { 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* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItem(string label, ReadOnlySpan shortcut, ref bool pSelected) { 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* pshortcut = shortcut) { fixed (bool* ppSelected = &pSelected) { byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginTooltipNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[246])(); #else ((delegate* unmanaged[Cdecl])funcTable[246])(); #endif } /// /// To be documented. /// public static void BeginTooltip() { BeginTooltipNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndTooltipNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[247])(); #else ((delegate* unmanaged[Cdecl])funcTable[247])(); #endif } /// /// To be documented. /// public static void EndTooltip() { EndTooltipNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetTooltipNative(byte* fmt) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[248])(fmt); #else ((delegate* unmanaged[Cdecl])funcTable[248])((nint)fmt); #endif } /// /// To be documented. /// public static void SetTooltip(byte* fmt) { SetTooltipNative(fmt); } /// /// To be documented. /// public static void SetTooltip(ref byte fmt) { fixed (byte* pfmt = &fmt) { SetTooltipNative((byte*)pfmt); } } /// /// To be documented. /// public static void SetTooltip(ReadOnlySpan fmt) { fixed (byte* pfmt = fmt) { SetTooltipNative((byte*)pfmt); } } /// /// To be documented. /// public static void SetTooltip(string fmt) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetTooltipNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetTooltipVNative(byte* fmt, nuint args) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[249])(fmt, args); #else ((delegate* unmanaged[Cdecl])funcTable[249])((nint)fmt, args); #endif } /// /// To be documented. /// public static void SetTooltipV(byte* fmt, nuint args) { SetTooltipVNative(fmt, args); } /// /// To be documented. /// public static void SetTooltipV(ref byte fmt, nuint args) { fixed (byte* pfmt = &fmt) { SetTooltipVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void SetTooltipV(ReadOnlySpan fmt, nuint args) { fixed (byte* pfmt = fmt) { SetTooltipVNative((byte*)pfmt, args); } } /// /// To be documented. /// public static void SetTooltipV(string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; if (fmt != null) { pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetTooltipVNative(pStr0, args); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginPopupNative(byte* strId, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[250])(strId, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[250])((nint)strId, flags); #endif } /// /// To be documented. /// public static bool BeginPopup(byte* strId, ImGuiWindowFlags flags) { byte ret = BeginPopupNative(strId, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopup(byte* strId) { byte ret = BeginPopupNative(strId, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopup(ref byte strId, ImGuiWindowFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopup(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopup(ReadOnlySpan strId, ImGuiWindowFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginPopupNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopup(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopup(string strId, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopup(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupNative(pStr0, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginPopupModalNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[251])(name, pOpen, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[251])((nint)name, (nint)pOpen, flags); #endif } /// /// To be documented. /// public static bool BeginPopupModal(byte* name, bool* pOpen, ImGuiWindowFlags flags) { byte ret = BeginPopupModalNative(name, pOpen, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(byte* name, bool* pOpen) { byte ret = BeginPopupModalNative(name, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(byte* name) { byte ret = BeginPopupModalNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(byte* name, ImGuiWindowFlags flags) { byte ret = BeginPopupModalNative(name, (bool*)(default), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name, bool* pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name, bool* pOpen) { fixed (byte* pname = &name) { byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name) { fixed (byte* pname = &name) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name, bool* pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = name) { byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name, bool* pOpen) { fixed (byte* pname = name) { byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name) { fixed (byte* pname = name) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name, ImGuiWindowFlags flags) { fixed (byte* pname = name) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(string name, bool* pOpen, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupModalNative(pStr0, pOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(string name, bool* pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupModalNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupModalNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(string name, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupModalNative(pStr0, (bool*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupModal(byte* name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative(name, (bool*)ppOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(byte* name, ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginPopupModal(ref byte name, ref bool pOpen) { fixed (byte* pname = &name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool BeginPopupModal(ReadOnlySpan name, ref bool pOpen) { fixed (byte* pname = name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool BeginPopupModal(string name, ref bool pOpen, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupModal(string name, ref bool pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndPopupNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[252])(); #else ((delegate* unmanaged[Cdecl])funcTable[252])(); #endif } /// /// To be documented. /// public static void EndPopup() { EndPopupNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void OpenPopupNative(byte* strId, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[253])(strId, popupFlags); #else ((delegate* unmanaged[Cdecl])funcTable[253])((nint)strId, popupFlags); #endif } /// /// To be documented. /// public static void OpenPopup(byte* strId, ImGuiPopupFlags popupFlags) { OpenPopupNative(strId, popupFlags); } /// /// To be documented. /// public static void OpenPopup(byte* strId) { OpenPopupNative(strId, (ImGuiPopupFlags)(0)); } /// /// To be documented. /// public static void OpenPopup(ref byte strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = &strId) { OpenPopupNative((byte*)pstrId, popupFlags); } } /// /// To be documented. /// public static void OpenPopup(ref byte strId) { fixed (byte* pstrId = &strId) { OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); } } /// /// To be documented. /// public static void OpenPopup(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = strId) { OpenPopupNative((byte*)pstrId, popupFlags); } } /// /// To be documented. /// public static void OpenPopup(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); } } /// /// To be documented. /// public static void OpenPopup(string strId, ImGuiPopupFlags popupFlags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } OpenPopupNative(pStr0, popupFlags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void OpenPopup(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } OpenPopupNative(pStr0, (ImGuiPopupFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void OpenPopupNative(uint id, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[254])(id, popupFlags); #else ((delegate* unmanaged[Cdecl])funcTable[254])(id, popupFlags); #endif } /// /// To be documented. /// public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags) { OpenPopupNative(id, popupFlags); } /// /// To be documented. /// public static void OpenPopup(uint id) { OpenPopupNative(id, (ImGuiPopupFlags)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void OpenPopupOnItemClickNative(byte* strId, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[255])(strId, popupFlags); #else ((delegate* unmanaged[Cdecl])funcTable[255])((nint)strId, popupFlags); #endif } /// /// To be documented. /// public static void OpenPopupOnItemClick(byte* strId, ImGuiPopupFlags popupFlags) { OpenPopupOnItemClickNative(strId, popupFlags); } /// /// To be documented. /// public static void OpenPopupOnItemClick(byte* strId) { OpenPopupOnItemClickNative(strId, (ImGuiPopupFlags)(1)); } /// /// To be documented. /// public static void OpenPopupOnItemClick() { OpenPopupOnItemClickNative((byte*)(default), (ImGuiPopupFlags)(1)); } /// /// To be documented. /// public static void OpenPopupOnItemClick(ImGuiPopupFlags popupFlags) { OpenPopupOnItemClickNative((byte*)(default), popupFlags); } /// /// To be documented. /// public static void OpenPopupOnItemClick(ref byte strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = &strId) { OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); } } /// /// To be documented. /// public static void OpenPopupOnItemClick(ref byte strId) { fixed (byte* pstrId = &strId) { OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); } } /// /// To be documented. /// public static void OpenPopupOnItemClick(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = strId) { OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); } } /// /// To be documented. /// public static void OpenPopupOnItemClick(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); } } /// /// To be documented. /// public static void OpenPopupOnItemClick(string strId, ImGuiPopupFlags popupFlags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } OpenPopupOnItemClickNative(pStr0, popupFlags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void OpenPopupOnItemClick(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } OpenPopupOnItemClickNative(pStr0, (ImGuiPopupFlags)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CloseCurrentPopupNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[256])(); #else ((delegate* unmanaged[Cdecl])funcTable[256])(); #endif } /// /// To be documented. /// public static void CloseCurrentPopup() { CloseCurrentPopupNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginPopupContextItemNative(byte* strId, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[257])(strId, popupFlags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[257])((nint)strId, popupFlags); #endif } /// /// To be documented. /// public static bool BeginPopupContextItem(byte* strId, ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextItemNative(strId, popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextItem(byte* strId) { byte ret = BeginPopupContextItemNative(strId, (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextItem() { byte ret = BeginPopupContextItemNative((byte*)(default), (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextItem(ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextItemNative((byte*)(default), popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextItem(ref byte strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextItem(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextItem(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextItem(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextItem(string strId, ImGuiPopupFlags popupFlags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextItemNative(pStr0, popupFlags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextItem(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextItemNative(pStr0, (ImGuiPopupFlags)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginPopupContextWindowNative(byte* strId, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[258])(strId, popupFlags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[258])((nint)strId, popupFlags); #endif } /// /// To be documented. /// public static bool BeginPopupContextWindow(byte* strId, ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextWindowNative(strId, popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextWindow(byte* strId) { byte ret = BeginPopupContextWindowNative(strId, (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextWindow() { byte ret = BeginPopupContextWindowNative((byte*)(default), (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextWindow(ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextWindowNative((byte*)(default), popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextWindow(ref byte strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextWindow(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextWindow(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextWindow(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextWindow(string strId, ImGuiPopupFlags popupFlags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextWindowNative(pStr0, popupFlags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextWindow(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextWindowNative(pStr0, (ImGuiPopupFlags)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginPopupContextVoidNative(byte* strId, ImGuiPopupFlags popupFlags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[259])(strId, popupFlags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[259])((nint)strId, popupFlags); #endif } /// /// To be documented. /// public static bool BeginPopupContextVoid(byte* strId, ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextVoidNative(strId, popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextVoid(byte* strId) { byte ret = BeginPopupContextVoidNative(strId, (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextVoid() { byte ret = BeginPopupContextVoidNative((byte*)(default), (ImGuiPopupFlags)(1)); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextVoid(ImGuiPopupFlags popupFlags) { byte ret = BeginPopupContextVoidNative((byte*)(default), popupFlags); return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextVoid(ref byte strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextVoid(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextVoid(ReadOnlySpan strId, ImGuiPopupFlags popupFlags) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextVoid(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); return ret != 0; } } /// /// To be documented. /// public static bool BeginPopupContextVoid(string strId, ImGuiPopupFlags popupFlags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextVoidNative(pStr0, popupFlags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginPopupContextVoid(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginPopupContextVoidNative(pStr0, (ImGuiPopupFlags)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsPopupOpenNative(byte* strId, ImGuiPopupFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[260])(strId, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[260])((nint)strId, flags); #endif } /// /// To be documented. /// public static bool IsPopupOpen(byte* strId, ImGuiPopupFlags flags) { byte ret = IsPopupOpenNative(strId, flags); return ret != 0; } /// /// To be documented. /// public static bool IsPopupOpen(byte* strId) { byte ret = IsPopupOpenNative(strId, (ImGuiPopupFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool IsPopupOpen(ref byte strId, ImGuiPopupFlags flags) { fixed (byte* pstrId = &strId) { byte ret = IsPopupOpenNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool IsPopupOpen(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool IsPopupOpen(ReadOnlySpan strId, ImGuiPopupFlags flags) { fixed (byte* pstrId = strId) { byte ret = IsPopupOpenNative((byte*)pstrId, flags); return ret != 0; } } /// /// To be documented. /// public static bool IsPopupOpen(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool IsPopupOpen(string strId, ImGuiPopupFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = IsPopupOpenNative(pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool IsPopupOpen(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = IsPopupOpenNative(pStr0, (ImGuiPopupFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTableNative(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[261])(strId, column, flags, outerSize, innerWidth); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[261])((nint)strId, column, flags, outerSize, innerWidth); #endif } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize) { byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags) { byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column) { byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, Vector2 outerSize) { byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, float innerWidth) { byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, float innerWidth) { byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(byte* strId, int column, Vector2 outerSize, float innerWidth) { byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, Vector2 outerSize) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, float innerWidth) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ref byte strId, int column, Vector2 outerSize, float innerWidth) { fixed (byte* pstrId = &strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, Vector2 outerSize) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, float innerWidth) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(ReadOnlySpan strId, int column, Vector2 outerSize, float innerWidth) { fixed (byte* pstrId = strId) { byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, flags, outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, flags, outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column, ImGuiTableFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column, Vector2 outerSize) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTable(string strId, int column, float innerWidth) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } }