// ------------------------------------------------------------------------------
//
// 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(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[1024])(popupId, bb, flags);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1024])(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[1025])();
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1025])();
#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[1026])();
#else
((delegate* unmanaged[Cdecl])funcTable[1026])();
#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[1027])(window, forceReinit);
#else
((delegate* unmanaged[Cdecl])funcTable[1027])((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[1028])();
#else
((delegate* unmanaged[Cdecl])funcTable[1028])();
#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[1029])();
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1029])();
#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[1030])(moveDir, clipDir, moveFlags, scrollFlags);
#else
((delegate* unmanaged[Cdecl])funcTable[1030])(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[1031])(moveDir, clipDir, moveFlags, scrollFlags);
#else
((delegate* unmanaged[Cdecl])funcTable[1031])(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[1032])(result);
#else
((delegate* unmanaged[Cdecl])funcTable[1032])((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[1033])();
#else
((delegate* unmanaged[Cdecl])funcTable[1033])();
#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[1034])();
#else
((delegate* unmanaged[Cdecl])funcTable[1034])();
#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[1035])(window, moveFlags);
#else
((delegate* unmanaged[Cdecl])funcTable[1035])((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[1036])(n);
#else
return (byte*)((delegate* unmanaged[Cdecl])funcTable[1036])(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[1037])(n, mode);
#else
return (float)((delegate* unmanaged[Cdecl])funcTable[1037])(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[1038])(pOut, dirSources, mode, slowFactor, fastFactor);
#else
((delegate* unmanaged[Cdecl])funcTable[1038])((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[1039])(t0, t1, repeatDelay, repeatRate);
#else
return (int)((delegate* unmanaged[Cdecl])funcTable[1039])(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[1040])(id);
#else
((delegate* unmanaged[Cdecl])funcTable[1040])(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[1041])(window);
#else
((delegate* unmanaged[Cdecl])funcTable[1041])((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[1042])(id, navLayer, focusScopeId, rectRel);
#else
((delegate* unmanaged[Cdecl])funcTable[1042])(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[1043])(id);
#else
((delegate* unmanaged[Cdecl])funcTable[1043])(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[1044])();
#else
((delegate* unmanaged[Cdecl])funcTable[1044])();
#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[1045])();
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1045])();
#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[1046])();
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1046])();
#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[1047])(key);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1047])(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[1048])(key);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1048])(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[1049])(key);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1049])(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[1050])(key);
#else
return (ImGuiKeyData*)((delegate* unmanaged[Cdecl])funcTable[1050])(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[1051])();
#else
((delegate* unmanaged[Cdecl])funcTable[1051])();
#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[1052])();
#else
((delegate* unmanaged[Cdecl])funcTable[1052])();
#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[1053])(dir);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1053])(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[1054])(input);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1054])(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[1055])(key);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1055])(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[1056])(key);
#else
((delegate* unmanaged[Cdecl])funcTable[1056])(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[1057])(button, lockThreshold);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1057])(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[1058])(n);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1058])(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[1059])(n, rm);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1059])(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[1060])();
#else
return (ImGuiModFlags)((delegate* unmanaged[Cdecl])funcTable[1060])();
#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[1061])(key, repeat);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1061])(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[1062])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1062])((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[1063])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1063])((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[1064])(ctx, rootId, clearSettingsRefs);
#else
((delegate* unmanaged[Cdecl])funcTable[1064])((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[1065])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1065])((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[1066])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1066])((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[1067])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1067])((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[1068])(ctx);
#else
((delegate* unmanaged[Cdecl])funcTable[1068])((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[1069])(ctx);
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1069])((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[1070])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter);
#else
((delegate* unmanaged[Cdecl])funcTable[1070])((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[1071])(ctx, window);
#else
((delegate* unmanaged[Cdecl])funcTable[1071])((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[1072])(ctx, node);
#else
((delegate* unmanaged[Cdecl])funcTable[1072])((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[1073])(target, targetNode, payload, splitDir, splitOuter, outPos);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1073])((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[1074])(node);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1074])((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;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockNodeEndAmendTabBarNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1075])();
#else
((delegate* unmanaged[Cdecl])funcTable[1075])();
#endif
}
///
/// To be documented.
///
public static void DockNodeEndAmendTabBar()
{
DockNodeEndAmendTabBarNative();
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1076])(node);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1076])((nint)node);
#endif
}
///
/// To be documented.
///
public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node)
{
ImGuiDockNodePtr ret = DockNodeGetRootNodeNative(node);
return ret;
}
///
/// To be documented.
///
public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
ImGuiDockNodePtr ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode);
return ret;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1077])(node, parent);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1077])((nint)node, (nint)parent);
#endif
}
///
/// To be documented.
///
public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent)
{
byte ret = DockNodeIsInHierarchyOfNative(node, parent);
return ret != 0;
}
///
/// To be documented.
///
public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent)
{
fixed (ImGuiDockNode* pnode = &node)
{
byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent)
{
fixed (ImGuiDockNode* pparent = &parent)
{
byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent)
{
fixed (ImGuiDockNode* pnode = &node)
{
fixed (ImGuiDockNode* pparent = &parent)
{
byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent);
return ret != 0;
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static int DockNodeGetDepthNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1078])(node);
#else
return (int)((delegate* unmanaged[Cdecl])funcTable[1078])((nint)node);
#endif
}
///
/// To be documented.
///
public static int DockNodeGetDepth(ImGuiDockNodePtr node)
{
int ret = DockNodeGetDepthNative(node);
return ret;
}
///
/// To be documented.
///
public static int DockNodeGetDepth(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode);
return ret;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1079])(node);
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1079])((nint)node);
#endif
}
///
/// To be documented.
///
public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node)
{
uint ret = DockNodeGetWindowMenuButtonIdNative(node);
return ret;
}
///
/// To be documented.
///
public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
uint ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode);
return ret;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* GetWindowDockNodeNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1080])();
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1080])();
#endif
}
///
/// To be documented.
///
public static ImGuiDockNodePtr GetWindowDockNode()
{
ImGuiDockNodePtr ret = GetWindowDockNodeNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1081])(window);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1081])((nint)window);
#endif
}
///
/// To be documented.
///
public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window)
{
byte ret = GetWindowAlwaysWantOwnTabBarNative(window);
return ret != 0;
}
///
/// To be documented.
///
public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockedNative(ImGuiWindow* window, bool* pOpen)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1082])(window, pOpen);
#else
((delegate* unmanaged[Cdecl])funcTable[1082])((nint)window, (nint)pOpen);
#endif
}
///
/// To be documented.
///
public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen)
{
BeginDockedNative(window, pOpen);
}
///
/// To be documented.
///
public static void BeginDocked(ref ImGuiWindow window, bool* pOpen)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockedNative((ImGuiWindow*)pwindow, pOpen);
}
}
///
/// To be documented.
///
public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen)
{
fixed (bool* ppOpen = &pOpen)
{
BeginDockedNative(window, (bool*)ppOpen);
}
}
///
/// To be documented.
///
public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen)
{
fixed (ImGuiWindow* pwindow = &window)
{
fixed (bool* ppOpen = &pOpen)
{
BeginDockedNative((ImGuiWindow*)pwindow, (bool*)ppOpen);
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockableDragDropSourceNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1083])(window);
#else
((delegate* unmanaged[Cdecl])funcTable[1083])((nint)window);
#endif
}
///
/// To be documented.
///
public static void BeginDockableDragDropSource(ImGuiWindowPtr window)
{
BeginDockableDragDropSourceNative(window);
}
///
/// To be documented.
///
public static void BeginDockableDragDropSource(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockableDragDropTargetNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1084])(window);
#else
((delegate* unmanaged[Cdecl])funcTable[1084])((nint)window);
#endif
}
///
/// To be documented.
///
public static void BeginDockableDragDropTarget(ImGuiWindowPtr window)
{
BeginDockableDragDropTargetNative(window);
}
///
/// To be documented.
///
public static void BeginDockableDragDropTarget(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetWindowDockNative(ImGuiWindow* window, uint dockId, ImGuiCond cond)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1085])(window, dockId, cond);
#else
((delegate* unmanaged[Cdecl])funcTable[1085])((nint)window, dockId, cond);
#endif
}
///
/// To be documented.
///
public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond)
{
SetWindowDockNative(window, dockId, cond);
}
///
/// To be documented.
///
public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond)
{
fixed (ImGuiWindow* pwindow = &window)
{
SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1086])(windowName, nodeId);
#else
((delegate* unmanaged[Cdecl])funcTable[1086])((nint)windowName, nodeId);
#endif
}
///
/// To be documented.
///
public static void DockBuilderDockWindow(byte* windowName, uint nodeId)
{
DockBuilderDockWindowNative(windowName, nodeId);
}
///
/// To be documented.
///
public static void DockBuilderDockWindow(ref byte windowName, uint nodeId)
{
fixed (byte* pwindowName = &windowName)
{
DockBuilderDockWindowNative((byte*)pwindowName, nodeId);
}
}
///
/// To be documented.
///
public static void DockBuilderDockWindow(ReadOnlySpan windowName, uint nodeId)
{
fixed (byte* pwindowName = windowName)
{
DockBuilderDockWindowNative((byte*)pwindowName, nodeId);
}
}
///
/// To be documented.
///
public static void DockBuilderDockWindow(string windowName, uint nodeId)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (windowName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(windowName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(windowName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
DockBuilderDockWindowNative(pStr0, nodeId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1087])(nodeId);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1087])(nodeId);
#endif
}
///
/// To be documented.
///
public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId)
{
ImGuiDockNodePtr ret = DockBuilderGetNodeNative(nodeId);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId);
#endif
}
///
/// To be documented.
///
public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId)
{
ImGuiDockNodePtr ret = DockBuilderGetCentralNodeNative(nodeId);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockBuilderAddNodeNative(uint nodeId, ImGuiDockNodeFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId, flags);
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId, flags);
#endif
}
///
/// To be documented.
///
public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags)
{
uint ret = DockBuilderAddNodeNative(nodeId, flags);
return ret;
}
///
/// To be documented.
///
public static uint DockBuilderAddNode(uint nodeId)
{
uint ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0));
return ret;
}
///
/// To be documented.
///
public static uint DockBuilderAddNode()
{
uint ret = DockBuilderAddNodeNative((uint)(0), (ImGuiDockNodeFlags)(0));
return ret;
}
///
/// To be documented.
///
public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags)
{
uint ret = DockBuilderAddNodeNative((uint)(0), flags);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId);
#else
((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId);
#endif
}
///
/// To be documented.
///
public static void DockBuilderRemoveNode(uint nodeId)
{
DockBuilderRemoveNodeNative(nodeId);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId, clearSettingsRefs);
#else
((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId, clearSettingsRefs);
#endif
}
///
/// To be documented.
///
public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs)
{
DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0);
}
///
/// To be documented.
///
public static void DockBuilderRemoveNodeDockedWindows(uint nodeId)
{
DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1));
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeChildNodesNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId);
#else
((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId);
#endif
}
///
/// To be documented.
///
public static void DockBuilderRemoveNodeChildNodes(uint nodeId)
{
DockBuilderRemoveNodeChildNodesNative(nodeId);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId, pos);
#else
((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId, pos);
#endif
}
///
/// To be documented.
///
public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos)
{
DockBuilderSetNodePosNative(nodeId, pos);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, size);
#else
((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, size);
#endif
}
///
/// To be documented.
///
public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size)
{
DockBuilderSetNodeSizeNative(nodeId, size);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockBuilderSplitNodeNative(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir);
#else
return (uint)((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, splitDir, sizeRatioForNodeAtDir, (nint)outIdAtDir, (nint)outIdAtOppositeDir);
#endif
}
///
/// To be documented.
///
public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir)
{
uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir);
return ret;
}
///
/// To be documented.
///
public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, uint* outIdAtOppositeDir)
{
fixed (uint* poutIdAtDir = &outIdAtDir)
{
uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, outIdAtOppositeDir);
return ret;
}
}
///
/// To be documented.
///
public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, ref uint outIdAtOppositeDir)
{
fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir)
{
uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, (uint*)poutIdAtOppositeDir);
return ret;
}
}
///
/// To be documented.
///
public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, ref uint outIdAtOppositeDir)
{
fixed (uint* poutIdAtDir = &outIdAtDir)
{
fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir)
{
uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, (uint*)poutIdAtOppositeDir);
return ret;
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]>*, void>)funcTable[1096])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs);
#else
((delegate* unmanaged[Cdecl])funcTable[1096])(srcDockspaceId, dstDockspaceId, (nint)inWindowRemapPairs);
#endif
}
///
/// To be documented.
///
public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs)
{
DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs);
}
///
/// To be documented.
///
public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector> inWindowRemapPairs)
{
fixed (ImVector>* pinWindowRemapPairs = &inWindowRemapPairs)
{
DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVector>*)pinWindowRemapPairs);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]*, void>)funcTable[1097])(srcNodeId, dstNodeId, outNodeRemapPairs);
#else
((delegate* unmanaged[Cdecl])funcTable[1097])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs);
#endif
}
///
/// To be documented.
///
public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs)
{
DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs);
}
///
/// To be documented.
///
public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs)
{
fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs)
{
DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1098])(srcName, dstName);
#else
((delegate* unmanaged[Cdecl])funcTable[1098])((nint)srcName, (nint)dstName);
#endif
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, dstName);
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ref byte srcName, byte* dstName)
{
fixed (byte* psrcName = &srcName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, byte* dstName)
{
fixed (byte* psrcName = srcName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(string srcName, byte* dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (srcName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(srcName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
DockBuilderCopyWindowSettingsNative(pStr0, dstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(byte* srcName, ref byte dstName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(byte* srcName, ReadOnlySpan dstName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(byte* srcName, string dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dstName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
DockBuilderCopyWindowSettingsNative(srcName, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ref byte srcName, ref byte dstName)
{
fixed (byte* psrcName = &srcName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ReadOnlySpan dstName)
{
fixed (byte* psrcName = srcName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(string srcName, string dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (srcName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(srcName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (dstName != null)
{
pStrSize1 = Utils.GetByteCountUTF8(dstName);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(dstName, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
DockBuilderCopyWindowSettingsNative(pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ref byte srcName, ReadOnlySpan dstName)
{
fixed (byte* psrcName = &srcName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ref byte srcName, string dstName)
{
fixed (byte* psrcName = &srcName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dstName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ref byte dstName)
{
fixed (byte* psrcName = srcName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, string dstName)
{
fixed (byte* psrcName = srcName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dstName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(string srcName, ref byte dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (srcName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(srcName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void DockBuilderCopyWindowSettings(string srcName, ReadOnlySpan dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (srcName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(srcName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderFinishNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[1099])(nodeId);
#else
((delegate* unmanaged[Cdecl])funcTable[1099])(nodeId);
#endif
}
///
/// To be documented.
///
public static void DockBuilderFinish(uint nodeId)
{
DockBuilderFinishNative(nodeId);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsDragDropActiveNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[1100])();
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[1100])();
#endif
}
///