// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; namespace Dalamud.Bindings.ImGui { public unsafe partial class ImGuiP { /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockNodeEndAmendTabBarNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1076])(); #else ((delegate* unmanaged[Cdecl])funcTable[1076])(); #endif } /// /// To be documented. /// public static void DockNodeEndAmendTabBar() { DockNodeEndAmendTabBarNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1077])(node); #else return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1077])((nint)node); #endif } /// /// To be documented. /// public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) { ImGuiDockNodePtr ret = DockNodeGetRootNodeNative(node); return ret; } /// /// To be documented. /// public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node) { fixed (ImGuiDockNode* pnode = &node) { ImGuiDockNodePtr ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1078])(node, parent); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1078])((nint)node, (nint)parent); #endif } /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) { byte ret = DockNodeIsInHierarchyOfNative(node, parent); return ret != 0; } /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent) { fixed (ImGuiDockNode* pnode = &node) { byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent); return ret != 0; } } /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent) { fixed (ImGuiDockNode* pparent = &parent) { byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); return ret != 0; } } /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent) { fixed (ImGuiDockNode* pnode = &node) { fixed (ImGuiDockNode* pparent = &parent) { byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int DockNodeGetDepthNative(ImGuiDockNode* node) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1079])(node); #else return (int)((delegate* unmanaged[Cdecl])funcTable[1079])((nint)node); #endif } /// /// To be documented. /// public static int DockNodeGetDepth(ImGuiDockNodePtr node) { int ret = DockNodeGetDepthNative(node); return ret; } /// /// To be documented. /// public static int DockNodeGetDepth(ref ImGuiDockNode node) { fixed (ImGuiDockNode* pnode = &node) { int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1080])(node); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1080])((nint)node); #endif } /// /// To be documented. /// public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) { uint ret = DockNodeGetWindowMenuButtonIdNative(node); return ret; } /// /// To be documented. /// public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node) { fixed (ImGuiDockNode* pnode = &node) { uint ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiDockNode* GetWindowDockNodeNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1081])(); #else return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1081])(); #endif } /// /// To be documented. /// public static ImGuiDockNodePtr GetWindowDockNode() { ImGuiDockNodePtr ret = GetWindowDockNodeNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1082])(window); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1082])((nint)window); #endif } /// /// To be documented. /// public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) { byte ret = GetWindowAlwaysWantOwnTabBarNative(window); return ret != 0; } /// /// To be documented. /// public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginDockedNative(ImGuiWindow* window, bool* pOpen) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1083])(window, pOpen); #else ((delegate* unmanaged[Cdecl])funcTable[1083])((nint)window, (nint)pOpen); #endif } /// /// To be documented. /// public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen) { BeginDockedNative(window, pOpen); } /// /// To be documented. /// public static void BeginDocked(ref ImGuiWindow window, bool* pOpen) { fixed (ImGuiWindow* pwindow = &window) { BeginDockedNative((ImGuiWindow*)pwindow, pOpen); } } /// /// To be documented. /// public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) { fixed (bool* ppOpen = &pOpen) { BeginDockedNative(window, (bool*)ppOpen); } } /// /// To be documented. /// public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen) { fixed (ImGuiWindow* pwindow = &window) { fixed (bool* ppOpen = &pOpen) { BeginDockedNative((ImGuiWindow*)pwindow, (bool*)ppOpen); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginDockableDragDropSourceNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1084])(window); #else ((delegate* unmanaged[Cdecl])funcTable[1084])((nint)window); #endif } /// /// To be documented. /// public static void BeginDockableDragDropSource(ImGuiWindowPtr window) { BeginDockableDragDropSourceNative(window); } /// /// To be documented. /// public static void BeginDockableDragDropSource(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginDockableDragDropTargetNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1085])(window); #else ((delegate* unmanaged[Cdecl])funcTable[1085])((nint)window); #endif } /// /// To be documented. /// public static void BeginDockableDragDropTarget(ImGuiWindowPtr window) { BeginDockableDragDropTargetNative(window); } /// /// To be documented. /// public static void BeginDockableDragDropTarget(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowDockNative(ImGuiWindow* window, uint dockId, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1086])(window, dockId, cond); #else ((delegate* unmanaged[Cdecl])funcTable[1086])((nint)window, dockId, cond); #endif } /// /// To be documented. /// public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond) { SetWindowDockNative(window, dockId, cond); } /// /// To be documented. /// public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond) { fixed (ImGuiWindow* pwindow = &window) { SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1087])(windowName, nodeId); #else ((delegate* unmanaged[Cdecl])funcTable[1087])((nint)windowName, nodeId); #endif } /// /// To be documented. /// public static void DockBuilderDockWindow(byte* windowName, uint nodeId) { DockBuilderDockWindowNative(windowName, nodeId); } /// /// To be documented. /// public static void DockBuilderDockWindow(ref byte windowName, uint nodeId) { fixed (byte* pwindowName = &windowName) { DockBuilderDockWindowNative((byte*)pwindowName, nodeId); } } /// /// To be documented. /// public static void DockBuilderDockWindow(ReadOnlySpan windowName, uint nodeId) { fixed (byte* pwindowName = windowName) { DockBuilderDockWindowNative((byte*)pwindowName, nodeId); } } /// /// To be documented. /// public static void DockBuilderDockWindow(string windowName, uint nodeId) { byte* pStr0 = null; int pStrSize0 = 0; if (windowName != null) { pStrSize0 = Utils.GetByteCountUTF8(windowName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(windowName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } DockBuilderDockWindowNative(pStr0, nodeId); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId); #else return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1088])(nodeId); #endif } /// /// To be documented. /// public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId) { ImGuiDockNodePtr ret = DockBuilderGetNodeNative(nodeId); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId); #else return (ImGuiDockNode*)((delegate* unmanaged[Cdecl])funcTable[1089])(nodeId); #endif } /// /// To be documented. /// public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId) { ImGuiDockNodePtr ret = DockBuilderGetCentralNodeNative(nodeId); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockBuilderAddNodeNative(uint nodeId, ImGuiDockNodeFlags flags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId, flags); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1090])(nodeId, flags); #endif } /// /// To be documented. /// public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) { uint ret = DockBuilderAddNodeNative(nodeId, flags); return ret; } /// /// To be documented. /// public static uint DockBuilderAddNode(uint nodeId) { uint ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0)); return ret; } /// /// To be documented. /// public static uint DockBuilderAddNode() { uint ret = DockBuilderAddNodeNative((uint)(0), (ImGuiDockNodeFlags)(0)); return ret; } /// /// To be documented. /// public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags) { uint ret = DockBuilderAddNodeNative((uint)(0), flags); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderRemoveNodeNative(uint nodeId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId); #else ((delegate* unmanaged[Cdecl])funcTable[1091])(nodeId); #endif } /// /// To be documented. /// public static void DockBuilderRemoveNode(uint nodeId) { DockBuilderRemoveNodeNative(nodeId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId, clearSettingsRefs); #else ((delegate* unmanaged[Cdecl])funcTable[1092])(nodeId, clearSettingsRefs); #endif } /// /// To be documented. /// public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs) { DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void DockBuilderRemoveNodeDockedWindows(uint nodeId) { DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderRemoveNodeChildNodesNative(uint nodeId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId); #else ((delegate* unmanaged[Cdecl])funcTable[1093])(nodeId); #endif } /// /// To be documented. /// public static void DockBuilderRemoveNodeChildNodes(uint nodeId) { DockBuilderRemoveNodeChildNodesNative(nodeId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, pos); #else ((delegate* unmanaged[Cdecl])funcTable[1094])(nodeId, pos); #endif } /// /// To be documented. /// public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) { DockBuilderSetNodePosNative(nodeId, pos); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, size); #else ((delegate* unmanaged[Cdecl])funcTable[1095])(nodeId, size); #endif } /// /// To be documented. /// public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) { DockBuilderSetNodeSizeNative(nodeId, size); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint DockBuilderSplitNodeNative(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, (nint)outIdAtDir, (nint)outIdAtOppositeDir); #endif } /// /// To be documented. /// public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) { uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl]>*, void>)funcTable[1097])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); #else ((delegate* unmanaged[Cdecl])funcTable[1097])(srcDockspaceId, dstDockspaceId, (nint)inWindowRemapPairs); #endif } /// /// To be documented. /// public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector>* inWindowRemapPairs) { DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); } /// /// To be documented. /// public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector> inWindowRemapPairs) { fixed (ImVector>* pinWindowRemapPairs = &inWindowRemapPairs) { DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVector>*)pinWindowRemapPairs); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl]*, void>)funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); #else ((delegate* unmanaged[Cdecl])funcTable[1098])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs); #endif } /// /// To be documented. /// public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector* outNodeRemapPairs) { DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); } /// /// To be documented. /// public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector outNodeRemapPairs) { fixed (ImVector* poutNodeRemapPairs = &outNodeRemapPairs) { DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector*)poutNodeRemapPairs); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1099])(srcName, dstName); #else ((delegate* unmanaged[Cdecl])funcTable[1099])((nint)srcName, (nint)dstName); #endif } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName) { DockBuilderCopyWindowSettingsNative(srcName, dstName); } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ref byte srcName, byte* dstName) { fixed (byte* psrcName = &srcName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, byte* dstName) { fixed (byte* psrcName = srcName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(string srcName, byte* dstName) { byte* pStr0 = null; int pStrSize0 = 0; if (srcName != null) { pStrSize0 = Utils.GetByteCountUTF8(srcName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } DockBuilderCopyWindowSettingsNative(pStr0, dstName); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(byte* srcName, ref byte dstName) { fixed (byte* pdstName = &dstName) { DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(byte* srcName, ReadOnlySpan dstName) { fixed (byte* pdstName = dstName) { DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(byte* srcName, string dstName) { byte* pStr0 = null; int pStrSize0 = 0; if (dstName != null) { pStrSize0 = Utils.GetByteCountUTF8(dstName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } DockBuilderCopyWindowSettingsNative(srcName, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ref byte srcName, ref byte dstName) { fixed (byte* psrcName = &srcName) { fixed (byte* pdstName = &dstName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ReadOnlySpan dstName) { fixed (byte* psrcName = srcName) { fixed (byte* pdstName = dstName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(string srcName, string dstName) { byte* pStr0 = null; int pStrSize0 = 0; if (srcName != null) { pStrSize0 = Utils.GetByteCountUTF8(srcName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (dstName != null) { pStrSize1 = Utils.GetByteCountUTF8(dstName); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(dstName, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } DockBuilderCopyWindowSettingsNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ref byte srcName, ReadOnlySpan dstName) { fixed (byte* psrcName = &srcName) { fixed (byte* pdstName = dstName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ref byte srcName, string dstName) { fixed (byte* psrcName = &srcName) { byte* pStr0 = null; int pStrSize0 = 0; if (dstName != null) { pStrSize0 = Utils.GetByteCountUTF8(dstName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, ref byte dstName) { fixed (byte* psrcName = srcName) { fixed (byte* pdstName = &dstName) { DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(ReadOnlySpan srcName, string dstName) { fixed (byte* psrcName = srcName) { byte* pStr0 = null; int pStrSize0 = 0; if (dstName != null) { pStrSize0 = Utils.GetByteCountUTF8(dstName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(string srcName, ref byte dstName) { byte* pStr0 = null; int pStrSize0 = 0; if (srcName != null) { pStrSize0 = Utils.GetByteCountUTF8(srcName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pdstName = &dstName) { DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void DockBuilderCopyWindowSettings(string srcName, ReadOnlySpan dstName) { byte* pStr0 = null; int pStrSize0 = 0; if (srcName != null) { pStrSize0 = Utils.GetByteCountUTF8(srcName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pdstName = dstName) { DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DockBuilderFinishNative(uint nodeId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1100])(nodeId); #else ((delegate* unmanaged[Cdecl])funcTable[1100])(nodeId); #endif } /// /// To be documented. /// public static void DockBuilderFinish(uint nodeId) { DockBuilderFinishNative(nodeId); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsDragDropActiveNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1101])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1101])(); #endif } /// /// To be documented. /// public static bool IsDragDropActive() { byte ret = IsDragDropActiveNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginDragDropTargetCustomNative(ImRect bb, uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1102])(bb, id); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1102])(bb, id); #endif } /// /// To be documented. /// public static bool BeginDragDropTargetCustom(ImRect bb, uint id) { byte ret = BeginDragDropTargetCustomNative(bb, id); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearDragDropNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1103])(); #else ((delegate* unmanaged[Cdecl])funcTable[1103])(); #endif } /// /// To be documented. /// public static void ClearDragDrop() { ClearDragDropNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsDragDropPayloadBeingAcceptedNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1104])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1104])(); #endif } /// /// To be documented. /// public static bool IsDragDropPayloadBeingAccepted() { byte ret = IsDragDropPayloadBeingAcceptedNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1105])(window, clipRect); #else ((delegate* unmanaged[Cdecl])funcTable[1105])((nint)window, clipRect); #endif } /// /// To be documented. /// public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect) { SetWindowClipRectBeforeSetChannelNative(window, clipRect); } /// /// To be documented. /// public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect) { fixed (ImGuiWindow* pwindow = &window) { SetWindowClipRectBeforeSetChannelNative((ImGuiWindow*)pwindow, clipRect); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1106])(strId, count, flags); #else ((delegate* unmanaged[Cdecl])funcTable[1106])((nint)strId, count, flags); #endif } /// /// To be documented. /// public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags) { BeginColumnsNative(strId, count, flags); } /// /// To be documented. /// public static void BeginColumns(byte* strId, int count) { BeginColumnsNative(strId, count, (ImGuiOldColumnFlags)(0)); } /// /// To be documented. /// public static void BeginColumns(ref byte strId, int count, ImGuiOldColumnFlags flags) { fixed (byte* pstrId = &strId) { BeginColumnsNative((byte*)pstrId, count, flags); } } /// /// To be documented. /// public static void BeginColumns(ref byte strId, int count) { fixed (byte* pstrId = &strId) { BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); } } /// /// To be documented. /// public static void BeginColumns(ReadOnlySpan strId, int count, ImGuiOldColumnFlags flags) { fixed (byte* pstrId = strId) { BeginColumnsNative((byte*)pstrId, count, flags); } } /// /// To be documented. /// public static void BeginColumns(ReadOnlySpan strId, int count) { fixed (byte* pstrId = strId) { BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); } } /// /// To be documented. /// public static void BeginColumns(string strId, int count, ImGuiOldColumnFlags flags) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } BeginColumnsNative(pStr0, count, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void BeginColumns(string strId, int count) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } BeginColumnsNative(pStr0, count, (ImGuiOldColumnFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void EndColumnsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1107])(); #else ((delegate* unmanaged[Cdecl])funcTable[1107])(); #endif } /// /// To be documented. /// public static void EndColumns() { EndColumnsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushColumnClipRectNative(int columnIndex) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1108])(columnIndex); #else ((delegate* unmanaged[Cdecl])funcTable[1108])(columnIndex); #endif } /// /// To be documented. /// public static void PushColumnClipRect(int columnIndex) { PushColumnClipRectNative(columnIndex); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushColumnsBackgroundNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1109])(); #else ((delegate* unmanaged[Cdecl])funcTable[1109])(); #endif } /// /// To be documented. /// public static void PushColumnsBackground() { PushColumnsBackgroundNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopColumnsBackgroundNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1110])(); #else ((delegate* unmanaged[Cdecl])funcTable[1110])(); #endif } /// /// To be documented. /// public static void PopColumnsBackground() { PopColumnsBackgroundNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetColumnsIDNative(byte* strId, int count) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1111])(strId, count); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1111])((nint)strId, count); #endif } /// /// To be documented. /// public static uint GetColumnsID(byte* strId, int count) { uint ret = GetColumnsIDNative(strId, count); return ret; } /// /// To be documented. /// public static uint GetColumnsID(ref byte strId, int count) { fixed (byte* pstrId = &strId) { uint ret = GetColumnsIDNative((byte*)pstrId, count); return ret; } } /// /// To be documented. /// public static uint GetColumnsID(ReadOnlySpan strId, int count) { fixed (byte* pstrId = strId) { uint ret = GetColumnsIDNative((byte*)pstrId, count); return ret; } } /// /// To be documented. /// public static uint GetColumnsID(string strId, int count) { byte* pStr0 = null; int pStrSize0 = 0; if (strId != null) { pStrSize0 = Utils.GetByteCountUTF8(strId); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetColumnsIDNative(pStr0, count); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1112])(window, id); #else return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl])funcTable[1112])((nint)window, id); #endif } /// /// To be documented. /// public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id) { ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative(window, id); return ret; } /// /// To be documented. /// public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id) { fixed (ImGuiWindow* pwindow = &window) { ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative((ImGuiWindow*)pwindow, id); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1113])(columns, offsetNorm); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1113])((nint)columns, offsetNorm); #endif } /// /// To be documented. /// public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) { float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); return ret; } /// /// To be documented. /// public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm) { fixed (ImGuiOldColumns* pcolumns = &columns) { float ret = GetColumnOffsetFromNormNative((ImGuiOldColumns*)pcolumns, offsetNorm); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1114])(columns, offset); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1114])((nint)columns, offset); #endif } /// /// To be documented. /// public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) { float ret = GetColumnNormFromOffsetNative(columns, offset); return ret; } /// /// To be documented. /// public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset) { fixed (ImGuiOldColumns* pcolumns = &columns) { float ret = GetColumnNormFromOffsetNative((ImGuiOldColumns*)pcolumns, offset); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableOpenContextMenuNative(int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1115])(columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1115])(columnN); #endif } /// /// To be documented. /// public static void TableOpenContextMenu(int columnN) { TableOpenContextMenuNative(columnN); } /// /// To be documented. /// public static void TableOpenContextMenu() { TableOpenContextMenuNative((int)(-1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnWidthNative(int columnN, float width) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1116])(columnN, width); #else ((delegate* unmanaged[Cdecl])funcTable[1116])(columnN, width); #endif } /// /// To be documented. /// public static void TableSetColumnWidth(int columnN, float width) { TableSetColumnWidthNative(columnN, width); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnSortDirectionNative(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1117])(columnN, sortDirection, appendToSortSpecs); #else ((delegate* unmanaged[Cdecl])funcTable[1117])(columnN, sortDirection, appendToSortSpecs); #endif } /// /// To be documented. /// public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs) { TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int TableGetHoveredColumnNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1118])(); #else return (int)((delegate* unmanaged[Cdecl])funcTable[1118])(); #endif } /// /// To be documented. /// public static int TableGetHoveredColumn() { int ret = TableGetHoveredColumnNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float TableGetHeaderRowHeightNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1119])(); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1119])(); #endif } /// /// To be documented. /// public static float TableGetHeaderRowHeight() { float ret = TableGetHeaderRowHeightNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TablePushBackgroundChannelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1120])(); #else ((delegate* unmanaged[Cdecl])funcTable[1120])(); #endif } /// /// To be documented. /// public static void TablePushBackgroundChannel() { TablePushBackgroundChannelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TablePopBackgroundChannelNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1121])(); #else ((delegate* unmanaged[Cdecl])funcTable[1121])(); #endif } /// /// To be documented. /// public static void TablePopBackgroundChannel() { TablePopBackgroundChannelNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTable* GetCurrentTableNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1122])(); #else return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1122])(); #endif } /// /// To be documented. /// public static ImGuiTablePtr GetCurrentTable() { ImGuiTablePtr ret = GetCurrentTableNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTable* TableFindByIDNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1123])(id); #else return (ImGuiTable*)((delegate* unmanaged[Cdecl])funcTable[1123])(id); #endif } /// /// To be documented. /// public static ImGuiTablePtr TableFindByID(uint id) { ImGuiTablePtr ret = TableFindByIDNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1124])((nint)name, id, columnsCount, flags, outerSize, innerWidth); #endif } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags) { byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { fixed (byte* pname = &name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(ReadOnlySpan name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { fixed (byte* pname = name) { byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); return ret != 0; } } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) { 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 = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) { 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 = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags 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 = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount) { 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 = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize) { 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 = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) { 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 = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, float innerWidth) { 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 = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) { 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 = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1125])(table, columnsCount); #else ((delegate* unmanaged[Cdecl])funcTable[1125])((nint)table, columnsCount); #endif } /// /// To be documented. /// public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) { TableBeginInitMemoryNative(table, columnsCount); } /// /// To be documented. /// public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) { fixed (ImGuiTable* ptable = &table) { TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginApplyRequestsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1126])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1126])((nint)table); #endif } /// /// To be documented. /// public static void TableBeginApplyRequests(ImGuiTablePtr table) { TableBeginApplyRequestsNative(table); } /// /// To be documented. /// public static void TableBeginApplyRequests(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableBeginApplyRequestsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetupDrawChannelsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1127])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1127])((nint)table); #endif } /// /// To be documented. /// public static void TableSetupDrawChannels(ImGuiTablePtr table) { TableSetupDrawChannelsNative(table); } /// /// To be documented. /// public static void TableSetupDrawChannels(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSetupDrawChannelsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateLayoutNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1128])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1128])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateLayout(ImGuiTablePtr table) { TableUpdateLayoutNative(table); } /// /// To be documented. /// public static void TableUpdateLayout(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateLayoutNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateBordersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1129])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1129])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateBorders(ImGuiTablePtr table) { TableUpdateBordersNative(table); } /// /// To be documented. /// public static void TableUpdateBorders(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateBordersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1130])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1130])((nint)table); #endif } /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) { TableUpdateColumnsWeightFromWidthNative(table); } /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableDrawBordersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1131])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1131])((nint)table); #endif } /// /// To be documented. /// public static void TableDrawBorders(ImGuiTablePtr table) { TableDrawBordersNative(table); } /// /// To be documented. /// public static void TableDrawBorders(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableDrawBordersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableDrawContextMenuNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1132])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1132])((nint)table); #endif } /// /// To be documented. /// public static void TableDrawContextMenu(ImGuiTablePtr table) { TableDrawContextMenuNative(table); } /// /// To be documented. /// public static void TableDrawContextMenu(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableDrawContextMenuNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableMergeDrawChannelsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1133])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1133])((nint)table); #endif } /// /// To be documented. /// public static void TableMergeDrawChannels(ImGuiTablePtr table) { TableMergeDrawChannelsNative(table); } /// /// To be documented. /// public static void TableMergeDrawChannels(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableMergeDrawChannelsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1134])(table, instanceNo); #else return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl])funcTable[1134])((nint)table, instanceNo); #endif } /// /// To be documented. /// public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) { ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative(table, instanceNo); return ret; } /// /// To be documented. /// public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) { fixed (ImGuiTable* ptable = &table) { ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSortSpecsSanitizeNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1135])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1135])((nint)table); #endif } /// /// To be documented. /// public static void TableSortSpecsSanitize(ImGuiTablePtr table) { TableSortSpecsSanitizeNative(table); } /// /// To be documented. /// public static void TableSortSpecsSanitize(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSortSpecsSanitizeNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSortSpecsBuildNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1136])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1136])((nint)table); #endif } /// /// To be documented. /// public static void TableSortSpecsBuild(ImGuiTablePtr table) { TableSortSpecsBuildNative(table); } /// /// To be documented. /// public static void TableSortSpecsBuild(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSortSpecsBuildNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiSortDirection TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1137])(column); #else return (ImGuiSortDirection)((delegate* unmanaged[Cdecl])funcTable[1137])((nint)column); #endif } /// /// To be documented. /// public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) { ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); return ret; } /// /// To be documented. /// public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1138])(table, column); #else ((delegate* unmanaged[Cdecl])funcTable[1138])((nint)table, (nint)column); #endif } /// /// To be documented. /// public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) { TableFixColumnSortDirectionNative(table, column); } /// /// To be documented. /// public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) { fixed (ImGuiTable* ptable = &table) { TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); } } /// /// To be documented. /// public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); } } /// /// To be documented. /// public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) { fixed (ImGuiTable* ptable = &table) { fixed (ImGuiTableColumn* pcolumn = &column) { TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1139])(table, column); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1139])((nint)table, (nint)column); #endif } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) { float ret = TableGetColumnWidthAutoNative(table, column); return ret; } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) { fixed (ImGuiTable* ptable = &table) { float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); return ret; } } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) { fixed (ImGuiTableColumn* pcolumn = &column) { float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); return ret; } } /// /// To be documented. /// public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) { fixed (ImGuiTable* ptable = &table) { fixed (ImGuiTableColumn* pcolumn = &column) { float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); return ret; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginRowNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1140])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1140])((nint)table); #endif } /// /// To be documented. /// public static void TableBeginRow(ImGuiTablePtr table) { TableBeginRowNative(table); } /// /// To be documented. /// public static void TableBeginRow(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableBeginRowNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableEndRowNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1141])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1141])((nint)table); #endif } /// /// To be documented. /// public static void TableEndRow(ImGuiTablePtr table) { TableEndRowNative(table); } /// /// To be documented. /// public static void TableEndRow(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableEndRowNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableBeginCellNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1142])(table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1142])((nint)table, columnN); #endif } /// /// To be documented. /// public static void TableBeginCell(ImGuiTablePtr table, int columnN) { TableBeginCellNative(table, columnN); } /// /// To be documented. /// public static void TableBeginCell(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableBeginCellNative((ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableEndCellNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1143])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1143])((nint)table); #endif } /// /// To be documented. /// public static void TableEndCell(ImGuiTablePtr table) { TableEndCellNative(table); } /// /// To be documented. /// public static void TableEndCell(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableEndCellNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1144])(pOut, table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1144])((nint)pOut, (nint)table, columnN); #endif } /// /// To be documented. /// public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) { ImRect ret; TableGetCellBgRectNative(&ret, table, columnN); return ret; } /// /// To be documented. /// public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) { TableGetCellBgRectNative(pOut, table, columnN); } /// /// To be documented. /// public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) { fixed (ImRect* ppOut = &pOut) { TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); } } /// /// To be documented. /// public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { ImRect ret; TableGetCellBgRectNative(&ret, (ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) { fixed (ImRect* ppOut = &pOut) { fixed (ImGuiTable* ptable = &table) { TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1145])(table, columnN); #else return (byte*)((delegate* unmanaged[Cdecl])funcTable[1145])((nint)table, columnN); #endif } /// /// To be documented. /// public static byte* TableGetColumnName(ImGuiTablePtr table, int columnN) { byte* ret = TableGetColumnNameNative(table, columnN); return ret; } /// /// To be documented. /// public static string TableGetColumnNameS(ImGuiTablePtr table, int columnN) { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); return ret; } /// /// To be documented. /// public static byte* TableGetColumnName(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// public static string TableGetColumnNameS(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1146])(table, columnN, instanceNo); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[1146])((nint)table, columnN, instanceNo); #endif } /// /// To be documented. /// public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) { uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); return ret; } /// /// To be documented. /// public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) { uint ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); return ret; } /// /// To be documented. /// public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) { fixed (ImGuiTable* ptable = &table) { uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); return ret; } } /// /// To be documented. /// public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1147])(table, columnN); #else return (float)((delegate* unmanaged[Cdecl])funcTable[1147])((nint)table, columnN); #endif } /// /// To be documented. /// public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) { float ret = TableGetMaxColumnWidthNative(table, columnN); return ret; } /// /// To be documented. /// public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1148])(table, columnN); #else ((delegate* unmanaged[Cdecl])funcTable[1148])((nint)table, columnN); #endif } /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) { TableSetColumnWidthAutoSingleNative(table, columnN); } /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) { fixed (ImGuiTable* ptable = &table) { TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSetColumnWidthAutoAllNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1149])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1149])((nint)table); #endif } /// /// To be documented. /// public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) { TableSetColumnWidthAutoAllNative(table); } /// /// To be documented. /// public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableRemoveNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1150])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1150])((nint)table); #endif } /// /// To be documented. /// public static void TableRemove(ImGuiTablePtr table) { TableRemoveNative(table); } /// /// To be documented. /// public static void TableRemove(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableRemoveNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactTransientBuffersNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1151])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1151])((nint)table); #endif } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) { TableGcCompactTransientBuffersNative(table); } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactTransientBuffersNative(ImGuiTableTempData* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1152])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1152])((nint)table); #endif } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) { TableGcCompactTransientBuffersNative(table); } /// /// To be documented. /// public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) { fixed (ImGuiTableTempData* ptable = &table) { TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableGcCompactSettingsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1153])(); #else ((delegate* unmanaged[Cdecl])funcTable[1153])(); #endif } /// /// To be documented. /// public static void TableGcCompactSettings() { TableGcCompactSettingsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableLoadSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1154])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1154])((nint)table); #endif } /// /// To be documented. /// public static void TableLoadSettings(ImGuiTablePtr table) { TableLoadSettingsNative(table); } /// /// To be documented. /// public static void TableLoadSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableLoadSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSaveSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1155])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1155])((nint)table); #endif } /// /// To be documented. /// public static void TableSaveSettings(ImGuiTablePtr table) { TableSaveSettingsNative(table); } /// /// To be documented. /// public static void TableSaveSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableSaveSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableResetSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1156])(table); #else ((delegate* unmanaged[Cdecl])funcTable[1156])((nint)table); #endif } /// /// To be documented. /// public static void TableResetSettings(ImGuiTablePtr table) { TableResetSettingsNative(table); } /// /// To be documented. /// public static void TableResetSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { TableResetSettingsNative((ImGuiTable*)ptable); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1157])(table); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1157])((nint)table); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) { ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative(table); return ret; } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) { fixed (ImGuiTable* ptable = &table) { ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TableSettingsAddSettingsHandlerNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1158])(); #else ((delegate* unmanaged[Cdecl])funcTable[1158])(); #endif } /// /// To be documented. /// public static void TableSettingsAddSettingsHandler() { TableSettingsAddSettingsHandlerNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1159])(id, columnsCount); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) { ImGuiTableSettingsPtr ret = TableSettingsCreateNative(id, columnsCount); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableSettings* TableSettingsFindByIDNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1160])(id); #else return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl])funcTable[1160])(id); #endif } /// /// To be documented. /// public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) { ImGuiTableSettingsPtr ret = TableSettingsFindByIDNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1161])(tabBar, bb, flags, dockNode); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1161])((nint)tabBar, bb, flags, (nint)dockNode); #endif } /// /// To be documented. /// public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) { byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); return ret != 0; } /// /// To be documented. /// public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) { fixed (ImGuiDockNode* pdockNode = &dockNode) { byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); return ret != 0; } } /// /// To be documented. /// public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiDockNode* pdockNode = &dockNode) { byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1162])(tabBar, tabId); #else return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1162])((nint)tabBar, tabId); #endif } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) { ImGuiTabItemPtr ret = TabBarFindTabByIDNative(tabBar, tabId); return ret; } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) { fixed (ImGuiTabBar* ptabBar = &tabBar) { ImGuiTabItemPtr ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1163])(tabBar); #else return (ImGuiTabItem*)((delegate* unmanaged[Cdecl])funcTable[1163])((nint)tabBar); #endif } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) { ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); return ret; } /// /// To be documented. /// public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) { fixed (ImGuiTabBar* ptabBar = &tabBar) { ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarAddTabNative(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1164])(tabBar, tabFlags, window); #else ((delegate* unmanaged[Cdecl])funcTable[1164])((nint)tabBar, tabFlags, (nint)window); #endif } /// /// To be documented. /// public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) { TabBarAddTabNative(tabBar, tabFlags, window); } /// /// To be documented. /// public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); } } /// /// To be documented. /// public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiWindow* pwindow = &window) { TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1165])(tabBar, tabId); #else ((delegate* unmanaged[Cdecl])funcTable[1165])((nint)tabBar, tabId); #endif } /// /// To be documented. /// public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) { TabBarRemoveTabNative(tabBar, tabId); } /// /// To be documented. /// public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1166])(tabBar, tab); #else ((delegate* unmanaged[Cdecl])funcTable[1166])((nint)tabBar, (nint)tab); #endif } /// /// To be documented. /// public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) { TabBarCloseTabNative(tabBar, tab); } /// /// To be documented. /// public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); } } /// /// To be documented. /// public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) { fixed (ImGuiTabItem* ptab = &tab) { TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); } } /// /// To be documented. /// public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1167])(tabBar, tab, offset); #else ((delegate* unmanaged[Cdecl])funcTable[1167])((nint)tabBar, (nint)tab, offset); #endif } /// /// To be documented. /// public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) { TabBarQueueReorderNative(tabBar, tab, offset); } /// /// To be documented. /// public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); } } /// /// To be documented. /// public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); } } /// /// To be documented. /// public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1168])(tabBar, tab, mousePos); #else ((delegate* unmanaged[Cdecl])funcTable[1168])((nint)tabBar, (nint)tab, mousePos); #endif } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) { TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) { fixed (ImGuiTabBar* ptabBar = &tabBar) { TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); } } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); } } /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiTabItem* ptab = &tab) { TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TabBarProcessReorderNative(ImGuiTabBar* tabBar) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1169])(tabBar); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1169])((nint)tabBar); #endif } /// /// To be documented. /// public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) { byte ret = TabBarProcessReorderNative(tabBar); return ret != 0; } /// /// To be documented. /// public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1170])((nint)tabBar, (nint)label, (nint)pOpen, flags, (nint)dockedWindow); #endif } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); return ret != 0; } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = &label) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = label) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { 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 = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { 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 = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = &label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } /// /// To be documented. /// public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = &label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { fixed (byte* plabel = label) { fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } } } /// /// To be documented. /// public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) { fixed (ImGuiTabBar* ptabBar = &tabBar) { byte* pStr0 = null; int pStrSize0 = 0; if (label != null) { pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (bool* ppOpen = &pOpen) { fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret != 0; } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1171])(pOut, label, hasCloseButton); #else ((delegate* unmanaged[Cdecl])funcTable[1171])((nint)pOut, (nint)label, hasCloseButton); #endif } /// /// To be documented. /// public static Vector2 TabItemCalcSize(byte* label, bool hasCloseButton) { Vector2 ret; TabItemCalcSizeNative(&ret, label, hasCloseButton ? (byte)1 : (byte)0); return ret; } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, byte* label, bool hasCloseButton) { TabItemCalcSizeNative(pOut, label, hasCloseButton ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, byte* label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(ref byte label, bool hasCloseButton) { fixed (byte* plabel = &label) { Vector2 ret; TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); return ret; } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(ReadOnlySpan label, bool hasCloseButton) { fixed (byte* plabel = label) { Vector2 ret; TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); return ret; } } /// /// To be documented. /// public static Vector2 TabItemCalcSize(string label, bool hasCloseButton) { 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; } Vector2 ret; TabItemCalcSizeNative(&ret, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, ref byte label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { fixed (byte* plabel = &label) { TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, ReadOnlySpan label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { fixed (byte* plabel = label) { TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } } /// /// To be documented. /// public static void TabItemCalcSize(ref Vector2 pOut, string label, bool hasCloseButton) { fixed (Vector2* ppOut = &pOut) { 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; } TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, ref byte label, bool hasCloseButton) { fixed (byte* plabel = &label) { TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, ReadOnlySpan label, bool hasCloseButton) { fixed (byte* plabel = label) { TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void TabItemCalcSize(Vector2* pOut, string label, bool hasCloseButton) { 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; } TabItemCalcSizeNative(pOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1172])(drawList, bb, flags, col); #else ((delegate* unmanaged[Cdecl])funcTable[1172])((nint)drawList, bb, flags, col); #endif } /// /// To be documented. /// public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { TabItemBackgroundNative(drawList, bb, flags, col); } /// /// To be documented. /// public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) { fixed (ImDrawList* pdrawList = &drawList) { TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); #else ((delegate* unmanaged[Cdecl])funcTable[1173])((nint)drawList, bb, flags, framePadding, (nint)label, tabId, closeButtonId, isContentsVisible, (nint)outJustClosed, (nint)outTextClipped); #endif } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (ImDrawList* pdrawList = &drawList) { TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } /// /// To be documented. /// public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) { fixed (byte* plabel = &label) { TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } } }