Dalamud/imgui/Dalamud.ImGui/Internals/Functions/Functions.010.cs
2025-04-06 20:59:23 +02:00

5027 lines
136 KiB
C#

// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
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
{
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut, bool selected)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut, bool selected, bool enabled)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut, bool selected)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut)
{
fixed (byte* plabel = label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (icon != null)
{
pStrSize0 = Utils.GetByteCountUTF8(icon);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<byte> shortcut)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<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<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, string shortcut)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, string icon, ReadOnlySpan<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<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, string icon, ReadOnlySpan<byte> shortcut, bool selected)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool MenuItemEx(string label, string icon, ReadOnlySpan<byte> shortcut)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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<byte>(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;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte BeginComboPopupNative(uint popupId, ImRect bb, ImGuiComboFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImRect, ImGuiComboFlags, byte>)funcTable[1024])(popupId, bb, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, ImRect, ImGuiComboFlags, byte>)funcTable[1024])(popupId, bb, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags)
{
byte ret = BeginComboPopupNative(popupId, bb, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte BeginComboPreviewNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1025])();
#else
return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1025])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool BeginComboPreview()
{
byte ret = BeginComboPreviewNative();
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void EndComboPreviewNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1026])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1026])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void EndComboPreview()
{
EndComboPreviewNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavInitWindowNative(ImGuiWindow* window, byte forceReinit)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, void>)funcTable[1027])(window, forceReinit);
#else
((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[1027])((nint)window, forceReinit);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit)
{
NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0);
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit)
{
fixed (ImGuiWindow* pwindow = &window)
{
NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavInitRequestApplyResultNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1028])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1028])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavInitRequestApplyResult()
{
NavInitRequestApplyResultNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte NavMoveRequestButNoResultYetNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1029])();
#else
return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1029])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool NavMoveRequestButNoResultYet()
{
byte ret = NavMoveRequestButNoResultYetNative();
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestSubmitNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1030])(moveDir, clipDir, moveFlags, scrollFlags);
#else
((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1030])(moveDir, clipDir, moveFlags, scrollFlags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags)
{
NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestForwardNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags);
#else
((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags)
{
NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)funcTable[1032])(result);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1032])((nint)result);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result)
{
NavMoveRequestResolveWithLastItemNative(result);
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result)
{
fixed (ImGuiNavItemData* presult = &result)
{
NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestCancelNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1033])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1033])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestCancel()
{
NavMoveRequestCancelNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestApplyResultNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1034])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1034])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestApplyResult()
{
NavMoveRequestApplyResultNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void NavMoveRequestTryWrappingNative(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiNavMoveFlags, void>)funcTable[1035])(window, moveFlags);
#else
((delegate* unmanaged[Cdecl]<nint, ImGuiNavMoveFlags, void>)funcTable[1035])((nint)window, moveFlags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags)
{
NavMoveRequestTryWrappingNative(window, moveFlags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags)
{
fixed (ImGuiWindow* pwindow = &window)
{
NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte* GetNavInputNameNative(ImGuiNavInput n)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte*>)funcTable[1036])(n);
#else
return (byte*)((delegate* unmanaged[Cdecl]<ImGuiNavInput, nint>)funcTable[1036])(n);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* GetNavInputName(ImGuiNavInput n)
{
byte* ret = GetNavInputNameNative(n);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string GetNavInputNameS(ImGuiNavInput n)
{
string ret = Utils.DecodeStringUTF8(GetNavInputNameNative(n));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static float GetNavInputAmountNative(ImGuiNavInput n, ImGuiNavReadMode mode)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, float>)funcTable[1037])(n, mode);
#else
return (float)((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, float>)funcTable[1037])(n, mode);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode)
{
float ret = GetNavInputAmountNative(n, mode);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[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]<Vector2*, ImGuiNavDirSourceFlags, ImGuiNavReadMode, float, float, void>)funcTable[1038])(pOut, dirSources, mode, slowFactor, fastFactor);
#else
((delegate* unmanaged[Cdecl]<nint, ImGuiNavDirSourceFlags, ImGuiNavReadMode, float, float, void>)funcTable[1038])((nint)pOut, dirSources, mode, slowFactor, fastFactor);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode)
{
Vector2 ret;
GetNavInputAmount2dNative(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor)
{
Vector2 ret;
GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, (float)(0.0f));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode)
{
GetNavInputAmount2dNative(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f));
}
/// <summary>
/// To be documented.
/// </summary>
public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor)
{
Vector2 ret;
GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, fastFactor);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor)
{
GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, fastFactor);
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor)
{
GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, (float)(0.0f));
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
/// <summary>
/// To be documented.
/// </summary>
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));
}
}
/// <summary>
/// To be documented.
/// </summary>
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));
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<float, float, float, float, int>)funcTable[1039])(t0, t1, repeatDelay, repeatRate);
#else
return (int)((delegate* unmanaged[Cdecl]<float, float, float, float, int>)funcTable[1039])(t0, t1, repeatDelay, repeatRate);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate)
{
int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ActivateItemNative(uint id)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1040])(id);
#else
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1040])(id);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void ActivateItem(uint id)
{
ActivateItemNative(id);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetNavWindowNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1041])(window);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1041])((nint)window);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetNavWindow(ImGuiWindowPtr window)
{
SetNavWindowNative(window);
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetNavWindow(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
SetNavWindowNative((ImGuiWindow*)pwindow);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, ImGuiNavLayer, uint, ImRect, void>)funcTable[1042])(id, navLayer, focusScopeId, rectRel);
#else
((delegate* unmanaged[Cdecl]<uint, ImGuiNavLayer, uint, ImRect, void>)funcTable[1042])(id, navLayer, focusScopeId, rectRel);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel)
{
SetNavIDNative(id, navLayer, focusScopeId, rectRel);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void PushFocusScopeNative(uint id)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1043])(id);
#else
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1043])(id);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void PushFocusScope(uint id)
{
PushFocusScopeNative(id);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void PopFocusScopeNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1044])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1044])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void PopFocusScope()
{
PopFocusScopeNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetFocusedFocusScopeNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint>)funcTable[1045])();
#else
return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[1045])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetFocusedFocusScope()
{
uint ret = GetFocusedFocusScopeNative();
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetFocusScopeNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint>)funcTable[1046])();
#else
return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[1046])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetFocusScope()
{
uint ret = GetFocusScopeNative();
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsNamedKeyNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1047])(key);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1047])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsNamedKey(ImGuiKey key)
{
byte ret = IsNamedKeyNative(key);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsLegacyKeyNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1048])(key);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1048])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsLegacyKey(ImGuiKey key)
{
byte ret = IsLegacyKeyNative(key);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsGamepadKeyNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1049])(key);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1049])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsGamepadKey(ImGuiKey key)
{
byte ret = IsGamepadKeyNative(key);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiKeyData* GetKeyDataNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, ImGuiKeyData*>)funcTable[1050])(key);
#else
return (ImGuiKeyData*)((delegate* unmanaged[Cdecl]<ImGuiKey, nint>)funcTable[1050])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key)
{
ImGuiKeyDataPtr ret = GetKeyDataNative(key);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetItemUsingMouseWheelNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1051])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1051])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetItemUsingMouseWheel()
{
SetItemUsingMouseWheelNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetActiveIdUsingNavAndKeysNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1052])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1052])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetActiveIdUsingNavAndKeys()
{
SetActiveIdUsingNavAndKeysNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsActiveIdUsingNavDirNative(ImGuiDir dir)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDir, byte>)funcTable[1053])(dir);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiDir, byte>)funcTable[1053])(dir);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsActiveIdUsingNavDir(ImGuiDir dir)
{
byte ret = IsActiveIdUsingNavDirNative(dir);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsActiveIdUsingNavInputNative(ImGuiNavInput input)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1054])(input);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1054])(input);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsActiveIdUsingNavInput(ImGuiNavInput input)
{
byte ret = IsActiveIdUsingNavInputNative(input);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsActiveIdUsingKeyNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1055])(key);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1055])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsActiveIdUsingKey(ImGuiKey key)
{
byte ret = IsActiveIdUsingKeyNative(key);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetActiveIdUsingKeyNative(ImGuiKey key)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiKey, void>)funcTable[1056])(key);
#else
((delegate* unmanaged[Cdecl]<ImGuiKey, void>)funcTable[1056])(key);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetActiveIdUsingKey(ImGuiKey key)
{
SetActiveIdUsingKeyNative(key);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsMouseDragPastThresholdNative(ImGuiMouseButton button, float lockThreshold)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[1057])(button, lockThreshold);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[1057])(button, lockThreshold);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold)
{
byte ret = IsMouseDragPastThresholdNative(button, lockThreshold);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsMouseDragPastThreshold(ImGuiMouseButton button)
{
byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsNavInputDownNative(ImGuiNavInput n)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1058])(n);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1058])(n);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsNavInputDown(ImGuiNavInput n)
{
byte ret = IsNavInputDownNative(n);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsNavInputTestNative(ImGuiNavInput n, ImGuiNavReadMode rm)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, byte>)funcTable[1059])(n, rm);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, byte>)funcTable[1059])(n, rm);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm)
{
byte ret = IsNavInputTestNative(n, rm);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiModFlags GetMergedModFlagsNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiModFlags>)funcTable[1060])();
#else
return (ImGuiModFlags)((delegate* unmanaged[Cdecl]<ImGuiModFlags>)funcTable[1060])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiModFlags GetMergedModFlags()
{
ImGuiModFlags ret = GetMergedModFlagsNative();
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsKeyPressedMapNative(ImGuiKey key, byte repeat)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[1061])(key, repeat);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[1061])(key, repeat);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsKeyPressedMap(ImGuiKey key, bool repeat)
{
byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsKeyPressedMap(ImGuiKey key)
{
byte ret = IsKeyPressedMapNative(key, (byte)(1));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextInitializeNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1062])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1062])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextInitialize(ImGuiContextPtr ctx)
{
DockContextInitializeNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextInitialize(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextInitializeNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextShutdownNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1063])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1063])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextShutdown(ImGuiContextPtr ctx)
{
DockContextShutdownNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextShutdown(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextShutdownNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, uint, byte, void>)funcTable[1064])(ctx, rootId, clearSettingsRefs);
#else
((delegate* unmanaged[Cdecl]<nint, uint, byte, void>)funcTable[1064])((nint)ctx, rootId, clearSettingsRefs);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs)
{
DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextRebuildNodesNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1065])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1065])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextRebuildNodes(ImGuiContextPtr ctx)
{
DockContextRebuildNodesNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextRebuildNodes(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextRebuildNodesNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1066])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1066])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx)
{
DockContextNewFrameUpdateUndockingNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1067])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1067])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx)
{
DockContextNewFrameUpdateDockingNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextEndFrameNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1068])(ctx);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1068])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextEndFrame(ImGuiContextPtr ctx)
{
DockContextEndFrameNative(ctx);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextEndFrame(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextEndFrameNative((ImGuiContext*)pctx);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockContextGenNodeIDNative(ImGuiContext* ctx)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint>)funcTable[1069])(ctx);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[1069])((nint)ctx);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockContextGenNodeID(ImGuiContextPtr ctx)
{
uint ret = DockContextGenNodeIDNative(ctx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockContextGenNodeID(ref ImGuiContext ctx)
{
fixed (ImGuiContext* pctx = &ctx)
{
uint ret = DockContextGenNodeIDNative((ImGuiContext*)pctx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[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]<ImGuiContext*, ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, float, byte, void>)funcTable[1070])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter);
#else
((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, ImGuiDir, float, byte, void>)funcTable[1070])((nint)ctx, (nint)target, (nint)targetNode, (nint)payload, splitDir, splitRatio, splitOuter);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiWindow*, void>)funcTable[1071])(ctx, window);
#else
((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1071])((nint)ctx, (nint)window);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window)
{
DockContextQueueUndockWindowNative(ctx, window);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window)
{
fixed (ImGuiContext* pctx = &ctx)
{
fixed (ImGuiWindow* pwindow = &window)
{
DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiDockNode*, void>)funcTable[1072])(ctx, node);
#else
((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1072])((nint)ctx, (nint)node);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node)
{
DockContextQueueUndockNodeNative(ctx, node);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node)
{
fixed (ImGuiContext* pctx = &ctx)
{
DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node)
{
fixed (ImGuiContext* pctx = &ctx)
{
fixed (ImGuiDockNode* pnode = &node)
{
DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[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]<ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, byte, Vector2*, byte>)funcTable[1073])(target, targetNode, payload, splitDir, splitOuter, outPos);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiDir, byte, nint, byte>)funcTable[1073])((nint)target, (nint)targetNode, (nint)payload, splitDir, splitOuter, (nint)outPos);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[1074])(node);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[1074])((nint)node);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node)
{
byte ret = DockNodeBeginAmendTabBarNative(node);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockNodeEndAmendTabBarNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1075])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1075])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockNodeEndAmendTabBar()
{
DockNodeEndAmendTabBarNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*>)funcTable[1076])(node);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[1076])((nint)node);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node)
{
ImGuiDockNodePtr ret = DockNodeGetRootNodeNative(node);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
ImGuiDockNodePtr ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*, byte>)funcTable[1077])(node, parent);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[1077])((nint)node, (nint)parent);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent)
{
byte ret = DockNodeIsInHierarchyOfNative(node, parent);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent)
{
fixed (ImGuiDockNode* pnode = &node)
{
byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent)
{
fixed (ImGuiDockNode* pparent = &parent)
{
byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static int DockNodeGetDepthNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, int>)funcTable[1078])(node);
#else
return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[1078])((nint)node);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static int DockNodeGetDepth(ImGuiDockNodePtr node)
{
int ret = DockNodeGetDepthNative(node);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static int DockNodeGetDepth(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, uint>)funcTable[1079])(node);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[1079])((nint)node);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node)
{
uint ret = DockNodeGetWindowMenuButtonIdNative(node);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node)
{
fixed (ImGuiDockNode* pnode = &node)
{
uint ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* GetWindowDockNodeNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*>)funcTable[1080])();
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1080])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiDockNodePtr GetWindowDockNode()
{
ImGuiDockNodePtr ret = GetWindowDockNodeNative();
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte>)funcTable[1081])(window);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[1081])((nint)window);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window)
{
byte ret = GetWindowAlwaysWantOwnTabBarNative(window);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockedNative(ImGuiWindow* window, bool* pOpen)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, bool*, void>)funcTable[1082])(window, pOpen);
#else
((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1082])((nint)window, (nint)pOpen);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen)
{
BeginDockedNative(window, pOpen);
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDocked(ref ImGuiWindow window, bool* pOpen)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockedNative((ImGuiWindow*)pwindow, pOpen);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen)
{
fixed (bool* ppOpen = &pOpen)
{
BeginDockedNative(window, (bool*)ppOpen);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen)
{
fixed (ImGuiWindow* pwindow = &window)
{
fixed (bool* ppOpen = &pOpen)
{
BeginDockedNative((ImGuiWindow*)pwindow, (bool*)ppOpen);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockableDragDropSourceNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1083])(window);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1083])((nint)window);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDockableDragDropSource(ImGuiWindowPtr window)
{
BeginDockableDragDropSourceNative(window);
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDockableDragDropSource(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginDockableDragDropTargetNative(ImGuiWindow* window)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1084])(window);
#else
((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1084])((nint)window);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDockableDragDropTarget(ImGuiWindowPtr window)
{
BeginDockableDragDropTargetNative(window);
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginDockableDragDropTarget(ref ImGuiWindow window)
{
fixed (ImGuiWindow* pwindow = &window)
{
BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetWindowDockNative(ImGuiWindow* window, uint dockId, ImGuiCond cond)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiCond, void>)funcTable[1085])(window, dockId, cond);
#else
((delegate* unmanaged[Cdecl]<nint, uint, ImGuiCond, void>)funcTable[1085])((nint)window, dockId, cond);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond)
{
SetWindowDockNative(window, dockId, cond);
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond)
{
fixed (ImGuiWindow* pwindow = &window)
{
SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<byte*, uint, void>)funcTable[1086])(windowName, nodeId);
#else
((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[1086])((nint)windowName, nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderDockWindow(byte* windowName, uint nodeId)
{
DockBuilderDockWindowNative(windowName, nodeId);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderDockWindow(ref byte windowName, uint nodeId)
{
fixed (byte* pwindowName = &windowName)
{
DockBuilderDockWindowNative((byte*)pwindowName, nodeId);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderDockWindow(ReadOnlySpan<byte> windowName, uint nodeId)
{
fixed (byte* pwindowName = windowName)
{
DockBuilderDockWindowNative((byte*)pwindowName, nodeId);
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)funcTable[1087])(nodeId);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1087])(nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId)
{
ImGuiDockNodePtr ret = DockBuilderGetNodeNative(nodeId);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)funcTable[1088])(nodeId);
#else
return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1088])(nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId)
{
ImGuiDockNodePtr ret = DockBuilderGetCentralNodeNative(nodeId);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint DockBuilderAddNodeNative(uint nodeId, ImGuiDockNodeFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNodeFlags, uint>)funcTable[1089])(nodeId, flags);
#else
return (uint)((delegate* unmanaged[Cdecl]<uint, ImGuiDockNodeFlags, uint>)funcTable[1089])(nodeId, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags)
{
uint ret = DockBuilderAddNodeNative(nodeId, flags);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockBuilderAddNode(uint nodeId)
{
uint ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockBuilderAddNode()
{
uint ret = DockBuilderAddNodeNative((uint)(0), (ImGuiDockNodeFlags)(0));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags)
{
uint ret = DockBuilderAddNodeNative((uint)(0), flags);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1090])(nodeId);
#else
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1090])(nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderRemoveNode(uint nodeId)
{
DockBuilderRemoveNodeNative(nodeId);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, byte, void>)funcTable[1091])(nodeId, clearSettingsRefs);
#else
((delegate* unmanaged[Cdecl]<uint, byte, void>)funcTable[1091])(nodeId, clearSettingsRefs);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs)
{
DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderRemoveNodeDockedWindows(uint nodeId)
{
DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1));
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderRemoveNodeChildNodesNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1092])(nodeId);
#else
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1092])(nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderRemoveNodeChildNodes(uint nodeId)
{
DockBuilderRemoveNodeChildNodesNative(nodeId);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1093])(nodeId, pos);
#else
((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1093])(nodeId, pos);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos)
{
DockBuilderSetNodePosNative(nodeId, pos);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1094])(nodeId, size);
#else
((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1094])(nodeId, size);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size)
{
DockBuilderSetNodeSizeNative(nodeId, size);
}
/// <summary>
/// To be documented.
/// </summary>
[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]<uint, ImGuiDir, float, uint*, uint*, uint>)funcTable[1095])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir);
#else
return (uint)((delegate* unmanaged[Cdecl]<uint, ImGuiDir, float, nint, nint, uint>)funcTable[1095])(nodeId, splitDir, sizeRatioForNodeAtDir, (nint)outIdAtDir, (nint)outIdAtOppositeDir);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir)
{
uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
/// <summary>
/// To be documented.
/// </summary>
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;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, uint, ImVector<ConstPointer<byte>>*, void>)funcTable[1096])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs);
#else
((delegate* unmanaged[Cdecl]<uint, uint, nint, void>)funcTable[1096])(srcDockspaceId, dstDockspaceId, (nint)inWindowRemapPairs);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs)
{
DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector<ConstPointer<byte>> inWindowRemapPairs)
{
fixed (ImVector<ConstPointer<byte>>* pinWindowRemapPairs = &inWindowRemapPairs)
{
DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVector<ConstPointer<byte>>*)pinWindowRemapPairs);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector<int>* outNodeRemapPairs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, uint, ImVector<int>*, void>)funcTable[1097])(srcNodeId, dstNodeId, outNodeRemapPairs);
#else
((delegate* unmanaged[Cdecl]<uint, uint, nint, void>)funcTable[1097])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector<int>* outNodeRemapPairs)
{
DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector<int> outNodeRemapPairs)
{
fixed (ImVector<int>* poutNodeRemapPairs = &outNodeRemapPairs)
{
DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector<int>*)poutNodeRemapPairs);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[1098])(srcName, dstName);
#else
((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1098])((nint)srcName, (nint)dstName);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, dstName);
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ref byte srcName, byte* dstName)
{
fixed (byte* psrcName = &srcName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, byte* dstName)
{
fixed (byte* psrcName = srcName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName);
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(byte* srcName, ref byte dstName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(byte* srcName, ReadOnlySpan<byte> dstName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName);
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ref byte srcName, ref byte dstName)
{
fixed (byte* psrcName = &srcName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, ReadOnlySpan<byte> dstName)
{
fixed (byte* psrcName = srcName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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<byte>(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);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ref byte srcName, ReadOnlySpan<byte> dstName)
{
fixed (byte* psrcName = &srcName)
{
fixed (byte* pdstName = dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, ref byte dstName)
{
fixed (byte* psrcName = srcName)
{
fixed (byte* pdstName = &dstName)
{
DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(ReadOnlySpan<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<byte>(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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
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<byte>(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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderCopyWindowSettings(string srcName, ReadOnlySpan<byte> dstName)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (srcName != null)
{
pStrSize0 = Utils.GetByteCountUTF8(srcName);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(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);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DockBuilderFinishNative(uint nodeId)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1099])(nodeId);
#else
((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1099])(nodeId);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void DockBuilderFinish(uint nodeId)
{
DockBuilderFinishNative(nodeId);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsDragDropActiveNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1100])();
#else
return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1100])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsDragDropActive()
{
byte ret = IsDragDropActiveNative();
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte BeginDragDropTargetCustomNative(ImRect bb, uint id)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[1101])(bb, id);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[1101])(bb, id);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool BeginDragDropTargetCustom(ImRect bb, uint id)
{
byte ret = BeginDragDropTargetCustomNative(bb, id);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearDragDropNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1102])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1102])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void ClearDragDrop()
{
ClearDragDropNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsDragDropPayloadBeingAcceptedNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1103])();
#else
return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1103])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool IsDragDropPayloadBeingAccepted()
{
byte ret = IsDragDropPayloadBeingAcceptedNative();
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, void>)funcTable[1104])(window, clipRect);
#else
((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[1104])((nint)window, clipRect);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect)
{
SetWindowClipRectBeforeSetChannelNative(window, clipRect);
}
/// <summary>
/// To be documented.
/// </summary>
public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect)
{
fixed (ImGuiWindow* pwindow = &window)
{
SetWindowClipRectBeforeSetChannelNative((ImGuiWindow*)pwindow, clipRect);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<byte*, int, ImGuiOldColumnFlags, void>)funcTable[1105])(strId, count, flags);
#else
((delegate* unmanaged[Cdecl]<nint, int, ImGuiOldColumnFlags, void>)funcTable[1105])((nint)strId, count, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags)
{
BeginColumnsNative(strId, count, flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(byte* strId, int count)
{
BeginColumnsNative(strId, count, (ImGuiOldColumnFlags)(0));
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(ref byte strId, int count, ImGuiOldColumnFlags flags)
{
fixed (byte* pstrId = &strId)
{
BeginColumnsNative((byte*)pstrId, count, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(ref byte strId, int count)
{
fixed (byte* pstrId = &strId)
{
BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(ReadOnlySpan<byte> strId, int count, ImGuiOldColumnFlags flags)
{
fixed (byte* pstrId = strId)
{
BeginColumnsNative((byte*)pstrId, count, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(ReadOnlySpan<byte> strId, int count)
{
fixed (byte* pstrId = strId)
{
BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(string strId, int count, ImGuiOldColumnFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (strId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(strId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
BeginColumnsNative(pStr0, count, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void BeginColumns(string strId, int count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (strId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(strId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
BeginColumnsNative(pStr0, count, (ImGuiOldColumnFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void EndColumnsNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1106])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1106])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void EndColumns()
{
EndColumnsNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void PushColumnClipRectNative(int columnIndex)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<int, void>)funcTable[1107])(columnIndex);
#else
((delegate* unmanaged[Cdecl]<int, void>)funcTable[1107])(columnIndex);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void PushColumnClipRect(int columnIndex)
{
PushColumnClipRectNative(columnIndex);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void PushColumnsBackgroundNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1108])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1108])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void PushColumnsBackground()
{
PushColumnsBackgroundNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void PopColumnsBackgroundNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<void>)funcTable[1109])();
#else
((delegate* unmanaged[Cdecl]<void>)funcTable[1109])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void PopColumnsBackground()
{
PopColumnsBackgroundNative();
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetColumnsIDNative(byte* strId, int count)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, int, uint>)funcTable[1110])(strId, count);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[1110])((nint)strId, count);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetColumnsID(byte* strId, int count)
{
uint ret = GetColumnsIDNative(strId, count);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetColumnsID(ref byte strId, int count)
{
fixed (byte* pstrId = &strId)
{
uint ret = GetColumnsIDNative((byte*)pstrId, count);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetColumnsID(ReadOnlySpan<byte> strId, int count)
{
fixed (byte* pstrId = strId)
{
uint ret = GetColumnsIDNative((byte*)pstrId, count);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetColumnsID(string strId, int count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (strId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(strId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
uint ret = GetColumnsIDNative(pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiOldColumns*>)funcTable[1111])(window, id);
#else
return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[1111])((nint)window, id);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id)
{
ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative(window, id);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id)
{
fixed (ImGuiWindow* pwindow = &window)
{
ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative((ImGuiWindow*)pwindow, id);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)funcTable[1112])(columns, offsetNorm);
#else
return (float)((delegate* unmanaged[Cdecl]<nint, float, float>)funcTable[1112])((nint)columns, offsetNorm);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm)
{
float ret = GetColumnOffsetFromNormNative(columns, offsetNorm);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm)
{
fixed (ImGuiOldColumns* pcolumns = &columns)
{
float ret = GetColumnOffsetFromNormNative((ImGuiOldColumns*)pcolumns, offsetNorm);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)funcTable[1113])(columns, offset);
#else
return (float)((delegate* unmanaged[Cdecl]<nint, float, float>)funcTable[1113])((nint)columns, offset);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset)
{
float ret = GetColumnNormFromOffsetNative(columns, offset);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset)
{
fixed (ImGuiOldColumns* pcolumns = &columns)
{
float ret = GetColumnNormFromOffsetNative((ImGuiOldColumns*)pcolumns, offset);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void TableOpenContextMenuNative(int columnN)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<int, void>)funcTable[1114])(columnN);
#else
((delegate* unmanaged[Cdecl]<int, void>)funcTable[1114])(columnN);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void TableOpenContextMenu(int columnN)
{
TableOpenContextMenuNative(columnN);
}
/// <summary>
/// To be documented.
/// </summary>
public static void TableOpenContextMenu()
{
TableOpenContextMenuNative((int)(-1));
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void TableSetColumnWidthNative(int columnN, float width)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[1115])(columnN, width);
#else
((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[1115])(columnN, width);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void TableSetColumnWidth(int columnN, float width)
{
TableSetColumnWidthNative(columnN, width);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void TableSetColumnSortDirectionNative(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<int, ImGuiSortDirection, byte, void>)funcTable[1116])(columnN, sortDirection, appendToSortSpecs);
#else
((delegate* unmanaged[Cdecl]<int, ImGuiSortDirection, byte, void>)funcTable[1116])(columnN, sortDirection, appendToSortSpecs);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs)
{
TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static int TableGetHoveredColumnNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<int>)funcTable[1117])();
#else
return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[1117])();
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static int TableGetHoveredColumn()
{
int ret = TableGetHoveredColumnNative();
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static float TableGetHeaderRowHeightNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<float>)funcTable[1118])();
#else
return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[1118])();
#endif
}
}
}