// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGui { /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextFrameWantCaptureKeyboardNative(byte wantCaptureKeyboard) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[359])(wantCaptureKeyboard); #else ((delegate* unmanaged[Cdecl])funcTable[359])(wantCaptureKeyboard); #endif } /// /// To be documented. /// public static void SetNextFrameWantCaptureKeyboard(bool wantCaptureKeyboard) { SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseDownNative(ImGuiMouseButton button) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[360])(button); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[360])(button); #endif } /// /// To be documented. /// public static bool IsMouseDown(ImGuiMouseButton button) { byte ret = IsMouseDownNative(button); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseClickedNative(ImGuiMouseButton button, byte repeat) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[361])(button, repeat); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[361])(button, repeat); #endif } /// /// To be documented. /// public static bool IsMouseClicked(ImGuiMouseButton button, bool repeat) { byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool IsMouseClicked(ImGuiMouseButton button) { byte ret = IsMouseClickedNative(button, (byte)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseReleasedNative(ImGuiMouseButton button) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[362])(button); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[362])(button); #endif } /// /// To be documented. /// public static bool IsMouseReleased(ImGuiMouseButton button) { byte ret = IsMouseReleasedNative(button); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseDoubleClickedNative(ImGuiMouseButton button) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[363])(button); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[363])(button); #endif } /// /// To be documented. /// public static bool IsMouseDoubleClicked(ImGuiMouseButton button) { byte ret = IsMouseDoubleClickedNative(button); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int GetMouseClickedCountNative(ImGuiMouseButton button) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[364])(button); #else return (int)((delegate* unmanaged[Cdecl])funcTable[364])(button); #endif } /// /// To be documented. /// public static int GetMouseClickedCount(ImGuiMouseButton button) { int ret = GetMouseClickedCountNative(button); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseHoveringRectNative(Vector2 rMin, Vector2 rMax, byte clip) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[365])(rMin, rMax, clip); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[365])(rMin, rMax, clip); #endif } /// /// To be documented. /// public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, bool clip) { byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax) { byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMousePosValidNative(Vector2* mousePos) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[366])(mousePos); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[366])((nint)mousePos); #endif } /// /// To be documented. /// public static bool IsMousePosValid(Vector2* mousePos) { byte ret = IsMousePosValidNative(mousePos); return ret != 0; } /// /// To be documented. /// public static bool IsMousePosValid() { byte ret = IsMousePosValidNative((Vector2*)(default)); return ret != 0; } /// /// To be documented. /// public static bool IsMousePosValid(ref Vector2 mousePos) { fixed (Vector2* pmousePos = &mousePos) { byte ret = IsMousePosValidNative((Vector2*)pmousePos); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsAnyMouseDownNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[367])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[367])(); #endif } /// /// To be documented. /// public static bool IsAnyMouseDown() { byte ret = IsAnyMouseDownNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetMousePosNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[368])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[368])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetMousePos() { Vector2 ret; GetMousePosNative(&ret); return ret; } /// /// To be documented. /// public static void GetMousePos(Vector2* pOut) { GetMousePosNative(pOut); } /// /// To be documented. /// public static void GetMousePos(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetMousePosNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetMousePosOnOpeningCurrentPopupNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[369])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[369])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetMousePosOnOpeningCurrentPopup() { Vector2 ret; GetMousePosOnOpeningCurrentPopupNative(&ret); return ret; } /// /// To be documented. /// public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) { GetMousePosOnOpeningCurrentPopupNative(pOut); } /// /// To be documented. /// public static void GetMousePosOnOpeningCurrentPopup(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetMousePosOnOpeningCurrentPopupNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsMouseDraggingNative(ImGuiMouseButton button, float lockThreshold) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[370])(button, lockThreshold); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[370])(button, lockThreshold); #endif } /// /// To be documented. /// public static bool IsMouseDragging(ImGuiMouseButton button, float lockThreshold) { byte ret = IsMouseDraggingNative(button, lockThreshold); return ret != 0; } /// /// To be documented. /// public static bool IsMouseDragging(ImGuiMouseButton button) { byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetMouseDragDeltaNative(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[371])(pOut, button, lockThreshold); #else ((delegate* unmanaged[Cdecl])funcTable[371])((nint)pOut, button, lockThreshold); #endif } /// /// To be documented. /// public static Vector2 GetMouseDragDelta() { Vector2 ret; GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), (float)(-1.0f)); return ret; } /// /// To be documented. /// public static Vector2 GetMouseDragDelta(ImGuiMouseButton button) { Vector2 ret; GetMouseDragDeltaNative(&ret, button, (float)(-1.0f)); return ret; } /// /// To be documented. /// public static void GetMouseDragDelta(Vector2* pOut) { GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); } /// /// To be documented. /// public static Vector2 GetMouseDragDelta(float lockThreshold) { Vector2 ret; GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), lockThreshold); return ret; } /// /// To be documented. /// public static Vector2 GetMouseDragDelta(ImGuiMouseButton button, float lockThreshold) { Vector2 ret; GetMouseDragDeltaNative(&ret, button, lockThreshold); return ret; } /// /// To be documented. /// public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) { GetMouseDragDeltaNative(pOut, button, lockThreshold); } /// /// To be documented. /// public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button) { GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); } /// /// To be documented. /// public static void GetMouseDragDelta(Vector2* pOut, float lockThreshold) { GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), lockThreshold); } /// /// To be documented. /// public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button, float lockThreshold) { fixed (Vector2* ppOut = &pOut) { GetMouseDragDeltaNative((Vector2*)ppOut, button, lockThreshold); } } /// /// To be documented. /// public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button) { fixed (Vector2* ppOut = &pOut) { GetMouseDragDeltaNative((Vector2*)ppOut, button, (float)(-1.0f)); } } /// /// To be documented. /// public static void GetMouseDragDelta(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); } } /// /// To be documented. /// public static void GetMouseDragDelta(ref Vector2 pOut, float lockThreshold) { fixed (Vector2* ppOut = &pOut) { GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ResetMouseDragDeltaNative(ImGuiMouseButton button) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[372])(button); #else ((delegate* unmanaged[Cdecl])funcTable[372])(button); #endif } /// /// To be documented. /// public static void ResetMouseDragDelta(ImGuiMouseButton button) { ResetMouseDragDeltaNative(button); } /// /// To be documented. /// public static void ResetMouseDragDelta() { ResetMouseDragDeltaNative((ImGuiMouseButton)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiMouseCursor GetMouseCursorNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[373])(); #else return (ImGuiMouseCursor)((delegate* unmanaged[Cdecl])funcTable[373])(); #endif } /// /// To be documented. /// public static ImGuiMouseCursor GetMouseCursor() { ImGuiMouseCursor ret = GetMouseCursorNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetMouseCursorNative(ImGuiMouseCursor cursorType) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[374])(cursorType); #else ((delegate* unmanaged[Cdecl])funcTable[374])(cursorType); #endif } /// /// To be documented. /// public static void SetMouseCursor(ImGuiMouseCursor cursorType) { SetMouseCursorNative(cursorType); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextFrameWantCaptureMouseNative(byte wantCaptureMouse) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[375])(wantCaptureMouse); #else ((delegate* unmanaged[Cdecl])funcTable[375])(wantCaptureMouse); #endif } /// /// To be documented. /// public static void SetNextFrameWantCaptureMouse(bool wantCaptureMouse) { SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetClipboardTextNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[376])(); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[376])(); #endif } /// /// To be documented. /// public static byte* GetClipboardText() { byte* ret = GetClipboardTextNative(); return ret; } /// /// To be documented. /// public static string GetClipboardTextS() { string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetClipboardTextNative(byte* text) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[377])(text); #else ((delegate* unmanaged[Cdecl])funcTable[377])((nint)text); #endif } /// /// To be documented. /// public static void SetClipboardText(byte* text) { SetClipboardTextNative(text); } /// /// To be documented. /// public static void SetClipboardText(ref byte text) { fixed (byte* ptext = &text) { SetClipboardTextNative((byte*)ptext); } } /// /// To be documented. /// public static void SetClipboardText(ReadOnlySpan text) { fixed (byte* ptext = text) { SetClipboardTextNative((byte*)ptext); } } /// /// To be documented. /// public static void SetClipboardText(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; } SetClipboardTextNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LoadIniSettingsFromDiskNative(byte* iniFilename) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[378])(iniFilename); #else ((delegate* unmanaged[Cdecl])funcTable[378])((nint)iniFilename); #endif } /// /// To be documented. /// public static void LoadIniSettingsFromDisk(byte* iniFilename) { LoadIniSettingsFromDiskNative(iniFilename); } /// /// To be documented. /// public static void LoadIniSettingsFromDisk(ref byte iniFilename) { fixed (byte* piniFilename = &iniFilename) { LoadIniSettingsFromDiskNative((byte*)piniFilename); } } /// /// To be documented. /// public static void LoadIniSettingsFromDisk(ReadOnlySpan iniFilename) { fixed (byte* piniFilename = iniFilename) { LoadIniSettingsFromDiskNative((byte*)piniFilename); } } /// /// To be documented. /// public static void LoadIniSettingsFromDisk(string iniFilename) { byte* pStr0 = null; int pStrSize0 = 0; if (iniFilename != null) { pStrSize0 = Utils.GetByteCountUTF8(iniFilename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LoadIniSettingsFromDiskNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[379])(iniData, iniSize); #else ((delegate* unmanaged[Cdecl])funcTable[379])((nint)iniData, iniSize); #endif } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) { LoadIniSettingsFromMemoryNative(iniData, iniSize); } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(byte* iniData) { LoadIniSettingsFromMemoryNative(iniData, (nuint)(0)); } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(ref byte iniData, nuint iniSize) { fixed (byte* piniData = &iniData) { LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); } } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(ref byte iniData) { fixed (byte* piniData = &iniData) { LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); } } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(ReadOnlySpan iniData, nuint iniSize) { fixed (byte* piniData = iniData) { LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); } } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(ReadOnlySpan iniData) { fixed (byte* piniData = iniData) { LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); } } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(string iniData, nuint iniSize) { byte* pStr0 = null; int pStrSize0 = 0; if (iniData != null) { pStrSize0 = Utils.GetByteCountUTF8(iniData); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LoadIniSettingsFromMemoryNative(pStr0, iniSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LoadIniSettingsFromMemory(string iniData) { byte* pStr0 = null; int pStrSize0 = 0; if (iniData != null) { pStrSize0 = Utils.GetByteCountUTF8(iniData); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LoadIniSettingsFromMemoryNative(pStr0, (nuint)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SaveIniSettingsToDiskNative(byte* iniFilename) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[380])(iniFilename); #else ((delegate* unmanaged[Cdecl])funcTable[380])((nint)iniFilename); #endif } /// /// To be documented. /// public static void SaveIniSettingsToDisk(byte* iniFilename) { SaveIniSettingsToDiskNative(iniFilename); } /// /// To be documented. /// public static void SaveIniSettingsToDisk(ref byte iniFilename) { fixed (byte* piniFilename = &iniFilename) { SaveIniSettingsToDiskNative((byte*)piniFilename); } } /// /// To be documented. /// public static void SaveIniSettingsToDisk(ReadOnlySpan iniFilename) { fixed (byte* piniFilename = iniFilename) { SaveIniSettingsToDiskNative((byte*)piniFilename); } } /// /// To be documented. /// public static void SaveIniSettingsToDisk(string iniFilename) { byte* pStr0 = null; int pStrSize0 = 0; if (iniFilename != null) { pStrSize0 = Utils.GetByteCountUTF8(iniFilename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SaveIniSettingsToDiskNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[381])(outIniSize); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[381])((nint)outIniSize); #endif } /// /// To be documented. /// public static byte* SaveIniSettingsToMemory(nuint* outIniSize) { byte* ret = SaveIniSettingsToMemoryNative(outIniSize); return ret; } /// /// To be documented. /// public static byte* SaveIniSettingsToMemory() { byte* ret = SaveIniSettingsToMemoryNative((nuint*)(default)); return ret; } /// /// To be documented. /// public static string SaveIniSettingsToMemoryS() { string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)(default))); return ret; } /// /// To be documented. /// public static string SaveIniSettingsToMemoryS(nuint* outIniSize) { string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative(outIniSize)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DebugTextEncodingNative(byte* text) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[382])(text); #else ((delegate* unmanaged[Cdecl])funcTable[382])((nint)text); #endif } /// /// To be documented. /// public static void DebugTextEncoding(byte* text) { DebugTextEncodingNative(text); } /// /// To be documented. /// public static void DebugTextEncoding(ref byte text) { fixed (byte* ptext = &text) { DebugTextEncodingNative((byte*)ptext); } } /// /// To be documented. /// public static void DebugTextEncoding(ReadOnlySpan text) { fixed (byte* ptext = text) { DebugTextEncodingNative((byte*)ptext); } } /// /// To be documented. /// public static void DebugTextEncoding(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; } DebugTextEncodingNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[383])((nint)versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); #endif } /// /// 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(nuint 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(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; } } } } }