// ------------------------------------------------------------------------------ // // 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 ImGuiP { /// /// To be documented. /// public static bool MenuItemEx(byte* label, ReadOnlySpan icon, string shortcut) { fixed (byte* picon = icon) { 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 = MenuItemExNative(label, (byte*)picon, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItemEx(byte* label, string icon, ref byte shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(label, 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 MenuItemEx(byte* label, string icon, ref byte shortcut, bool selected) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(label, 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 MenuItemEx(byte* label, string icon, ref byte shortcut) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItemEx(byte* label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(label, 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 MenuItemEx(byte* label, string icon, ReadOnlySpan shortcut, bool selected) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(label, 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 MenuItemEx(byte* label, string icon, ReadOnlySpan shortcut) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ReadOnlySpan shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(string label, string icon, 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 (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte* pStr2 = null; int pStrSize2 = 0; if (shortcut != null) { pStrSize2 = Utils.GetByteCountUTF8(shortcut); if (pStrSize2 >= Utils.MaxStackallocSize) { pStr2 = Utils.Alloc(pStrSize2 + 1); } else { byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; pStr2 = pStrStack2; } int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); pStr2[pStrOffset2] = 0; } byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize2 >= Utils.MaxStackallocSize) { Utils.Free(pStr2); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItemEx(string label, string icon, 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 (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte* pStr2 = null; int pStrSize2 = 0; if (shortcut != null) { pStrSize2 = Utils.GetByteCountUTF8(shortcut); if (pStrSize2 >= Utils.MaxStackallocSize) { pStr2 = Utils.Alloc(pStrSize2 + 1); } else { byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; pStr2 = pStrStack2; } int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); pStr2[pStrOffset2] = 0; } byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize2 >= Utils.MaxStackallocSize) { Utils.Free(pStr2); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItemEx(string label, string icon, 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 (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } byte* pStr2 = null; int pStrSize2 = 0; if (shortcut != null) { pStrSize2 = Utils.GetByteCountUTF8(shortcut); if (pStrSize2 >= Utils.MaxStackallocSize) { pStr2 = Utils.Alloc(pStrSize2 + 1); } else { byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; pStr2 = pStrStack2; } int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); pStr2[pStrOffset2] = 0; } byte ret = MenuItemExNative(pStr0, pStr1, pStr2, (byte)(0), (byte)(1)); if (pStrSize2 >= Utils.MaxStackallocSize) { Utils.Free(pStr2); } if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, 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 MenuItemEx(ref byte label, ref byte icon, string shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ref byte shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ref byte shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, ReadOnlySpan shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, 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 MenuItemEx(ref byte label, ReadOnlySpan icon, string shortcut, bool selected) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, ReadOnlySpan icon, string shortcut) { fixed (byte* plabel = &label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, string icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, ref byte shortcut, bool selected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, ref byte shortcut) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, ReadOnlySpan shortcut) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ref byte label, string icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, string shortcut, bool selected) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ref byte label, string icon, string shortcut) { fixed (byte* plabel = &label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, ref byte icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ref byte shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ref byte shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, ReadOnlySpan shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, 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 MenuItemEx(ReadOnlySpan label, ref byte icon, string shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ref byte icon, string shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = &icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, ref byte shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); return ret != 0; } } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, 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 MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, string shortcut, bool selected) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, ReadOnlySpan icon, string shortcut) { fixed (byte* plabel = label) { fixed (byte* picon = icon) { 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 = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, string icon, ref byte shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, ref byte shortcut, bool selected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, ref byte shortcut) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut, bool selected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, ReadOnlySpan shortcut) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected, bool enabled) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, string shortcut, bool selected) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(ReadOnlySpan label, string icon, string shortcut) { fixed (byte* plabel = label) { byte* pStr0 = null; int pStrSize0 = 0; if (icon != null) { pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(icon, 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 = MenuItemExNative((byte*)plabel, 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 MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ref byte icon, 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* picon = &icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(string label, ref byte icon, 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; } fixed (byte* picon = &icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, ref byte icon, 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; } fixed (byte* picon = &icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, ref byte icon, 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; } fixed (byte* picon = &icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (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 MenuItemEx(string label, ReadOnlySpan icon, 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* picon = icon) { fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool MenuItemEx(string label, ReadOnlySpan icon, 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; } fixed (byte* picon = icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, ReadOnlySpan icon, 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; } fixed (byte* picon = icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, ReadOnlySpan icon, 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; } fixed (byte* picon = icon) { 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 = MenuItemExNative(pStr0, (byte*)picon, 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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, 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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, 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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = &shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, 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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, 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 MenuItemEx(string label, string icon, 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; } byte* pStr1 = null; int pStrSize1 = 0; if (icon != null) { pStrSize1 = Utils.GetByteCountUTF8(icon); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } fixed (byte* pshortcut = shortcut) { byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginComboPopupNative(uint popupId, ImRect bb, ImGuiComboFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1025])(popupId, bb, flags); #endif } /// /// To be documented. /// public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) { byte ret = BeginComboPopupNative(popupId, bb, flags); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginComboPreviewNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1026])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1026])(); #endif } /// /// To be documented. /// public static bool BeginComboPreview() { byte ret = BeginComboPreviewNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndComboPreviewNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1027])(); #else ((delegate* unmanaged[Cdecl])funcTable[1027])(); #endif } /// /// To be documented. /// public static void EndComboPreview() { EndComboPreviewNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavInitWindowNative(ImGuiWindow* window, byte forceReinit) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1028])(window, forceReinit); #else ((delegate* unmanaged[Cdecl])funcTable[1028])((nint)window, forceReinit); #endif } /// /// To be documented. /// public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) { NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) { fixed (ImGuiWindow* pwindow = &window) { NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavInitRequestApplyResultNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1029])(); #else ((delegate* unmanaged[Cdecl])funcTable[1029])(); #endif } /// /// To be documented. /// public static void NavInitRequestApplyResult() { NavInitRequestApplyResultNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte NavMoveRequestButNoResultYetNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1030])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1030])(); #endif } /// /// To be documented. /// public static bool NavMoveRequestButNoResultYet() { byte ret = NavMoveRequestButNoResultYetNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestSubmitNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); #else ((delegate* unmanaged[Cdecl])funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); #endif } /// /// To be documented. /// public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) { NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestForwardNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); #else ((delegate* unmanaged[Cdecl])funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); #endif } /// /// To be documented. /// public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) { NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1033])(result); #else ((delegate* unmanaged[Cdecl])funcTable[1033])((nint)result); #endif } /// /// To be documented. /// public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) { NavMoveRequestResolveWithLastItemNative(result); } /// /// To be documented. /// public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) { fixed (ImGuiNavItemData* presult = &result) { NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestCancelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1034])(); #else ((delegate* unmanaged[Cdecl])funcTable[1034])(); #endif } /// /// To be documented. /// public static void NavMoveRequestCancel() { NavMoveRequestCancelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestApplyResultNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1035])(); #else ((delegate* unmanaged[Cdecl])funcTable[1035])(); #endif } /// /// To be documented. /// public static void NavMoveRequestApplyResult() { NavMoveRequestApplyResultNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NavMoveRequestTryWrappingNative(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1036])(window, moveFlags); #else ((delegate* unmanaged[Cdecl])funcTable[1036])((nint)window, moveFlags); #endif } /// /// To be documented. /// public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) { NavMoveRequestTryWrappingNative(window, moveFlags); } /// /// To be documented. /// public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) { fixed (ImGuiWindow* pwindow = &window) { NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetNavInputNameNative(ImGuiNavInput n) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1037])(n); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[1037])(n); #endif } /// /// To be documented. /// public static byte* GetNavInputName(ImGuiNavInput n) { byte* ret = GetNavInputNameNative(n); return ret; } /// /// To be documented. /// public static string GetNavInputNameS(ImGuiNavInput n) { string ret = Utils.DecodeStringUTF8(GetNavInputNameNative(n)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetNavInputAmountNative(ImGuiNavInput n, ImGuiNavReadMode mode) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1038])(n, mode); #endif } /// /// To be documented. /// public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) { float ret = GetNavInputAmountNative(n, mode); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetNavInputAmount2dNative(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); #else ((delegate* unmanaged[Cdecl])funcTable[1039])((nint)pOut, dirSources, mode, slowFactor, fastFactor); #endif } /// /// To be documented. /// public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) { Vector2 ret; GetNavInputAmount2dNative(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); return ret; } /// /// To be documented. /// public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) { Vector2 ret; GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, (float)(0.0f)); return ret; } /// /// To be documented. /// public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) { GetNavInputAmount2dNative(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); } /// /// To be documented. /// public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) { Vector2 ret; GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, fastFactor); return ret; } /// /// To be documented. /// public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) { GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, fastFactor); } /// /// To be documented. /// public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) { GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, (float)(0.0f)); } /// /// To be documented. /// public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) { fixed (Vector2* ppOut = &pOut) { GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); } } /// /// To be documented. /// public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) { fixed (Vector2* ppOut = &pOut) { GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); } } /// /// To be documented. /// public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) { fixed (Vector2* ppOut = &pOut) { GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); #else return (int)((delegate* unmanaged[Cdecl])funcTable[1040])(t0, t1, repeatDelay, repeatRate); #endif } /// /// To be documented. /// public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) { int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ActivateItemNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1041])(id); #else ((delegate* unmanaged[Cdecl])funcTable[1041])(id); #endif } /// /// To be documented. /// public static void ActivateItem(uint id) { ActivateItemNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNavWindowNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1042])(window); #else ((delegate* unmanaged[Cdecl])funcTable[1042])((nint)window); #endif } /// /// To be documented. /// public static void SetNavWindow(ImGuiWindowPtr window) { SetNavWindowNative(window); } /// /// To be documented. /// public static void SetNavWindow(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { SetNavWindowNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); #else ((delegate* unmanaged[Cdecl])funcTable[1043])(id, navLayer, focusScopeId, rectRel); #endif } /// /// To be documented. /// public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) { SetNavIDNative(id, navLayer, focusScopeId, rectRel); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushFocusScopeNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1044])(id); #else ((delegate* unmanaged[Cdecl])funcTable[1044])(id); #endif } /// /// To be documented. /// public static void PushFocusScope(uint id) { PushFocusScopeNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopFocusScopeNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1045])(); #else ((delegate* unmanaged[Cdecl])funcTable[1045])(); #endif } /// /// To be documented. /// public static void PopFocusScope() { PopFocusScopeNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetFocusedFocusScopeNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1046])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1046])(); #endif } /// /// To be documented. /// public static uint GetFocusedFocusScope() { uint ret = GetFocusedFocusScopeNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetFocusScopeNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1047])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1047])(); #endif } /// /// To be documented. /// public static uint GetFocusScope() { uint ret = GetFocusScopeNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsNamedKeyNative(ImGuiKey key) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1048])(key); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1048])(key); #endif } /// /// To be documented. /// public static bool IsNamedKey(ImGuiKey key) { byte ret = IsNamedKeyNative(key); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsLegacyKeyNative(ImGuiKey key) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1049])(key); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1049])(key); #endif } /// /// To be documented. /// public static bool IsLegacyKey(ImGuiKey key) { byte ret = IsLegacyKeyNative(key); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsGamepadKeyNative(ImGuiKey key) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1050])(key); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1050])(key); #endif } /// /// To be documented. /// public static bool IsGamepadKey(ImGuiKey key) { byte ret = IsGamepadKeyNative(key); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiKeyData* GetKeyDataNative(ImGuiKey key) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1051])(key); #else return (ImGuiKeyData*)((delegate* unmanaged[Cdecl])funcTable[1051])(key); #endif } /// /// To be documented. /// public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) { ImGuiKeyDataPtr ret = GetKeyDataNative(key); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetItemUsingMouseWheelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1052])(); #else ((delegate* unmanaged[Cdecl])funcTable[1052])(); #endif } /// /// To be documented. /// public static void SetItemUsingMouseWheel() { SetItemUsingMouseWheelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetActiveIdUsingNavAndKeysNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1053])(); #else ((delegate* unmanaged[Cdecl])funcTable[1053])(); #endif } /// /// To be documented. /// public static void SetActiveIdUsingNavAndKeys() { SetActiveIdUsingNavAndKeysNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsActiveIdUsingNavDirNative(ImGuiDir dir) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1054])(dir); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1054])(dir); #endif } /// /// To be documented. /// public static bool IsActiveIdUsingNavDir(ImGuiDir dir) { byte ret = IsActiveIdUsingNavDirNative(dir); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsActiveIdUsingNavInputNative(ImGuiNavInput input) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1055])(input); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1055])(input); #endif } /// /// To be documented. /// public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) { byte ret = IsActiveIdUsingNavInputNative(input); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsActiveIdUsingKeyNative(ImGuiKey key) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1056])(key); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1056])(key); #endif } /// /// To be documented. /// public static bool IsActiveIdUsingKey(ImGuiKey key) { byte ret = IsActiveIdUsingKeyNative(key); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetActiveIdUsingKeyNative(ImGuiKey key) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1057])(key); #else ((delegate* unmanaged[Cdecl])funcTable[1057])(key); #endif } /// /// To be documented. /// public static void SetActiveIdUsingKey(ImGuiKey key) { SetActiveIdUsingKeyNative(key); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseDragPastThresholdNative(ImGuiMouseButton button, float lockThreshold) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1058])(button, lockThreshold); #endif } /// /// To be documented. /// public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) { byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); return ret != 0; } /// /// To be documented. /// public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) { byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsNavInputDownNative(ImGuiNavInput n) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1059])(n); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1059])(n); #endif } /// /// To be documented. /// public static bool IsNavInputDown(ImGuiNavInput n) { byte ret = IsNavInputDownNative(n); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsNavInputTestNative(ImGuiNavInput n, ImGuiNavReadMode rm) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1060])(n, rm); #endif } /// /// To be documented. /// public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) { byte ret = IsNavInputTestNative(n, rm); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiModFlags GetMergedModFlagsNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1061])(); #else return (ImGuiModFlags)((delegate* unmanaged[Cdecl])funcTable[1061])(); #endif } /// /// To be documented. /// public static ImGuiModFlags GetMergedModFlags() { ImGuiModFlags ret = GetMergedModFlagsNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsKeyPressedMapNative(ImGuiKey key, byte repeat) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1062])(key, repeat); #endif } /// /// To be documented. /// public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) { byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool IsKeyPressedMap(ImGuiKey key) { byte ret = IsKeyPressedMapNative(key, (byte)(1)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextInitializeNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1063])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1063])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextInitialize(ImGuiContextPtr ctx) { DockContextInitializeNative(ctx); } /// /// To be documented. /// public static void DockContextInitialize(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextInitializeNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextShutdownNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1064])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1064])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextShutdown(ImGuiContextPtr ctx) { DockContextShutdownNative(ctx); } /// /// To be documented. /// public static void DockContextShutdown(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextShutdownNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1065])(ctx, rootId, clearSettingsRefs); #else ((delegate* unmanaged[Cdecl])funcTable[1065])((nint)ctx, rootId, clearSettingsRefs); #endif } /// /// To be documented. /// public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) { DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) { fixed (ImGuiContext* pctx = &ctx) { DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextRebuildNodesNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1066])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1066])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextRebuildNodes(ImGuiContextPtr ctx) { DockContextRebuildNodesNative(ctx); } /// /// To be documented. /// public static void DockContextRebuildNodes(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextRebuildNodesNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1067])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1067])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) { DockContextNewFrameUpdateUndockingNative(ctx); } /// /// To be documented. /// public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1068])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1068])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) { DockContextNewFrameUpdateDockingNative(ctx); } /// /// To be documented. /// public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextEndFrameNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1069])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[1069])((nint)ctx); #endif } /// /// To be documented. /// public static void DockContextEndFrame(ImGuiContextPtr ctx) { DockContextEndFrameNative(ctx); } /// /// To be documented. /// public static void DockContextEndFrame(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DockContextEndFrameNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockContextGenNodeIDNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1070])(ctx); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1070])((nint)ctx); #endif } /// /// To be documented. /// public static uint DockContextGenNodeID(ImGuiContextPtr ctx) { uint ret = DockContextGenNodeIDNative(ctx); return ret; } /// /// To be documented. /// public static uint DockContextGenNodeID(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { uint ret = DockContextGenNodeIDNative((ImGuiContext*)pctx); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); #else ((delegate* unmanaged[Cdecl])funcTable[1071])((nint)ctx, (nint)target, (nint)targetNode, (nint)payload, splitDir, splitRatio, splitOuter); #endif } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiWindow* ptarget = &target) { DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* ptarget = &target) { DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } } /// /// To be documented. /// public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } } /// /// To be documented. /// public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1072])(ctx, window); #else ((delegate* unmanaged[Cdecl])funcTable[1072])((nint)ctx, (nint)window); #endif } /// /// To be documented. /// public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) { DockContextQueueUndockWindowNative(ctx, window); } /// /// To be documented. /// public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) { fixed (ImGuiContext* pctx = &ctx) { DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window); } } /// /// To be documented. /// public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiWindow* pwindow = &window) { DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1073])(ctx, node); #else ((delegate* unmanaged[Cdecl])funcTable[1073])((nint)ctx, (nint)node); #endif } /// /// To be documented. /// public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) { DockContextQueueUndockNodeNative(ctx, node); } /// /// To be documented. /// public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) { fixed (ImGuiContext* pctx = &ctx) { DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node); } } /// /// To be documented. /// public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) { fixed (ImGuiDockNode* pnode = &node) { DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); } } /// /// To be documented. /// public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) { fixed (ImGuiContext* pctx = &ctx) { fixed (ImGuiDockNode* pnode = &node) { DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1074])((nint)target, (nint)targetNode, (nint)payload, splitDir, splitOuter, (nint)outPos); #endif } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiWindow* ptarget = &target) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiWindow* ppayload = &payload) { byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiWindow* ppayload = &payload) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); return ret != 0; } } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiWindow* ppayload = &payload) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiWindow* ppayload = &payload) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } } /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) { fixed (ImGuiWindow* ptarget = &target) { fixed (ImGuiDockNode* ptargetNode = &targetNode) { fixed (ImGuiWindow* ppayload = &payload) { fixed (Vector2* poutPos = &outPos) { byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); return ret != 0; } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1075])(node); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1075])((nint)node); #endif } /// /// To be documented. /// public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) { byte ret = DockNodeBeginAmendTabBarNative(node); return ret != 0; } /// /// To be documented. /// public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) { fixed (ImGuiDockNode* pnode = &node) { byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode); return ret != 0; } } } }