// ------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// ------------------------------------------------------------------------------
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
namespace Dalamud.Bindings.ImGui
{
public unsafe partial class ImGui
{
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = &versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (versionStr != null)
{
pStrSize0 = Utils.GetByteCountUTF8(versionStr);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = &versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (versionStr != null)
{
pStrSize0 = Utils.GetByteCountUTF8(versionStr);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = &versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (versionStr != null)
{
pStrSize0 = Utils.GetByteCountUTF8(versionStr);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = &versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(string versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (versionStr != null)
{
pStrSize0 = Utils.GetByteCountUTF8(versionStr);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = &versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
fixed (byte* pversionStr = versionStr)
{
byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (versionStr != null)
{
pStrSize0 = Utils.GetByteCountUTF8(versionStr);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl], delegate*, void*, void>)funcTable[384])((delegate*)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*)Utils.GetFunctionPointerForDelegate(freeFunc), userData);
#else
((delegate* unmanaged[Cdecl])funcTable[384])((nint)Utils.GetFunctionPointerForDelegate(allocFunc), (nint)Utils.GetFunctionPointerForDelegate(freeFunc), (nint)userData);
#endif
}
///
/// To be documented.
///
public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData)
{
SetAllocatorFunctionsNative(allocFunc, freeFunc, userData);
}
///
/// To be documented.
///
public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc)
{
SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default));
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void GetAllocatorFunctionsNative(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]*, delegate**, void**, void>)funcTable[385])(pAllocFunc, pFreeFunc, pUserData);
#else
((delegate* unmanaged[Cdecl])funcTable[385])((nint)pAllocFunc, (nint)pFreeFunc, (nint)pUserData);
#endif
}
///
/// To be documented.
///
public static void GetAllocatorFunctions(delegate** pAllocFunc, delegate** pFreeFunc, void** pUserData)
{
GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void* MemAllocNative(ulong size)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[386])(size);
#else
return (void*)((delegate* unmanaged[Cdecl])funcTable[386])(size);
#endif
}
///
/// To be documented.
///
public static void* MemAlloc(ulong size)
{
void* ret = MemAllocNative(size);
return ret;
}
///
/// To be documented.
///
public static void* MemAlloc(nuint size)
{
void* ret = MemAllocNative(size);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void MemFreeNative(void* ptr)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[387])(ptr);
#else
((delegate* unmanaged[Cdecl])funcTable[387])((nint)ptr);
#endif
}
///
/// To be documented.
///
public static void MemFree(void* ptr)
{
MemFreeNative(ptr);
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiPlatformIO* GetPlatformIONative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[388])();
#else
return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl])funcTable[388])();
#endif
}
///
/// To be documented.
///
public static ImGuiPlatformIOPtr GetPlatformIO()
{
ImGuiPlatformIOPtr ret = GetPlatformIONative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void UpdatePlatformWindowsNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[389])();
#else
((delegate* unmanaged[Cdecl])funcTable[389])();
#endif
}
///
/// To be documented.
///
public static void UpdatePlatformWindows()
{
UpdatePlatformWindowsNative();
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[390])(platformRenderArg, rendererRenderArg);
#else
((delegate* unmanaged[Cdecl])funcTable[390])((nint)platformRenderArg, (nint)rendererRenderArg);
#endif
}
///
/// To be documented.
///
public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg)
{
RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg);
}
///
/// To be documented.
///
public static void RenderPlatformWindowsDefault(void* platformRenderArg)
{
RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default));
}
///
/// To be documented.
///
public static void RenderPlatformWindowsDefault()
{
RenderPlatformWindowsDefaultNative((void*)(default), (void*)(default));
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyPlatformWindowsNative()
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[391])();
#else
((delegate* unmanaged[Cdecl])funcTable[391])();
#endif
}
///
/// To be documented.
///
public static void DestroyPlatformWindows()
{
DestroyPlatformWindowsNative();
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiViewport* FindViewportByIDNative(uint id)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[392])(id);
#else
return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[392])(id);
#endif
}
///
/// To be documented.
///
public static ImGuiViewportPtr FindViewportByID(uint id)
{
ImGuiViewportPtr ret = FindViewportByIDNative(id);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[393])(platformHandle);
#else
return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[393])((nint)platformHandle);
#endif
}
///
/// To be documented.
///
public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle)
{
ImGuiViewportPtr ret = FindViewportByPlatformHandleNative(platformHandle);
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiStyle* ImGuiStyleNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[394])();
#else
return (ImGuiStyle*)((delegate* unmanaged[Cdecl])funcTable[394])();
#endif
}
///
/// To be documented.
///
public static ImGuiStylePtr ImGuiStyle()
{
ImGuiStylePtr ret = ImGuiStyleNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiStyle* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[395])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[395])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiStylePtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiStyle self)
{
fixed (ImGuiStyle* pself = &self)
{
DestroyNative((ImGuiStyle*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[396])(self, scaleFactor);
#else
((delegate* unmanaged[Cdecl])funcTable[396])((nint)self, scaleFactor);
#endif
}
///
/// To be documented.
///
public static void ScaleAllSizes(ImGuiStylePtr self, float scaleFactor)
{
ScaleAllSizesNative(self, scaleFactor);
}
///
/// To be documented.
///
public static void ScaleAllSizes(ref ImGuiStyle self, float scaleFactor)
{
fixed (ImGuiStyle* pself = &self)
{
ScaleAllSizesNative((ImGuiStyle*)pself, scaleFactor);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[397])(self, key, down);
#else
((delegate* unmanaged[Cdecl])funcTable[397])((nint)self, key, down);
#endif
}
///
/// To be documented.
///
public static void AddKeyEvent(ImGuiIOPtr self, ImGuiKey key, bool down)
{
AddKeyEventNative(self, key, down ? (byte)1 : (byte)0);
}
///
/// To be documented.
///
public static void AddKeyEvent(ref ImGuiIO self, ImGuiKey key, bool down)
{
fixed (ImGuiIO* pself = &self)
{
AddKeyEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[398])(self, key, down, v);
#else
((delegate* unmanaged[Cdecl])funcTable[398])((nint)self, key, down, v);
#endif
}
///
/// To be documented.
///
public static void AddKeyAnalogEvent(ImGuiIOPtr self, ImGuiKey key, bool down, float v)
{
AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v);
}
///
/// To be documented.
///
public static void AddKeyAnalogEvent(ref ImGuiIO self, ImGuiKey key, bool down, float v)
{
fixed (ImGuiIO* pself = &self)
{
AddKeyAnalogEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddMousePosEventNative(ImGuiIO* self, float x, float y)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[399])(self, x, y);
#else
((delegate* unmanaged[Cdecl])funcTable[399])((nint)self, x, y);
#endif
}
///
/// To be documented.
///
public static void AddMousePosEvent(ImGuiIOPtr self, float x, float y)
{
AddMousePosEventNative(self, x, y);
}
///
/// To be documented.
///
public static void AddMousePosEvent(ref ImGuiIO self, float x, float y)
{
fixed (ImGuiIO* pself = &self)
{
AddMousePosEventNative((ImGuiIO*)pself, x, y);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[400])(self, button, down);
#else
((delegate* unmanaged[Cdecl])funcTable[400])((nint)self, button, down);
#endif
}
///
/// To be documented.
///
public static void AddMouseButtonEvent(ImGuiIOPtr self, int button, bool down)
{
AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0);
}
///
/// To be documented.
///
public static void AddMouseButtonEvent(ref ImGuiIO self, int button, bool down)
{
fixed (ImGuiIO* pself = &self)
{
AddMouseButtonEventNative((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddMouseWheelEventNative(ImGuiIO* self, float whX, float whY)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[401])(self, whX, whY);
#else
((delegate* unmanaged[Cdecl])funcTable[401])((nint)self, whX, whY);
#endif
}
///
/// To be documented.
///
public static void AddMouseWheelEvent(ImGuiIOPtr self, float whX, float whY)
{
AddMouseWheelEventNative(self, whX, whY);
}
///
/// To be documented.
///
public static void AddMouseWheelEvent(ref ImGuiIO self, float whX, float whY)
{
fixed (ImGuiIO* pself = &self)
{
AddMouseWheelEventNative((ImGuiIO*)pself, whX, whY);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddMouseViewportEventNative(ImGuiIO* self, uint id)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[402])(self, id);
#else
((delegate* unmanaged[Cdecl])funcTable[402])((nint)self, id);
#endif
}
///
/// To be documented.
///
public static void AddMouseViewportEvent(ImGuiIOPtr self, uint id)
{
AddMouseViewportEventNative(self, id);
}
///
/// To be documented.
///
public static void AddMouseViewportEvent(ref ImGuiIO self, uint id)
{
fixed (ImGuiIO* pself = &self)
{
AddMouseViewportEventNative((ImGuiIO*)pself, id);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddFocusEventNative(ImGuiIO* self, byte focused)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[403])(self, focused);
#else
((delegate* unmanaged[Cdecl])funcTable[403])((nint)self, focused);
#endif
}
///
/// To be documented.
///
public static void AddFocusEvent(ImGuiIOPtr self, bool focused)
{
AddFocusEventNative(self, focused ? (byte)1 : (byte)0);
}
///
/// To be documented.
///
public static void AddFocusEvent(ref ImGuiIO self, bool focused)
{
fixed (ImGuiIO* pself = &self)
{
AddFocusEventNative((ImGuiIO*)pself, focused ? (byte)1 : (byte)0);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddInputCharacterNative(ImGuiIO* self, uint c)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[404])(self, c);
#else
((delegate* unmanaged[Cdecl])funcTable[404])((nint)self, c);
#endif
}
///
/// To be documented.
///
public static void AddInputCharacter(ImGuiIOPtr self, uint c)
{
AddInputCharacterNative(self, c);
}
///
/// To be documented.
///
public static void AddInputCharacter(ref ImGuiIO self, uint c)
{
fixed (ImGuiIO* pself = &self)
{
AddInputCharacterNative((ImGuiIO*)pself, c);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[405])(self, c);
#else
((delegate* unmanaged[Cdecl])funcTable[405])((nint)self, c);
#endif
}
///
/// To be documented.
///
public static void AddInputCharacterUTF16(ImGuiIOPtr self, ushort c)
{
AddInputCharacterUTF16Native(self, c);
}
///
/// To be documented.
///
public static void AddInputCharacterUTF16(ref ImGuiIO self, ushort c)
{
fixed (ImGuiIO* pself = &self)
{
AddInputCharacterUTF16Native((ImGuiIO*)pself, c);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[406])(self, str);
#else
((delegate* unmanaged[Cdecl])funcTable[406])((nint)self, (nint)str);
#endif
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ImGuiIOPtr self, byte* str)
{
AddInputCharactersUTF8Native(self, str);
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ref ImGuiIO self, byte* str)
{
fixed (ImGuiIO* pself = &self)
{
AddInputCharactersUTF8Native((ImGuiIO*)pself, str);
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ImGuiIOPtr self, ref byte str)
{
fixed (byte* pstr = &str)
{
AddInputCharactersUTF8Native(self, (byte*)pstr);
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ImGuiIOPtr self, ReadOnlySpan str)
{
fixed (byte* pstr = str)
{
AddInputCharactersUTF8Native(self, (byte*)pstr);
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ImGuiIOPtr self, string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
AddInputCharactersUTF8Native(self, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ref ImGuiIO self, ref byte str)
{
fixed (ImGuiIO* pself = &self)
{
fixed (byte* pstr = &str)
{
AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr);
}
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ref ImGuiIO self, ReadOnlySpan str)
{
fixed (ImGuiIO* pself = &self)
{
fixed (byte* pstr = str)
{
AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr);
}
}
}
///
/// To be documented.
///
public static void AddInputCharactersUTF8(ref ImGuiIO self, string str)
{
fixed (ImGuiIO* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
AddInputCharactersUTF8Native((ImGuiIO*)pself, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
#else
((delegate* unmanaged[Cdecl])funcTable[407])((nint)self, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
#endif
}
///
/// To be documented.
///
public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex)
{
SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
}
///
/// To be documented.
///
public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode)
{
SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1));
}
///
/// To be documented.
///
public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex)
{
fixed (ImGuiIO* pself = &self)
{
SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex);
}
}
///
/// To be documented.
///
public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode)
{
fixed (ImGuiIO* pself = &self)
{
SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1));
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[408])(self, acceptingEvents);
#else
((delegate* unmanaged[Cdecl])funcTable[408])((nint)self, acceptingEvents);
#endif
}
///
/// To be documented.
///
public static void SetAppAcceptingEvents(ImGuiIOPtr self, bool acceptingEvents)
{
SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0);
}
///
/// To be documented.
///
public static void SetAppAcceptingEvents(ref ImGuiIO self, bool acceptingEvents)
{
fixed (ImGuiIO* pself = &self)
{
SetAppAcceptingEventsNative((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearInputCharactersNative(ImGuiIO* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[409])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[409])((nint)self);
#endif
}
///
/// To be documented.
///
public static void ClearInputCharacters(ImGuiIOPtr self)
{
ClearInputCharactersNative(self);
}
///
/// To be documented.
///
public static void ClearInputCharacters(ref ImGuiIO self)
{
fixed (ImGuiIO* pself = &self)
{
ClearInputCharactersNative((ImGuiIO*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearInputKeysNative(ImGuiIO* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[410])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[410])((nint)self);
#endif
}
///
/// To be documented.
///
public static void ClearInputKeys(ImGuiIOPtr self)
{
ClearInputKeysNative(self);
}
///
/// To be documented.
///
public static void ClearInputKeys(ref ImGuiIO self)
{
fixed (ImGuiIO* pself = &self)
{
ClearInputKeysNative((ImGuiIO*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiIO* ImGuiIONative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[411])();
#else
return (ImGuiIO*)((delegate* unmanaged[Cdecl])funcTable[411])();
#endif
}
///
/// To be documented.
///
public static ImGuiIOPtr ImGuiIO()
{
ImGuiIOPtr ret = ImGuiIONative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiIO* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[412])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[412])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiIOPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiIO self)
{
fixed (ImGuiIO* pself = &self)
{
DestroyNative((ImGuiIO*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[413])();
#else
return (ImGuiInputTextCallbackData*)((delegate* unmanaged[Cdecl])funcTable[413])();
#endif
}
///
/// To be documented.
///
public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData()
{
ImGuiInputTextCallbackDataPtr ret = ImGuiInputTextCallbackDataNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiInputTextCallbackData* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[414])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[414])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiInputTextCallbackDataPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiInputTextCallbackData self)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
DestroyNative((ImGuiInputTextCallbackData*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[415])(self, pos, bytesCount);
#else
((delegate* unmanaged[Cdecl])funcTable[415])((nint)self, pos, bytesCount);
#endif
}
///
/// To be documented.
///
public static void DeleteChars(ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount)
{
DeleteCharsNative(self, pos, bytesCount);
}
///
/// To be documented.
///
public static void DeleteChars(ref ImGuiInputTextCallbackData self, int pos, int bytesCount)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
DeleteCharsNative((ImGuiInputTextCallbackData*)pself, pos, bytesCount);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[416])(self, pos, text, textEnd);
#else
((delegate* unmanaged[Cdecl])funcTable[416])((nint)self, pos, (nint)text, (nint)textEnd);
#endif
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, byte* textEnd)
{
InsertCharsNative(self, pos, text, textEnd);
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text)
{
InsertCharsNative(self, pos, text, (byte*)(default));
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, byte* textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, textEnd);
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)(default));
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, byte* textEnd)
{
fixed (byte* ptext = &text)
{
InsertCharsNative(self, pos, (byte*)ptext, textEnd);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text)
{
fixed (byte* ptext = &text)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default));
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, byte* textEnd)
{
fixed (byte* ptext = text)
{
InsertCharsNative(self, pos, (byte*)ptext, textEnd);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text)
{
fixed (byte* ptext = text)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default));
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, byte* textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative(self, pos, pStr0, textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative(self, pos, pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, byte* textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = &text)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = &text)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default));
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, byte* textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = text)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = text)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default));
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, byte* textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ref byte textEnd)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative(self, pos, text, (byte*)ptextEnd);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ReadOnlySpan textEnd)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative(self, pos, text, (byte*)ptextEnd);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative(self, pos, text, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ref byte textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ReadOnlySpan textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, string textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ref byte textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
InsertCharsNative(self, pos, pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ReadOnlySpan textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, string textEnd)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative(self, pos, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, ref byte textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan text, string textEnd)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative(self, pos, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ref byte textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ReadOnlySpan textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ref byte textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ReadOnlySpan textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, string textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ReadOnlySpan textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, string textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, ref byte textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan text, string textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ref byte textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
///
/// To be documented.
///
public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ReadOnlySpan textEnd)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SelectAllNative(ImGuiInputTextCallbackData* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[417])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[417])((nint)self);
#endif
}
///
/// To be documented.
///
public static void SelectAll(ImGuiInputTextCallbackDataPtr self)
{
SelectAllNative(self);
}
///
/// To be documented.
///
public static void SelectAll(ref ImGuiInputTextCallbackData self)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
SelectAllNative((ImGuiInputTextCallbackData*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearSelectionNative(ImGuiInputTextCallbackData* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[418])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[418])((nint)self);
#endif
}
///
/// To be documented.
///
public static void ClearSelection(ImGuiInputTextCallbackDataPtr self)
{
ClearSelectionNative(self);
}
///
/// To be documented.
///
public static void ClearSelection(ref ImGuiInputTextCallbackData self)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
ClearSelectionNative((ImGuiInputTextCallbackData*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte HasSelectionNative(ImGuiInputTextCallbackData* self)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[419])(self);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[419])((nint)self);
#endif
}
///
/// To be documented.
///
public static bool HasSelection(ImGuiInputTextCallbackDataPtr self)
{
byte ret = HasSelectionNative(self);
return ret != 0;
}
///
/// To be documented.
///
public static bool HasSelection(ref ImGuiInputTextCallbackData self)
{
fixed (ImGuiInputTextCallbackData* pself = &self)
{
byte ret = HasSelectionNative((ImGuiInputTextCallbackData*)pself);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiWindowClass* ImGuiWindowClassNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[420])();
#else
return (ImGuiWindowClass*)((delegate* unmanaged[Cdecl])funcTable[420])();
#endif
}
///
/// To be documented.
///
public static ImGuiWindowClassPtr ImGuiWindowClass()
{
ImGuiWindowClassPtr ret = ImGuiWindowClassNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiWindowClass* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[421])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[421])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiWindowClassPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiWindowClass self)
{
fixed (ImGuiWindowClass* pself = &self)
{
DestroyNative((ImGuiWindowClass*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiPayload* ImGuiPayloadNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[422])();
#else
return (ImGuiPayload*)((delegate* unmanaged[Cdecl])funcTable[422])();
#endif
}
///
/// To be documented.
///
public static ImGuiPayloadPtr ImGuiPayload()
{
ImGuiPayloadPtr ret = ImGuiPayloadNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiPayload* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[423])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[423])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiPayloadPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiPayload self)
{
fixed (ImGuiPayload* pself = &self)
{
DestroyNative((ImGuiPayload*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearNative(ImGuiPayload* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[424])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[424])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Clear(ImGuiPayloadPtr self)
{
ClearNative(self);
}
///
/// To be documented.
///
public static void Clear(ref ImGuiPayload self)
{
fixed (ImGuiPayload* pself = &self)
{
ClearNative((ImGuiPayload*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[425])(self, type);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[425])((nint)self, (nint)type);
#endif
}
///
/// To be documented.
///
public static bool IsDataType(ImGuiPayloadPtr self, byte* type)
{
byte ret = IsDataTypeNative(self, type);
return ret != 0;
}
///
/// To be documented.
///
public static bool IsDataType(ref ImGuiPayload self, byte* type)
{
fixed (ImGuiPayload* pself = &self)
{
byte ret = IsDataTypeNative((ImGuiPayload*)pself, type);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool IsDataType(ImGuiPayloadPtr self, ref byte type)
{
fixed (byte* ptype = &type)
{
byte ret = IsDataTypeNative(self, (byte*)ptype);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool IsDataType(ImGuiPayloadPtr self, ReadOnlySpan type)
{
fixed (byte* ptype = type)
{
byte ret = IsDataTypeNative(self, (byte*)ptype);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool IsDataType(ImGuiPayloadPtr self, string type)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (type != null)
{
pStrSize0 = Utils.GetByteCountUTF8(type);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = IsDataTypeNative(self, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool IsDataType(ref ImGuiPayload self, ref byte type)
{
fixed (ImGuiPayload* pself = &self)
{
fixed (byte* ptype = &type)
{
byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool IsDataType(ref ImGuiPayload self, ReadOnlySpan type)
{
fixed (ImGuiPayload* pself = &self)
{
fixed (byte* ptype = type)
{
byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool IsDataType(ref ImGuiPayload self, string type)
{
fixed (ImGuiPayload* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (type != null)
{
pStrSize0 = Utils.GetByteCountUTF8(type);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = IsDataTypeNative((ImGuiPayload*)pself, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsPreviewNative(ImGuiPayload* self)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[426])(self);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[426])((nint)self);
#endif
}
///
/// To be documented.
///
public static bool IsPreview(ImGuiPayloadPtr self)
{
byte ret = IsPreviewNative(self);
return ret != 0;
}
///
/// To be documented.
///
public static bool IsPreview(ref ImGuiPayload self)
{
fixed (ImGuiPayload* pself = &self)
{
byte ret = IsPreviewNative((ImGuiPayload*)pself);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsDeliveryNative(ImGuiPayload* self)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[427])(self);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[427])((nint)self);
#endif
}
///
/// To be documented.
///
public static bool IsDelivery(ImGuiPayloadPtr self)
{
byte ret = IsDeliveryNative(self);
return ret != 0;
}
///
/// To be documented.
///
public static bool IsDelivery(ref ImGuiPayload self)
{
fixed (ImGuiPayload* pself = &self)
{
byte ret = IsDeliveryNative((ImGuiPayload*)pself);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[428])();
#else
return (ImGuiTableColumnSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[428])();
#endif
}
///
/// To be documented.
///
public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs()
{
ImGuiTableColumnSortSpecsPtr ret = ImGuiTableColumnSortSpecsNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiTableColumnSortSpecs* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[429])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[429])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiTableColumnSortSpecsPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiTableColumnSortSpecs self)
{
fixed (ImGuiTableColumnSortSpecs* pself = &self)
{
DestroyNative((ImGuiTableColumnSortSpecs*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiTableSortSpecs* ImGuiTableSortSpecsNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[430])();
#else
return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl])funcTable[430])();
#endif
}
///
/// To be documented.
///
public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs()
{
ImGuiTableSortSpecsPtr ret = ImGuiTableSortSpecsNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiTableSortSpecs* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[431])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[431])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiTableSortSpecsPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiTableSortSpecs self)
{
fixed (ImGuiTableSortSpecs* pself = &self)
{
DestroyNative((ImGuiTableSortSpecs*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[432])();
#else
return (ImGuiOnceUponAFrame*)((delegate* unmanaged[Cdecl])funcTable[432])();
#endif
}
///
/// To be documented.
///
public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame()
{
ImGuiOnceUponAFramePtr ret = ImGuiOnceUponAFrameNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiOnceUponAFrame* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[433])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[433])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiOnceUponAFramePtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiOnceUponAFrame self)
{
fixed (ImGuiOnceUponAFrame* pself = &self)
{
DestroyNative((ImGuiOnceUponAFrame*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[434])(defaultFilter);
#else
return (ImGuiTextFilter*)((delegate* unmanaged[Cdecl])funcTable[434])((nint)defaultFilter);
#endif
}
///
/// To be documented.
///
public static ImGuiTextFilterPtr ImGuiTextFilter(byte* defaultFilter)
{
ImGuiTextFilterPtr ret = ImGuiTextFilterNative(defaultFilter);
return ret;
}
///
/// To be documented.
///
public static ImGuiTextFilterPtr ImGuiTextFilter()
{
ImGuiTextFilterPtr ret = ImGuiTextFilter((string)"");
return ret;
}
///
/// To be documented.
///
public static ImGuiTextFilterPtr ImGuiTextFilter(ref byte defaultFilter)
{
fixed (byte* pdefaultFilter = &defaultFilter)
{
ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextFilterPtr ImGuiTextFilter(ReadOnlySpan defaultFilter)
{
fixed (byte* pdefaultFilter = defaultFilter)
{
ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextFilterPtr ImGuiTextFilter(string defaultFilter)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (defaultFilter != null)
{
pStrSize0 = Utils.GetByteCountUTF8(defaultFilter);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(defaultFilter, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiTextFilterPtr ret = ImGuiTextFilterNative(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiTextFilter* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[435])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[435])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiTextFilterPtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiTextFilter self)
{
fixed (ImGuiTextFilter* pself = &self)
{
DestroyNative((ImGuiTextFilter*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[436])(self, label, width);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[436])((nint)self, (nint)label, width);
#endif
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, byte* label, float width)
{
byte ret = DrawNative(self, label, width);
return ret != 0;
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, byte* label)
{
byte ret = DrawNative(self, label, (float)(0.0f));
return ret != 0;
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self)
{
bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f));
return ret;
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, float width)
{
bool ret = Draw(self, (string)"Filter(inc,-exc)", width);
return ret;
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, byte* label, float width)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, label, width);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, byte* label)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, label, (float)(0.0f));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self)
{
fixed (ImGuiTextFilter* pself = &self)
{
bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", (float)(0.0f));
return ret;
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, float width)
{
fixed (ImGuiTextFilter* pself = &self)
{
bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", width);
return ret;
}
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, ref byte label, float width)
{
fixed (byte* plabel = &label)
{
byte ret = DrawNative(self, (byte*)plabel, width);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, ref byte label)
{
fixed (byte* plabel = &label)
{
byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label, float width)
{
fixed (byte* plabel = label)
{
byte ret = DrawNative(self, (byte*)plabel, width);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan label)
{
fixed (byte* plabel = label)
{
byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, string label, float width)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DrawNative(self, pStr0, width);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool Draw(ImGuiTextFilterPtr self, string label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DrawNative(self, pStr0, (float)(0.0f));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, ref byte label, float width)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* plabel = &label)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, ref byte label)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* plabel = &label)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f));
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label, float width)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* plabel = label)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan label)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* plabel = label)
{
byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f));
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, string label, float width)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, width);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool Draw(ref ImGuiTextFilter self, string label)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, (float)(0.0f));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[437])(self, text, textEnd);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[437])((nint)self, (nint)text, (nint)textEnd);
#endif
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, byte* textEnd)
{
byte ret = PassFilterNative(self, text, textEnd);
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, byte* text)
{
byte ret = PassFilterNative(self, text, (byte*)(default));
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, byte* text, byte* textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, textEnd);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, byte* text)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)(default));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, byte* textEnd)
{
fixed (byte* ptext = &text)
{
byte ret = PassFilterNative(self, (byte*)ptext, textEnd);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text)
{
fixed (byte* ptext = &text)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, byte* textEnd)
{
fixed (byte* ptext = text)
{
byte ret = PassFilterNative(self, (byte*)ptext, textEnd);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text)
{
fixed (byte* ptext = text)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default));
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, string text, byte* textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative(self, pStr0, textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, string text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative(self, pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, byte* textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = &text)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ref byte text)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = &text)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default));
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, byte* textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = text)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = text)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default));
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, string text, byte* textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, string text)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ref byte textEnd)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative(self, text, (byte*)ptextEnd);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ReadOnlySpan textEnd)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative(self, text, (byte*)ptextEnd);
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative(self, text, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ref byte textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ReadOnlySpan textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, byte* text, string textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ref byte textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ReadOnlySpan textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, string text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte ret = PassFilterNative(self, pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ReadOnlySpan textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, string textEnd)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative(self, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, ref byte textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan text, string textEnd)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative(self, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, string text, ref byte textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ImGuiTextFilterPtr self, string text, ReadOnlySpan textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ref byte textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ReadOnlySpan textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, string text, string textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ReadOnlySpan textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, string textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, ref byte textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd);
return ret != 0;
}
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan text, string textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, string text, ref byte textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
}
///
/// To be documented.
///
public static bool PassFilter(ref ImGuiTextFilter self, string text, ReadOnlySpan textEnd)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void BuildNative(ImGuiTextFilter* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[438])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[438])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Build(ImGuiTextFilterPtr self)
{
BuildNative(self);
}
///
/// To be documented.
///
public static void Build(ref ImGuiTextFilter self)
{
fixed (ImGuiTextFilter* pself = &self)
{
BuildNative((ImGuiTextFilter*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ClearNative(ImGuiTextFilter* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[439])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[439])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Clear(ImGuiTextFilterPtr self)
{
ClearNative(self);
}
///
/// To be documented.
///
public static void Clear(ref ImGuiTextFilter self)
{
fixed (ImGuiTextFilter* pself = &self)
{
ClearNative((ImGuiTextFilter*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte IsActiveNative(ImGuiTextFilter* self)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[440])(self);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[440])((nint)self);
#endif
}
///
/// To be documented.
///
public static bool IsActive(ImGuiTextFilterPtr self)
{
byte ret = IsActiveNative(self);
return ret != 0;
}
///
/// To be documented.
///
public static bool IsActive(ref ImGuiTextFilter self)
{
fixed (ImGuiTextFilter* pself = &self)
{
byte ret = IsActiveNative((ImGuiTextFilter*)pself);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiTextRange* ImGuiTextRangeNative()
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[441])();
#else
return (ImGuiTextRange*)((delegate* unmanaged[Cdecl])funcTable[441])();
#endif
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange()
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative();
return ret;
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void DestroyNative(ImGuiTextRange* self)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl])funcTable[442])(self);
#else
((delegate* unmanaged[Cdecl])funcTable[442])((nint)self);
#endif
}
///
/// To be documented.
///
public static void Destroy(ImGuiTextRangePtr self)
{
DestroyNative(self);
}
///
/// To be documented.
///
public static void Destroy(ref ImGuiTextRange self)
{
fixed (ImGuiTextRange* pself = &self)
{
DestroyNative((ImGuiTextRange*)pself);
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImGuiTextRange* ImGuiTextRangeNative(byte* b, byte* e)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[443])(b, e);
#else
return (ImGuiTextRange*)((delegate* unmanaged[Cdecl])funcTable[443])((nint)b, (nint)e);
#endif
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(byte* b, byte* e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, e);
return ret;
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, byte* e)
{
fixed (byte* pb = &b)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, byte* e)
{
fixed (byte* pb = b)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(string b, byte* e)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (b != null)
{
pStrSize0 = Utils.GetByteCountUTF8(b);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, e);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ref byte e)
{
fixed (byte* pe = &e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ReadOnlySpan e)
{
fixed (byte* pe = e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe);
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(byte* b, string e)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (e != null)
{
pStrSize0 = Utils.GetByteCountUTF8(e);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ref byte e)
{
fixed (byte* pb = &b)
{
fixed (byte* pe = &e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe);
return ret;
}
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, ReadOnlySpan e)
{
fixed (byte* pb = b)
{
fixed (byte* pe = e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe);
return ret;
}
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(string b, string e)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (b != null)
{
pStrSize0 = Utils.GetByteCountUTF8(b);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (e != null)
{
pStrSize1 = Utils.GetByteCountUTF8(e);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(e, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ReadOnlySpan e)
{
fixed (byte* pb = &b)
{
fixed (byte* pe = e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe);
return ret;
}
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, string e)
{
fixed (byte* pb = &b)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (e != null)
{
pStrSize0 = Utils.GetByteCountUTF8(e);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, ref byte e)
{
fixed (byte* pb = b)
{
fixed (byte* pe = &e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe);
return ret;
}
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan b, string e)
{
fixed (byte* pb = b)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (e != null)
{
pStrSize0 = Utils.GetByteCountUTF8(e);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(string b, ref byte e)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (b != null)
{
pStrSize0 = Utils.GetByteCountUTF8(b);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pe = &e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
///
/// To be documented.
///
public static ImGuiTextRangePtr ImGuiTextRange(string b, ReadOnlySpan e)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (b != null)
{
pStrSize0 = Utils.GetByteCountUTF8(b);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pe = e)
{
ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte emptyNative(ImGuiTextRange* self)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl])funcTable[444])(self);
#else
return (byte)((delegate* unmanaged[Cdecl])funcTable[444])((nint)self);
#endif
}
///
/// To be documented.
///
public static bool empty(ImGuiTextRangePtr self)
{
byte ret = emptyNative(self);
return ret != 0;
}
///
/// To be documented.
///
public static bool empty(ref ImGuiTextRange self)
{
fixed (ImGuiTextRange* pself = &self)
{
byte ret = emptyNative((ImGuiTextRange*)pself);
return ret != 0;
}
}
///
/// To be documented.
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void splitNative(ImGuiTextRange* self, byte separator, ImVector* output)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]*, void>)funcTable[445])(self, separator, output);
#else
((delegate* unmanaged[Cdecl])funcTable[445])((nint)self, separator, (nint)output);
#endif
}
///
/// To be documented.
///
public static void split(ImGuiTextRangePtr self, byte separator, ImVector* output)
{
splitNative(self, separator, output);
}
///
/// To be documented.
///
public static void split(ref ImGuiTextRange self, byte separator, ImVector* output)
{
fixed (ImGuiTextRange* pself = &self)
{
splitNative((ImGuiTextRange*)pself, separator, output);
}
}
///
/// To be documented.
///
public static void split(ImGuiTextRangePtr self, byte separator, ref ImVector output)
{
fixed (ImVector* poutput = &output)
{
splitNative(self, separator, (ImVector*)poutput);
}
}
///