// ------------------------------------------------------------------------------ // // 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 Vector2* ImVec2Native() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[0])(); #else return (Vector2*)((delegate* unmanaged[Cdecl])funcTable[0])(); #endif } /// /// To be documented. /// public static Vector2* ImVec2() { Vector2* ret = ImVec2Native(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(Vector2* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1])(self); #else ((delegate* unmanaged[Cdecl])funcTable[1])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(Vector2* self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref Vector2 self) { fixed (Vector2* pself = &self) { DestroyNative((Vector2*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static Vector2* ImVec2Native(float x, float y) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[2])(x, y); #else return (Vector2*)((delegate* unmanaged[Cdecl])funcTable[2])(x, y); #endif } /// /// To be documented. /// public static Vector2* ImVec2(float x, float y) { Vector2* ret = ImVec2Native(x, y); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static Vector4* ImVec4Native() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[3])(); #else return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[3])(); #endif } /// /// To be documented. /// public static Vector4* ImVec4() { Vector4* ret = ImVec4Native(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyNative(Vector4* self) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[4])(self); #else ((delegate* unmanaged[Cdecl])funcTable[4])((nint)self); #endif } /// /// To be documented. /// public static void Destroy(Vector4* self) { DestroyNative(self); } /// /// To be documented. /// public static void Destroy(ref Vector4 self) { fixed (Vector4* pself = &self) { DestroyNative((Vector4*)pself); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static Vector4* ImVec4Native(float x, float y, float z, float w) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[5])(x, y, z, w); #else return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[5])(x, y, z, w); #endif } /// /// To be documented. /// public static Vector4* ImVec4(float x, float y, float z, float w) { Vector4* ret = ImVec4Native(x, y, z, w); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiContext* CreateContextNative(ImFontAtlas* sharedFontAtlas) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[6])(sharedFontAtlas); #else return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[6])((nint)sharedFontAtlas); #endif } /// /// To be documented. /// public static ImGuiContextPtr CreateContext(ImFontAtlasPtr sharedFontAtlas) { ImGuiContextPtr ret = CreateContextNative(sharedFontAtlas); return ret; } /// /// To be documented. /// public static ImGuiContextPtr CreateContext() { ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)(default)); return ret; } /// /// To be documented. /// public static ImGuiContextPtr CreateContext(ref ImFontAtlas sharedFontAtlas) { fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) { ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)psharedFontAtlas); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyContextNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[7])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[7])((nint)ctx); #endif } /// /// To be documented. /// public static void DestroyContext(ImGuiContextPtr ctx) { DestroyContextNative(ctx); } /// /// To be documented. /// public static void DestroyContext() { DestroyContextNative((ImGuiContext*)(default)); } /// /// To be documented. /// public static void DestroyContext(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { DestroyContextNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiContext* GetCurrentContextNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[8])(); #else return (ImGuiContext*)((delegate* unmanaged[Cdecl])funcTable[8])(); #endif } /// /// To be documented. /// public static ImGuiContextPtr GetCurrentContext() { ImGuiContextPtr ret = GetCurrentContextNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCurrentContextNative(ImGuiContext* ctx) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[9])(ctx); #else ((delegate* unmanaged[Cdecl])funcTable[9])((nint)ctx); #endif } /// /// To be documented. /// public static void SetCurrentContext(ImGuiContextPtr ctx) { SetCurrentContextNative(ctx); } /// /// To be documented. /// public static void SetCurrentContext(ref ImGuiContext ctx) { fixed (ImGuiContext* pctx = &ctx) { SetCurrentContextNative((ImGuiContext*)pctx); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiIO* GetIONative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[10])(); #else return (ImGuiIO*)((delegate* unmanaged[Cdecl])funcTable[10])(); #endif } /// /// To be documented. /// public static ImGuiIOPtr GetIO() { ImGuiIOPtr ret = GetIONative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiStyle* GetStyleNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[11])(); #else return (ImGuiStyle*)((delegate* unmanaged[Cdecl])funcTable[11])(); #endif } /// /// To be documented. /// public static ImGuiStylePtr GetStyle() { ImGuiStylePtr ret = GetStyleNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NewFrameNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[12])(); #else ((delegate* unmanaged[Cdecl])funcTable[12])(); #endif } /// /// To be documented. /// public static void NewFrame() { NewFrameNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndFrameNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[13])(); #else ((delegate* unmanaged[Cdecl])funcTable[13])(); #endif } /// /// To be documented. /// public static void EndFrame() { EndFrameNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void RenderNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[14])(); #else ((delegate* unmanaged[Cdecl])funcTable[14])(); #endif } /// /// To be documented. /// public static void Render() { RenderNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawData* GetDrawDataNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[15])(); #else return (ImDrawData*)((delegate* unmanaged[Cdecl])funcTable[15])(); #endif } /// /// To be documented. /// public static ImDrawDataPtr GetDrawData() { ImDrawDataPtr ret = GetDrawDataNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowDemoWindowNative(bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[16])(pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[16])((nint)pOpen); #endif } /// /// To be documented. /// public static void ShowDemoWindow(bool* pOpen) { ShowDemoWindowNative(pOpen); } /// /// To be documented. /// public static void ShowDemoWindow() { ShowDemoWindowNative((bool*)(default)); } /// /// To be documented. /// public static void ShowDemoWindow(ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { ShowDemoWindowNative((bool*)ppOpen); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowMetricsWindowNative(bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[17])(pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[17])((nint)pOpen); #endif } /// /// To be documented. /// public static void ShowMetricsWindow(bool* pOpen) { ShowMetricsWindowNative(pOpen); } /// /// To be documented. /// public static void ShowMetricsWindow() { ShowMetricsWindowNative((bool*)(default)); } /// /// To be documented. /// public static void ShowMetricsWindow(ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { ShowMetricsWindowNative((bool*)ppOpen); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowDebugLogWindowNative(bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[18])(pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[18])((nint)pOpen); #endif } /// /// To be documented. /// public static void ShowDebugLogWindow(bool* pOpen) { ShowDebugLogWindowNative(pOpen); } /// /// To be documented. /// public static void ShowDebugLogWindow() { ShowDebugLogWindowNative((bool*)(default)); } /// /// To be documented. /// public static void ShowDebugLogWindow(ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { ShowDebugLogWindowNative((bool*)ppOpen); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowStackToolWindowNative(bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[19])(pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[19])((nint)pOpen); #endif } /// /// To be documented. /// public static void ShowStackToolWindow(bool* pOpen) { ShowStackToolWindowNative(pOpen); } /// /// To be documented. /// public static void ShowStackToolWindow() { ShowStackToolWindowNative((bool*)(default)); } /// /// To be documented. /// public static void ShowStackToolWindow(ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { ShowStackToolWindowNative((bool*)ppOpen); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowAboutWindowNative(bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[20])(pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[20])((nint)pOpen); #endif } /// /// To be documented. /// public static void ShowAboutWindow(bool* pOpen) { ShowAboutWindowNative(pOpen); } /// /// To be documented. /// public static void ShowAboutWindow() { ShowAboutWindowNative((bool*)(default)); } /// /// To be documented. /// public static void ShowAboutWindow(ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { ShowAboutWindowNative((bool*)ppOpen); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowStyleEditorNative(ImGuiStyle* reference) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[21])(reference); #else ((delegate* unmanaged[Cdecl])funcTable[21])((nint)reference); #endif } /// /// To be documented. /// public static void ShowStyleEditor(ImGuiStylePtr reference) { ShowStyleEditorNative(reference); } /// /// To be documented. /// public static void ShowStyleEditor() { ShowStyleEditorNative((ImGuiStyle*)(default)); } /// /// To be documented. /// public static void ShowStyleEditor(ref ImGuiStyle reference) { fixed (ImGuiStyle* preference = &reference) { ShowStyleEditorNative((ImGuiStyle*)preference); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ShowStyleSelectorNative(byte* label) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[22])(label); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[22])((nint)label); #endif } /// /// To be documented. /// public static bool ShowStyleSelector(byte* label) { byte ret = ShowStyleSelectorNative(label); return ret != 0; } /// /// To be documented. /// public static bool ShowStyleSelector(ref byte label) { fixed (byte* plabel = &label) { byte ret = ShowStyleSelectorNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool ShowStyleSelector(ReadOnlySpan label) { fixed (byte* plabel = label) { byte ret = ShowStyleSelectorNative((byte*)plabel); return ret != 0; } } /// /// To be documented. /// public static bool ShowStyleSelector(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 = ShowStyleSelectorNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowFontSelectorNative(byte* label) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[23])(label); #else ((delegate* unmanaged[Cdecl])funcTable[23])((nint)label); #endif } /// /// To be documented. /// public static void ShowFontSelector(byte* label) { ShowFontSelectorNative(label); } /// /// To be documented. /// public static void ShowFontSelector(ref byte label) { fixed (byte* plabel = &label) { ShowFontSelectorNative((byte*)plabel); } } /// /// To be documented. /// public static void ShowFontSelector(ReadOnlySpan label) { fixed (byte* plabel = label) { ShowFontSelectorNative((byte*)plabel); } } /// /// To be documented. /// public static void ShowFontSelector(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; } ShowFontSelectorNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShowUserGuideNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[24])(); #else ((delegate* unmanaged[Cdecl])funcTable[24])(); #endif } /// /// To be documented. /// public static void ShowUserGuide() { ShowUserGuideNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* GetVersionNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[25])(); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[25])(); #endif } /// /// To be documented. /// public static byte* GetVersion() { byte* ret = GetVersionNative(); return ret; } /// /// To be documented. /// public static string GetVersionS() { string ret = Utils.DecodeStringUTF8(GetVersionNative()); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void StyleColorsDarkNative(ImGuiStyle* dst) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[26])(dst); #else ((delegate* unmanaged[Cdecl])funcTable[26])((nint)dst); #endif } /// /// To be documented. /// public static void StyleColorsDark(ImGuiStylePtr dst) { StyleColorsDarkNative(dst); } /// /// To be documented. /// public static void StyleColorsDark() { StyleColorsDarkNative((ImGuiStyle*)(default)); } /// /// To be documented. /// public static void StyleColorsDark(ref ImGuiStyle dst) { fixed (ImGuiStyle* pdst = &dst) { StyleColorsDarkNative((ImGuiStyle*)pdst); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void StyleColorsLightNative(ImGuiStyle* dst) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[27])(dst); #else ((delegate* unmanaged[Cdecl])funcTable[27])((nint)dst); #endif } /// /// To be documented. /// public static void StyleColorsLight(ImGuiStylePtr dst) { StyleColorsLightNative(dst); } /// /// To be documented. /// public static void StyleColorsLight() { StyleColorsLightNative((ImGuiStyle*)(default)); } /// /// To be documented. /// public static void StyleColorsLight(ref ImGuiStyle dst) { fixed (ImGuiStyle* pdst = &dst) { StyleColorsLightNative((ImGuiStyle*)pdst); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void StyleColorsClassicNative(ImGuiStyle* dst) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[28])(dst); #else ((delegate* unmanaged[Cdecl])funcTable[28])((nint)dst); #endif } /// /// To be documented. /// public static void StyleColorsClassic(ImGuiStylePtr dst) { StyleColorsClassicNative(dst); } /// /// To be documented. /// public static void StyleColorsClassic() { StyleColorsClassicNative((ImGuiStyle*)(default)); } /// /// To be documented. /// public static void StyleColorsClassic(ref ImGuiStyle dst) { fixed (ImGuiStyle* pdst = &dst) { StyleColorsClassicNative((ImGuiStyle*)pdst); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[29])(name, pOpen, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[29])((nint)name, (nint)pOpen, flags); #endif } /// /// To be documented. /// public static bool Begin(byte* name, bool* pOpen, ImGuiWindowFlags flags) { byte ret = BeginNative(name, pOpen, flags); return ret != 0; } /// /// To be documented. /// public static bool Begin(byte* name, bool* pOpen) { byte ret = BeginNative(name, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool Begin(byte* name) { byte ret = BeginNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool Begin(byte* name, ImGuiWindowFlags flags) { byte ret = BeginNative(name, (bool*)(default), flags); return ret != 0; } /// /// To be documented. /// public static bool Begin(ref byte name, bool* pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { byte ret = BeginNative((byte*)pname, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ref byte name, bool* pOpen) { fixed (byte* pname = &name) { byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ref byte name) { fixed (byte* pname = &name) { byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ref byte name, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { byte ret = BeginNative((byte*)pname, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name, bool* pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = name) { byte ret = BeginNative((byte*)pname, pOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name, bool* pOpen) { fixed (byte* pname = name) { byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name) { fixed (byte* pname = name) { byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name, ImGuiWindowFlags flags) { fixed (byte* pname = name) { byte ret = BeginNative((byte*)pname, (bool*)(default), flags); return ret != 0; } } /// /// To be documented. /// public static bool Begin(string name, bool* pOpen, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginNative(pStr0, pOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Begin(string name, bool* pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Begin(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Begin(string name, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginNative(pStr0, (bool*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool Begin(byte* name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative(name, (bool*)ppOpen, flags); return ret != 0; } } /// /// To be documented. /// public static bool Begin(byte* name, ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool Begin(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = &name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool Begin(ref byte name, ref bool pOpen) { fixed (byte* pname = &name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name, ref bool pOpen, ImGuiWindowFlags flags) { fixed (byte* pname = name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); return ret != 0; } } } /// /// To be documented. /// public static bool Begin(ReadOnlySpan name, ref bool pOpen) { fixed (byte* pname = name) { fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); return ret != 0; } } } /// /// To be documented. /// public static bool Begin(string name, ref bool pOpen, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative(pStr0, (bool*)ppOpen, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool Begin(string name, ref bool pOpen) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = BeginNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[30])(); #else ((delegate* unmanaged[Cdecl])funcTable[30])(); #endif } /// /// To be documented. /// public static void End() { EndNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginChildNative(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[31])(strId, size, border, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[31])((nint)strId, size, border, flags); #endif } /// /// To be documented. /// public static bool BeginChild(byte* strId, Vector2 size, bool border, ImGuiWindowFlags flags) { byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, Vector2 size, bool border) { byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, Vector2 size) { byte ret = BeginChildNative(strId, size, (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId) { byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, bool border) { byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, Vector2 size, ImGuiWindowFlags flags) { byte ret = BeginChildNative(strId, size, (byte)(0), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, ImGuiWindowFlags flags) { byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(byte* strId, bool border, ImGuiWindowFlags flags) { byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(ref byte strId, Vector2 size, bool border, ImGuiWindowFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, Vector2 size, bool border) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, Vector2 size) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, bool border) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, Vector2 size, ImGuiWindowFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, ImGuiWindowFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ref byte strId, bool border, ImGuiWindowFlags flags) { fixed (byte* pstrId = &strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, Vector2 size, bool border, ImGuiWindowFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, Vector2 size, bool border) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, Vector2 size) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, bool border) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, Vector2 size, ImGuiWindowFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, ImGuiWindowFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(ReadOnlySpan strId, bool border, ImGuiWindowFlags flags) { fixed (byte* pstrId = strId) { byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); return ret != 0; } } /// /// To be documented. /// public static bool BeginChild(string strId, Vector2 size, bool border, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, Vector2 size, bool border) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, size, (byte)(0), (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, bool border) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, Vector2 size, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, size, (byte)(0), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginChild(string strId, bool border, ImGuiWindowFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginChildNative(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[32])(id, size, border, flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[32])(id, size, border, flags); #endif } /// /// To be documented. /// public static bool BeginChild(uint id, Vector2 size, bool border, ImGuiWindowFlags flags) { byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, Vector2 size, bool border) { byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, Vector2 size) { byte ret = BeginChildNative(id, size, (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id) { byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, bool border) { byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, Vector2 size, ImGuiWindowFlags flags) { byte ret = BeginChildNative(id, size, (byte)(0), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, ImGuiWindowFlags flags) { byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), flags); return ret != 0; } /// /// To be documented. /// public static bool BeginChild(uint id, bool border, ImGuiWindowFlags flags) { byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndChildNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[33])(); #else ((delegate* unmanaged[Cdecl])funcTable[33])(); #endif } /// /// To be documented. /// public static void EndChild() { EndChildNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowAppearingNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[34])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[34])(); #endif } /// /// To be documented. /// public static bool IsWindowAppearing() { byte ret = IsWindowAppearingNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowCollapsedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[35])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[35])(); #endif } /// /// To be documented. /// public static bool IsWindowCollapsed() { byte ret = IsWindowCollapsedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowFocusedNative(ImGuiFocusedFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[36])(flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[36])(flags); #endif } /// /// To be documented. /// public static bool IsWindowFocused(ImGuiFocusedFlags flags) { byte ret = IsWindowFocusedNative(flags); return ret != 0; } /// /// To be documented. /// public static bool IsWindowFocused() { byte ret = IsWindowFocusedNative((ImGuiFocusedFlags)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowHoveredNative(ImGuiHoveredFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[37])(flags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[37])(flags); #endif } /// /// To be documented. /// public static bool IsWindowHovered(ImGuiHoveredFlags flags) { byte ret = IsWindowHoveredNative(flags); return ret != 0; } /// /// To be documented. /// public static bool IsWindowHovered() { byte ret = IsWindowHoveredNative((ImGuiHoveredFlags)(0)); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetWindowDrawListNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[38])(); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[38])(); #endif } /// /// To be documented. /// public static ImDrawListPtr GetWindowDrawList() { ImDrawListPtr ret = GetWindowDrawListNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetWindowDpiScaleNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[39])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[39])(); #endif } /// /// To be documented. /// public static float GetWindowDpiScale() { float ret = GetWindowDpiScaleNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetWindowPosNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[40])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[40])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetWindowPos() { Vector2 ret; GetWindowPosNative(&ret); return ret; } /// /// To be documented. /// public static void GetWindowPos(Vector2* pOut) { GetWindowPosNative(pOut); } /// /// To be documented. /// public static void GetWindowPos(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetWindowPosNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetWindowSizeNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[41])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[41])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetWindowSize() { Vector2 ret; GetWindowSizeNative(&ret); return ret; } /// /// To be documented. /// public static void GetWindowSize(Vector2* pOut) { GetWindowSizeNative(pOut); } /// /// To be documented. /// public static void GetWindowSize(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetWindowSizeNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetWindowWidthNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[42])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[42])(); #endif } /// /// To be documented. /// public static float GetWindowWidth() { float ret = GetWindowWidthNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetWindowHeightNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[43])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[43])(); #endif } /// /// To be documented. /// public static float GetWindowHeight() { float ret = GetWindowHeightNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiViewport* GetWindowViewportNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[44])(); #else return (ImGuiViewport*)((delegate* unmanaged[Cdecl])funcTable[44])(); #endif } /// /// To be documented. /// public static ImGuiViewportPtr GetWindowViewport() { ImGuiViewportPtr ret = GetWindowViewportNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowPosNative(Vector2 pos, ImGuiCond cond, Vector2 pivot) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[45])(pos, cond, pivot); #else ((delegate* unmanaged[Cdecl])funcTable[45])(pos, cond, pivot); #endif } /// /// To be documented. /// public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) { SetNextWindowPosNative(pos, cond, pivot); } /// /// To be documented. /// public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond) { SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); } /// /// To be documented. /// public static void SetNextWindowPos(Vector2 pos) { SetNextWindowPosNative(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); } /// /// To be documented. /// public static void SetNextWindowPos(Vector2 pos, Vector2 pivot) { SetNextWindowPosNative(pos, (ImGuiCond)(0), pivot); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowSizeNative(Vector2 size, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[46])(size, cond); #else ((delegate* unmanaged[Cdecl])funcTable[46])(size, cond); #endif } /// /// To be documented. /// public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) { SetNextWindowSizeNative(size, cond); } /// /// To be documented. /// public static void SetNextWindowSize(Vector2 size) { SetNextWindowSizeNative(size, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowSizeConstraintsNative(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl], void*, void>)funcTable[47])(sizeMin, sizeMax, (delegate*)Utils.GetFunctionPointerForDelegate(customCallback), customCallbackData); #else ((delegate* unmanaged[Cdecl])funcTable[47])(sizeMin, sizeMax, (nint)Utils.GetFunctionPointerForDelegate(customCallback), (nint)customCallbackData); #endif } /// /// To be documented. /// public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) { SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); } /// /// To be documented. /// public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) { SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); } /// /// To be documented. /// public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax) { SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); } /// /// To be documented. /// public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) { SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowContentSizeNative(Vector2 size) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[48])(size); #else ((delegate* unmanaged[Cdecl])funcTable[48])(size); #endif } /// /// To be documented. /// public static void SetNextWindowContentSize(Vector2 size) { SetNextWindowContentSizeNative(size); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowCollapsedNative(byte collapsed, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[49])(collapsed, cond); #else ((delegate* unmanaged[Cdecl])funcTable[49])(collapsed, cond); #endif } /// /// To be documented. /// public static void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) { SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); } /// /// To be documented. /// public static void SetNextWindowCollapsed(bool collapsed) { SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowFocusNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[50])(); #else ((delegate* unmanaged[Cdecl])funcTable[50])(); #endif } /// /// To be documented. /// public static void SetNextWindowFocus() { SetNextWindowFocusNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowBgAlphaNative(float alpha) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[51])(alpha); #else ((delegate* unmanaged[Cdecl])funcTable[51])(alpha); #endif } /// /// To be documented. /// public static void SetNextWindowBgAlpha(float alpha) { SetNextWindowBgAlphaNative(alpha); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowViewportNative(uint viewportId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[52])(viewportId); #else ((delegate* unmanaged[Cdecl])funcTable[52])(viewportId); #endif } /// /// To be documented. /// public static void SetNextWindowViewport(uint viewportId) { SetNextWindowViewportNative(viewportId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowPosNative(Vector2 pos, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[53])(pos, cond); #else ((delegate* unmanaged[Cdecl])funcTable[53])(pos, cond); #endif } /// /// To be documented. /// public static void SetWindowPos(Vector2 pos, ImGuiCond cond) { SetWindowPosNative(pos, cond); } /// /// To be documented. /// public static void SetWindowPos(Vector2 pos) { SetWindowPosNative(pos, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowSizeNative(Vector2 size, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[54])(size, cond); #else ((delegate* unmanaged[Cdecl])funcTable[54])(size, cond); #endif } /// /// To be documented. /// public static void SetWindowSize(Vector2 size, ImGuiCond cond) { SetWindowSizeNative(size, cond); } /// /// To be documented. /// public static void SetWindowSize(Vector2 size) { SetWindowSizeNative(size, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowCollapsedNative(byte collapsed, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[55])(collapsed, cond); #else ((delegate* unmanaged[Cdecl])funcTable[55])(collapsed, cond); #endif } /// /// To be documented. /// public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond) { SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); } /// /// To be documented. /// public static void SetWindowCollapsed(bool collapsed) { SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowFocusNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[56])(); #else ((delegate* unmanaged[Cdecl])funcTable[56])(); #endif } /// /// To be documented. /// public static void SetWindowFocus() { SetWindowFocusNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowFontScaleNative(float scale) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[57])(scale); #else ((delegate* unmanaged[Cdecl])funcTable[57])(scale); #endif } /// /// To be documented. /// public static void SetWindowFontScale(float scale) { SetWindowFontScaleNative(scale); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowPosNative(byte* name, Vector2 pos, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[58])(name, pos, cond); #else ((delegate* unmanaged[Cdecl])funcTable[58])((nint)name, pos, cond); #endif } /// /// To be documented. /// public static void SetWindowPos(byte* name, Vector2 pos, ImGuiCond cond) { SetWindowPosNative(name, pos, cond); } /// /// To be documented. /// public static void SetWindowPos(byte* name, Vector2 pos) { SetWindowPosNative(name, pos, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowPos(ref byte name, Vector2 pos, ImGuiCond cond) { fixed (byte* pname = &name) { SetWindowPosNative((byte*)pname, pos, cond); } } /// /// To be documented. /// public static void SetWindowPos(ref byte name, Vector2 pos) { fixed (byte* pname = &name) { SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowPos(ReadOnlySpan name, Vector2 pos, ImGuiCond cond) { fixed (byte* pname = name) { SetWindowPosNative((byte*)pname, pos, cond); } } /// /// To be documented. /// public static void SetWindowPos(ReadOnlySpan name, Vector2 pos) { fixed (byte* pname = name) { SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowPos(string name, Vector2 pos, ImGuiCond cond) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowPosNative(pStr0, pos, cond); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void SetWindowPos(string name, Vector2 pos) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowPosNative(pStr0, pos, (ImGuiCond)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowSizeNative(byte* name, Vector2 size, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[59])(name, size, cond); #else ((delegate* unmanaged[Cdecl])funcTable[59])((nint)name, size, cond); #endif } /// /// To be documented. /// public static void SetWindowSize(byte* name, Vector2 size, ImGuiCond cond) { SetWindowSizeNative(name, size, cond); } /// /// To be documented. /// public static void SetWindowSize(byte* name, Vector2 size) { SetWindowSizeNative(name, size, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowSize(ref byte name, Vector2 size, ImGuiCond cond) { fixed (byte* pname = &name) { SetWindowSizeNative((byte*)pname, size, cond); } } /// /// To be documented. /// public static void SetWindowSize(ref byte name, Vector2 size) { fixed (byte* pname = &name) { SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowSize(ReadOnlySpan name, Vector2 size, ImGuiCond cond) { fixed (byte* pname = name) { SetWindowSizeNative((byte*)pname, size, cond); } } /// /// To be documented. /// public static void SetWindowSize(ReadOnlySpan name, Vector2 size) { fixed (byte* pname = name) { SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowSize(string name, Vector2 size, ImGuiCond cond) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowSizeNative(pStr0, size, cond); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void SetWindowSize(string name, Vector2 size) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowSizeNative(pStr0, size, (ImGuiCond)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowCollapsedNative(byte* name, byte collapsed, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[60])(name, collapsed, cond); #else ((delegate* unmanaged[Cdecl])funcTable[60])((nint)name, collapsed, cond); #endif } /// /// To be documented. /// public static void SetWindowCollapsed(byte* name, bool collapsed, ImGuiCond cond) { SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); } /// /// To be documented. /// public static void SetWindowCollapsed(byte* name, bool collapsed) { SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowCollapsed(ref byte name, bool collapsed, ImGuiCond cond) { fixed (byte* pname = &name) { SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); } } /// /// To be documented. /// public static void SetWindowCollapsed(ref byte name, bool collapsed) { fixed (byte* pname = &name) { SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowCollapsed(ReadOnlySpan name, bool collapsed, ImGuiCond cond) { fixed (byte* pname = name) { SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); } } /// /// To be documented. /// public static void SetWindowCollapsed(ReadOnlySpan name, bool collapsed) { fixed (byte* pname = name) { SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } } /// /// To be documented. /// public static void SetWindowCollapsed(string name, bool collapsed, ImGuiCond cond) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, cond); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void SetWindowCollapsed(string name, bool collapsed) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowFocusNative(byte* name) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[61])(name); #else ((delegate* unmanaged[Cdecl])funcTable[61])((nint)name); #endif } /// /// To be documented. /// public static void SetWindowFocus(byte* name) { SetWindowFocusNative(name); } /// /// To be documented. /// public static void SetWindowFocus(ref byte name) { fixed (byte* pname = &name) { SetWindowFocusNative((byte*)pname); } } /// /// To be documented. /// public static void SetWindowFocus(ReadOnlySpan name) { fixed (byte* pname = name) { SetWindowFocusNative((byte*)pname); } } /// /// To be documented. /// public static void SetWindowFocus(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } SetWindowFocusNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetContentRegionAvailNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[62])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[62])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetContentRegionAvail() { Vector2 ret; GetContentRegionAvailNative(&ret); return ret; } /// /// To be documented. /// public static void GetContentRegionAvail(Vector2* pOut) { GetContentRegionAvailNative(pOut); } /// /// To be documented. /// public static void GetContentRegionAvail(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetContentRegionAvailNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetContentRegionMaxNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[63])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[63])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetContentRegionMax() { Vector2 ret; GetContentRegionMaxNative(&ret); return ret; } /// /// To be documented. /// public static void GetContentRegionMax(Vector2* pOut) { GetContentRegionMaxNative(pOut); } /// /// To be documented. /// public static void GetContentRegionMax(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetContentRegionMaxNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetWindowContentRegionMinNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[64])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[64])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetWindowContentRegionMin() { Vector2 ret; GetWindowContentRegionMinNative(&ret); return ret; } /// /// To be documented. /// public static void GetWindowContentRegionMin(Vector2* pOut) { GetWindowContentRegionMinNative(pOut); } /// /// To be documented. /// public static void GetWindowContentRegionMin(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetWindowContentRegionMinNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetWindowContentRegionMaxNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[65])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[65])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetWindowContentRegionMax() { Vector2 ret; GetWindowContentRegionMaxNative(&ret); return ret; } /// /// To be documented. /// public static void GetWindowContentRegionMax(Vector2* pOut) { GetWindowContentRegionMaxNative(pOut); } /// /// To be documented. /// public static void GetWindowContentRegionMax(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetWindowContentRegionMaxNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetScrollXNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[66])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[66])(); #endif } /// /// To be documented. /// public static float GetScrollX() { float ret = GetScrollXNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetScrollYNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[67])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[67])(); #endif } /// /// To be documented. /// public static float GetScrollY() { float ret = GetScrollYNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollXNative(float scrollX) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[68])(scrollX); #else ((delegate* unmanaged[Cdecl])funcTable[68])(scrollX); #endif } /// /// To be documented. /// public static void SetScrollX(float scrollX) { SetScrollXNative(scrollX); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollYNative(float scrollY) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[69])(scrollY); #else ((delegate* unmanaged[Cdecl])funcTable[69])(scrollY); #endif } /// /// To be documented. /// public static void SetScrollY(float scrollY) { SetScrollYNative(scrollY); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetScrollMaxXNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[70])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[70])(); #endif } /// /// To be documented. /// public static float GetScrollMaxX() { float ret = GetScrollMaxXNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetScrollMaxYNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[71])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[71])(); #endif } /// /// To be documented. /// public static float GetScrollMaxY() { float ret = GetScrollMaxYNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollHereXNative(float centerXRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[72])(centerXRatio); #else ((delegate* unmanaged[Cdecl])funcTable[72])(centerXRatio); #endif } /// /// To be documented. /// public static void SetScrollHereX(float centerXRatio) { SetScrollHereXNative(centerXRatio); } /// /// To be documented. /// public static void SetScrollHereX() { SetScrollHereXNative((float)(0.5f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollHereYNative(float centerYRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[73])(centerYRatio); #else ((delegate* unmanaged[Cdecl])funcTable[73])(centerYRatio); #endif } /// /// To be documented. /// public static void SetScrollHereY(float centerYRatio) { SetScrollHereYNative(centerYRatio); } /// /// To be documented. /// public static void SetScrollHereY() { SetScrollHereYNative((float)(0.5f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollFromPosXNative(float localX, float centerXRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[74])(localX, centerXRatio); #else ((delegate* unmanaged[Cdecl])funcTable[74])(localX, centerXRatio); #endif } /// /// To be documented. /// public static void SetScrollFromPosX(float localX, float centerXRatio) { SetScrollFromPosXNative(localX, centerXRatio); } /// /// To be documented. /// public static void SetScrollFromPosX(float localX) { SetScrollFromPosXNative(localX, (float)(0.5f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollFromPosYNative(float localY, float centerYRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[75])(localY, centerYRatio); #else ((delegate* unmanaged[Cdecl])funcTable[75])(localY, centerYRatio); #endif } /// /// To be documented. /// public static void SetScrollFromPosY(float localY, float centerYRatio) { SetScrollFromPosYNative(localY, centerYRatio); } /// /// To be documented. /// public static void SetScrollFromPosY(float localY) { SetScrollFromPosYNative(localY, (float)(0.5f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushFontNative(ImFont* font) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[76])(font); #else ((delegate* unmanaged[Cdecl])funcTable[76])((nint)font); #endif } /// /// To be documented. /// public static void PushFont(ImFontPtr font) { PushFontNative(font); } /// /// To be documented. /// public static void PushFont(ref ImFont font) { fixed (ImFont* pfont = &font) { PushFontNative((ImFont*)pfont); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopFontNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[77])(); #else ((delegate* unmanaged[Cdecl])funcTable[77])(); #endif } /// /// To be documented. /// public static void PopFont() { PopFontNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushStyleColorNative(ImGuiCol idx, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[78])(idx, col); #else ((delegate* unmanaged[Cdecl])funcTable[78])(idx, col); #endif } /// /// To be documented. /// public static void PushStyleColor(ImGuiCol idx, uint col) { PushStyleColorNative(idx, col); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushStyleColorNative(ImGuiCol idx, Vector4 col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[79])(idx, col); #else ((delegate* unmanaged[Cdecl])funcTable[79])(idx, col); #endif } /// /// To be documented. /// public static void PushStyleColor(ImGuiCol idx, Vector4 col) { PushStyleColorNative(idx, col); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopStyleColorNative(int count) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[80])(count); #else ((delegate* unmanaged[Cdecl])funcTable[80])(count); #endif } /// /// To be documented. /// public static void PopStyleColor(int count) { PopStyleColorNative(count); } /// /// To be documented. /// public static void PopStyleColor() { PopStyleColorNative((int)(1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushStyleVarNative(ImGuiStyleVar idx, float val) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[81])(idx, val); #else ((delegate* unmanaged[Cdecl])funcTable[81])(idx, val); #endif } /// /// To be documented. /// public static void PushStyleVar(ImGuiStyleVar idx, float val) { PushStyleVarNative(idx, val); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushStyleVarNative(ImGuiStyleVar idx, Vector2 val) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[82])(idx, val); #else ((delegate* unmanaged[Cdecl])funcTable[82])(idx, val); #endif } /// /// To be documented. /// public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) { PushStyleVarNative(idx, val); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopStyleVarNative(int count) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[83])(count); #else ((delegate* unmanaged[Cdecl])funcTable[83])(count); #endif } /// /// To be documented. /// public static void PopStyleVar(int count) { PopStyleVarNative(count); } /// /// To be documented. /// public static void PopStyleVar() { PopStyleVarNative((int)(1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushAllowKeyboardFocusNative(byte allowKeyboardFocus) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[84])(allowKeyboardFocus); #else ((delegate* unmanaged[Cdecl])funcTable[84])(allowKeyboardFocus); #endif } /// /// To be documented. /// public static void PushAllowKeyboardFocus(bool allowKeyboardFocus) { PushAllowKeyboardFocusNative(allowKeyboardFocus ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopAllowKeyboardFocusNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[85])(); #else ((delegate* unmanaged[Cdecl])funcTable[85])(); #endif } /// /// To be documented. /// public static void PopAllowKeyboardFocus() { PopAllowKeyboardFocusNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushButtonRepeatNative(byte repeat) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[86])(repeat); #else ((delegate* unmanaged[Cdecl])funcTable[86])(repeat); #endif } /// /// To be documented. /// public static void PushButtonRepeat(bool repeat) { PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopButtonRepeatNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[87])(); #else ((delegate* unmanaged[Cdecl])funcTable[87])(); #endif } /// /// To be documented. /// public static void PopButtonRepeat() { PopButtonRepeatNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushItemWidthNative(float itemWidth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[88])(itemWidth); #else ((delegate* unmanaged[Cdecl])funcTable[88])(itemWidth); #endif } /// /// To be documented. /// public static void PushItemWidth(float itemWidth) { PushItemWidthNative(itemWidth); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopItemWidthNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[89])(); #else ((delegate* unmanaged[Cdecl])funcTable[89])(); #endif } /// /// To be documented. /// public static void PopItemWidth() { PopItemWidthNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextItemWidthNative(float itemWidth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[90])(itemWidth); #else ((delegate* unmanaged[Cdecl])funcTable[90])(itemWidth); #endif } /// /// To be documented. /// public static void SetNextItemWidth(float itemWidth) { SetNextItemWidthNative(itemWidth); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float CalcItemWidthNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[91])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[91])(); #endif } /// /// To be documented. /// public static float CalcItemWidth() { float ret = CalcItemWidthNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushTextWrapPosNative(float wrapLocalPosX) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[92])(wrapLocalPosX); #else ((delegate* unmanaged[Cdecl])funcTable[92])(wrapLocalPosX); #endif } /// /// To be documented. /// public static void PushTextWrapPos(float wrapLocalPosX) { PushTextWrapPosNative(wrapLocalPosX); } /// /// To be documented. /// public static void PushTextWrapPos() { PushTextWrapPosNative((float)(0.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopTextWrapPosNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[93])(); #else ((delegate* unmanaged[Cdecl])funcTable[93])(); #endif } /// /// To be documented. /// public static void PopTextWrapPos() { PopTextWrapPosNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFont* GetFontNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[94])(); #else return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[94])(); #endif } /// /// To be documented. /// public static ImFontPtr GetFont() { ImFontPtr ret = GetFontNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetFontSizeNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[95])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[95])(); #endif } /// /// To be documented. /// public static float GetFontSize() { float ret = GetFontSizeNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImTextureID GetFontTexIdWhitePixelNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[96])(); #else return (ImTextureID)((delegate* unmanaged[Cdecl])funcTable[96])(); #endif } /// /// To be documented. /// public static ImTextureID GetFontTexIdWhitePixel() { ImTextureID ret = GetFontTexIdWhitePixelNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetFontTexUvWhitePixelNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[97])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[97])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetFontTexUvWhitePixel() { Vector2 ret; GetFontTexUvWhitePixelNative(&ret); return ret; } /// /// To be documented. /// public static void GetFontTexUvWhitePixel(Vector2* pOut) { GetFontTexUvWhitePixelNative(pOut); } /// /// To be documented. /// public static void GetFontTexUvWhitePixel(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetFontTexUvWhitePixelNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetColorU32Native(ImGuiCol idx, float alphaMul) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[98])(idx, alphaMul); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[98])(idx, alphaMul); #endif } /// /// To be documented. /// public static uint GetColorU32(ImGuiCol idx, float alphaMul) { uint ret = GetColorU32Native(idx, alphaMul); return ret; } /// /// To be documented. /// public static uint GetColorU32(ImGuiCol idx) { uint ret = GetColorU32Native(idx, (float)(1.0f)); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetColorU32Native(Vector4 col) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[99])(col); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[99])(col); #endif } /// /// To be documented. /// public static uint GetColorU32(Vector4 col) { uint ret = GetColorU32Native(col); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetColorU32Native(uint col) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[100])(col); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[100])(col); #endif } /// /// To be documented. /// public static uint GetColorU32(uint col) { uint ret = GetColorU32Native(col); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static Vector4* GetStyleColorVec4Native(ImGuiCol idx) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[101])(idx); #else return (Vector4*)((delegate* unmanaged[Cdecl])funcTable[101])(idx); #endif } /// /// To be documented. /// public static Vector4* GetStyleColorVec4(ImGuiCol idx) { Vector4* ret = GetStyleColorVec4Native(idx); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SeparatorNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[102])(); #else ((delegate* unmanaged[Cdecl])funcTable[102])(); #endif } /// /// To be documented. /// public static void Separator() { SeparatorNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SameLineNative(float offsetFromStartX, float spacing) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[103])(offsetFromStartX, spacing); #else ((delegate* unmanaged[Cdecl])funcTable[103])(offsetFromStartX, spacing); #endif } /// /// To be documented. /// public static void SameLine(float offsetFromStartX, float spacing) { SameLineNative(offsetFromStartX, spacing); } /// /// To be documented. /// public static void SameLine(float offsetFromStartX) { SameLineNative(offsetFromStartX, (float)(-1.0f)); } /// /// To be documented. /// public static void SameLine() { SameLineNative((float)(0.0f), (float)(-1.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void NewLineNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[104])(); #else ((delegate* unmanaged[Cdecl])funcTable[104])(); #endif } /// /// To be documented. /// public static void NewLine() { NewLineNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SpacingNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[105])(); #else ((delegate* unmanaged[Cdecl])funcTable[105])(); #endif } /// /// To be documented. /// public static void Spacing() { SpacingNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DummyNative(Vector2 size) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[106])(size); #else ((delegate* unmanaged[Cdecl])funcTable[106])(size); #endif } /// /// To be documented. /// public static void Dummy(Vector2 size) { DummyNative(size); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void IndentNative(float indentW) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[107])(indentW); #else ((delegate* unmanaged[Cdecl])funcTable[107])(indentW); #endif } /// /// To be documented. /// public static void Indent(float indentW) { IndentNative(indentW); } /// /// To be documented. /// public static void Indent() { IndentNative((float)(0.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UnindentNative(float indentW) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[108])(indentW); #else ((delegate* unmanaged[Cdecl])funcTable[108])(indentW); #endif } /// /// To be documented. /// public static void Unindent(float indentW) { UnindentNative(indentW); } /// /// To be documented. /// public static void Unindent() { UnindentNative((float)(0.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginGroupNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[109])(); #else ((delegate* unmanaged[Cdecl])funcTable[109])(); #endif } /// /// To be documented. /// public static void BeginGroup() { BeginGroupNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndGroupNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[110])(); #else ((delegate* unmanaged[Cdecl])funcTable[110])(); #endif } /// /// To be documented. /// public static void EndGroup() { EndGroupNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetCursorPosNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[111])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[111])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetCursorPos() { Vector2 ret; GetCursorPosNative(&ret); return ret; } /// /// To be documented. /// public static void GetCursorPos(Vector2* pOut) { GetCursorPosNative(pOut); } /// /// To be documented. /// public static void GetCursorPos(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetCursorPosNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetCursorPosXNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[112])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[112])(); #endif } /// /// To be documented. /// public static float GetCursorPosX() { float ret = GetCursorPosXNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetCursorPosYNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[113])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[113])(); #endif } /// /// To be documented. /// public static float GetCursorPosY() { float ret = GetCursorPosYNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCursorPosNative(Vector2 localPos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[114])(localPos); #else ((delegate* unmanaged[Cdecl])funcTable[114])(localPos); #endif } /// /// To be documented. /// public static void SetCursorPos(Vector2 localPos) { SetCursorPosNative(localPos); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCursorPosXNative(float localX) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[115])(localX); #else ((delegate* unmanaged[Cdecl])funcTable[115])(localX); #endif } /// /// To be documented. /// public static void SetCursorPosX(float localX) { SetCursorPosXNative(localX); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCursorPosYNative(float localY) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[116])(localY); #else ((delegate* unmanaged[Cdecl])funcTable[116])(localY); #endif } /// /// To be documented. /// public static void SetCursorPosY(float localY) { SetCursorPosYNative(localY); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetCursorStartPosNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[117])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[117])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetCursorStartPos() { Vector2 ret; GetCursorStartPosNative(&ret); return ret; } /// /// To be documented. /// public static void GetCursorStartPos(Vector2* pOut) { GetCursorStartPosNative(pOut); } /// /// To be documented. /// public static void GetCursorStartPos(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetCursorStartPosNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetCursorScreenPosNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[118])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[118])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetCursorScreenPos() { Vector2 ret; GetCursorScreenPosNative(&ret); return ret; } /// /// To be documented. /// public static void GetCursorScreenPos(Vector2* pOut) { GetCursorScreenPosNative(pOut); } /// /// To be documented. /// public static void GetCursorScreenPos(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetCursorScreenPosNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCursorScreenPosNative(Vector2 pos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[119])(pos); #else ((delegate* unmanaged[Cdecl])funcTable[119])(pos); #endif } /// /// To be documented. /// public static void SetCursorScreenPos(Vector2 pos) { SetCursorScreenPosNative(pos); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AlignTextToFramePaddingNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[120])(); #else ((delegate* unmanaged[Cdecl])funcTable[120])(); #endif } /// /// To be documented. /// public static void AlignTextToFramePadding() { AlignTextToFramePaddingNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetTextLineHeightNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[121])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[121])(); #endif } /// /// To be documented. /// public static float GetTextLineHeight() { float ret = GetTextLineHeightNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetTextLineHeightWithSpacingNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[122])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[122])(); #endif } /// /// To be documented. /// public static float GetTextLineHeightWithSpacing() { float ret = GetTextLineHeightWithSpacingNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetFrameHeightNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[123])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[123])(); #endif } /// /// To be documented. /// public static float GetFrameHeight() { float ret = GetFrameHeightNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetFrameHeightWithSpacingNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[124])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[124])(); #endif } /// /// To be documented. /// public static float GetFrameHeightWithSpacing() { float ret = GetFrameHeightWithSpacingNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushIDNative(byte* strId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[125])(strId); #else ((delegate* unmanaged[Cdecl])funcTable[125])((nint)strId); #endif } /// /// To be documented. /// public static void PushID(byte* strId) { PushIDNative(strId); } /// /// To be documented. /// public static void PushID(ref byte strId) { fixed (byte* pstrId = &strId) { PushIDNative((byte*)pstrId); } } /// /// To be documented. /// public static void PushID(ReadOnlySpan strId) { fixed (byte* pstrId = strId) { PushIDNative((byte*)pstrId); } } /// /// To be documented. /// public static void PushID(string strId) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } PushIDNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushIDNative(byte* strIdBegin, byte* strIdEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[126])(strIdBegin, strIdEnd); #else ((delegate* unmanaged[Cdecl])funcTable[126])((nint)strIdBegin, (nint)strIdEnd); #endif } /// /// To be documented. /// public static void PushID(byte* strIdBegin, byte* strIdEnd) { PushIDNative(strIdBegin, strIdEnd); } /// /// To be documented. /// public static void PushID(ref byte strIdBegin, byte* strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { PushIDNative((byte*)pstrIdBegin, strIdEnd); } } /// /// To be documented. /// public static void PushID(ReadOnlySpan strIdBegin, byte* strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { PushIDNative((byte*)pstrIdBegin, strIdEnd); } } /// /// To be documented. /// public static void PushID(string strIdBegin, byte* strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } PushIDNative(pStr0, strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void PushID(byte* strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdEnd = &strIdEnd) { PushIDNative(strIdBegin, (byte*)pstrIdEnd); } } /// /// To be documented. /// public static void PushID(byte* strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdEnd = strIdEnd) { PushIDNative(strIdBegin, (byte*)pstrIdEnd); } } /// /// To be documented. /// public static void PushID(byte* strIdBegin, string strIdEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } PushIDNative(strIdBegin, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void PushID(ref byte strIdBegin, ref byte strIdEnd) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); } } } /// /// To be documented. /// public static void PushID(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); } } } } }