// ------------------------------------------------------------------------------ // // 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. /// public static ImGuiTableSettingsPtr ImGuiTableSettings() { ImGuiTableSettingsPtr ret = ImGuiTableSettingsNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiTableColumnSettings* GetColumnSettingsNative(ImGuiTableSettings* self) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[913])(self); #else return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl])funcTable[913])((nint)self); #endif } /// /// To be documented. /// public static ImGuiTableColumnSettingsPtr GetColumnSettings(ImGuiTableSettingsPtr self) { ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative(self); return ret; } /// /// To be documented. /// public static ImGuiTableColumnSettingsPtr GetColumnSettings(ref ImGuiTableSettings self) { fixed (ImGuiTableSettings* pself = &self) { ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative((ImGuiTableSettings*)pself); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindow* GetCurrentWindowReadNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[914])(); #else return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[914])(); #endif } /// /// To be documented. /// public static ImGuiWindowPtr GetCurrentWindowRead() { ImGuiWindowPtr ret = GetCurrentWindowReadNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindow* GetCurrentWindowNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[915])(); #else return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[915])(); #endif } /// /// To be documented. /// public static ImGuiWindowPtr GetCurrentWindow() { ImGuiWindowPtr ret = GetCurrentWindowNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindow* FindWindowByIDNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[916])(id); #else return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[916])(id); #endif } /// /// To be documented. /// public static ImGuiWindowPtr FindWindowByID(uint id) { ImGuiWindowPtr ret = FindWindowByIDNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindow* FindWindowByNameNative(byte* name) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[917])(name); #else return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[917])((nint)name); #endif } /// /// To be documented. /// public static ImGuiWindowPtr FindWindowByName(byte* name) { ImGuiWindowPtr ret = FindWindowByNameNative(name); return ret; } /// /// To be documented. /// public static ImGuiWindowPtr FindWindowByName(ref byte name) { fixed (byte* pname = &name) { ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowPtr FindWindowByName(ReadOnlySpan name) { fixed (byte* pname = name) { ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowPtr FindWindowByName(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiWindowPtr ret = FindWindowByNameNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UpdateWindowParentAndRootLinksNative(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parentWindow) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[918])(window, flags, parentWindow); #else ((delegate* unmanaged[Cdecl])funcTable[918])((nint)window, flags, (nint)parentWindow); #endif } /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) { UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); } /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) { fixed (ImGuiWindow* pwindow = &window) { UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, parentWindow); } } /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) { fixed (ImGuiWindow* pparentWindow = &parentWindow) { UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); } } /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiWindow* pparentWindow = &parentWindow) { UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CalcWindowNextAutoFitSizeNative(Vector2* pOut, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[919])(pOut, window); #else ((delegate* unmanaged[Cdecl])funcTable[919])((nint)pOut, (nint)window); #endif } /// /// To be documented. /// public static Vector2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) { Vector2 ret; CalcWindowNextAutoFitSizeNative(&ret, window); return ret; } /// /// To be documented. /// public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindowPtr window) { CalcWindowNextAutoFitSizeNative(pOut, window); } /// /// To be documented. /// public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ImGuiWindowPtr window) { fixed (Vector2* ppOut = &pOut) { CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, window); } } /// /// To be documented. /// public static Vector2 CalcWindowNextAutoFitSize(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { Vector2 ret; CalcWindowNextAutoFitSizeNative(&ret, (ImGuiWindow*)pwindow); return ret; } } /// /// To be documented. /// public static void CalcWindowNextAutoFitSize(Vector2* pOut, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ref ImGuiWindow window) { fixed (Vector2* ppOut = &pOut) { fixed (ImGuiWindow* pwindow = &window) { CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowChildOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[920])(window, potentialParent, popupHierarchy, dockHierarchy); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[920])((nint)window, (nint)potentialParent, popupHierarchy, dockHierarchy); #endif } /// /// To be documented. /// public static bool IsWindowChildOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) { byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); return ret != 0; } /// /// To be documented. /// public static bool IsWindowChildOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) { fixed (ImGuiWindow* pwindow = &window) { byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowChildOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) { fixed (ImGuiWindow* ppotentialParent = &potentialParent) { byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowChildOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiWindow* ppotentialParent = &potentialParent) { byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowWithinBeginStackOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[921])(window, potentialParent); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[921])((nint)window, (nint)potentialParent); #endif } /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent) { byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); return ret != 0; } /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent) { fixed (ImGuiWindow* pwindow = &window) { byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, potentialParent); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent) { fixed (ImGuiWindow* ppotentialParent = &potentialParent) { byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiWindow* ppotentialParent = &potentialParent) { byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowAboveNative(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[922])(potentialAbove, potentialBelow); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[922])((nint)potentialAbove, (nint)potentialBelow); #endif } /// /// To be documented. /// public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) { byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); return ret != 0; } /// /// To be documented. /// public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ImGuiWindowPtr potentialBelow) { fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) { byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, potentialBelow); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ref ImGuiWindow potentialBelow) { fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) { byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); return ret != 0; } } /// /// To be documented. /// public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ref ImGuiWindow potentialBelow) { fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) { fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) { byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); return ret != 0; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsWindowNavFocusableNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[923])(window); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[923])((nint)window); #endif } /// /// To be documented. /// public static bool IsWindowNavFocusable(ImGuiWindowPtr window) { byte ret = IsWindowNavFocusableNative(window); return ret != 0; } /// /// To be documented. /// public static bool IsWindowNavFocusable(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { byte ret = IsWindowNavFocusableNative((ImGuiWindow*)pwindow); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowPosNative(ImGuiWindow* window, Vector2 pos, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[924])(window, pos, cond); #else ((delegate* unmanaged[Cdecl])funcTable[924])((nint)window, pos, cond); #endif } /// /// To be documented. /// public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos, ImGuiCond cond) { SetWindowPosNative(window, pos, cond); } /// /// To be documented. /// public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos) { SetWindowPosNative(window, pos, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos, ImGuiCond cond) { fixed (ImGuiWindow* pwindow = &window) { SetWindowPosNative((ImGuiWindow*)pwindow, pos, cond); } } /// /// To be documented. /// public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos) { fixed (ImGuiWindow* pwindow = &window) { SetWindowPosNative((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowSizeNative(ImGuiWindow* window, Vector2 size, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[925])(window, size, cond); #else ((delegate* unmanaged[Cdecl])funcTable[925])((nint)window, size, cond); #endif } /// /// To be documented. /// public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size, ImGuiCond cond) { SetWindowSizeNative(window, size, cond); } /// /// To be documented. /// public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size) { SetWindowSizeNative(window, size, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowSize(ref ImGuiWindow window, Vector2 size, ImGuiCond cond) { fixed (ImGuiWindow* pwindow = &window) { SetWindowSizeNative((ImGuiWindow*)pwindow, size, cond); } } /// /// To be documented. /// public static void SetWindowSize(ref ImGuiWindow window, Vector2 size) { fixed (ImGuiWindow* pwindow = &window) { SetWindowSizeNative((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowCollapsedNative(ImGuiWindow* window, byte collapsed, ImGuiCond cond) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[926])(window, collapsed, cond); #else ((delegate* unmanaged[Cdecl])funcTable[926])((nint)window, collapsed, cond); #endif } /// /// To be documented. /// public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed, ImGuiCond cond) { SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, cond); } /// /// To be documented. /// public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed) { SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } /// /// To be documented. /// public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed, ImGuiCond cond) { fixed (ImGuiWindow* pwindow = &window) { SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); } } /// /// To be documented. /// public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed) { fixed (ImGuiWindow* pwindow = &window) { SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowHitTestHoleNative(ImGuiWindow* window, Vector2 pos, Vector2 size) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[927])(window, pos, size); #else ((delegate* unmanaged[Cdecl])funcTable[927])((nint)window, pos, size); #endif } /// /// To be documented. /// public static void SetWindowHitTestHole(ImGuiWindowPtr window, Vector2 pos, Vector2 size) { SetWindowHitTestHoleNative(window, pos, size); } /// /// To be documented. /// public static void SetWindowHitTestHole(ref ImGuiWindow window, Vector2 pos, Vector2 size) { fixed (ImGuiWindow* pwindow = &window) { SetWindowHitTestHoleNative((ImGuiWindow*)pwindow, pos, size); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void WindowRectAbsToRelNative(ImRect* pOut, ImGuiWindow* window, ImRect r) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[928])(pOut, window, r); #else ((delegate* unmanaged[Cdecl])funcTable[928])((nint)pOut, (nint)window, r); #endif } /// /// To be documented. /// public static ImRect WindowRectAbsToRel(ImGuiWindowPtr window, ImRect r) { ImRect ret; WindowRectAbsToRelNative(&ret, window, r); return ret; } /// /// To be documented. /// public static void WindowRectAbsToRel(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) { WindowRectAbsToRelNative(pOut, window, r); } /// /// To be documented. /// public static void WindowRectAbsToRel(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) { fixed (ImRect* ppOut = &pOut) { WindowRectAbsToRelNative((ImRect*)ppOut, window, r); } } /// /// To be documented. /// public static ImRect WindowRectAbsToRel(ref ImGuiWindow window, ImRect r) { fixed (ImGuiWindow* pwindow = &window) { ImRect ret; WindowRectAbsToRelNative(&ret, (ImGuiWindow*)pwindow, r); return ret; } } /// /// To be documented. /// public static void WindowRectAbsToRel(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) { fixed (ImGuiWindow* pwindow = &window) { WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); } } /// /// To be documented. /// public static void WindowRectAbsToRel(ref ImRect pOut, ref ImGuiWindow window, ImRect r) { fixed (ImRect* ppOut = &pOut) { fixed (ImGuiWindow* pwindow = &window) { WindowRectAbsToRelNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void WindowRectRelToAbsNative(ImRect* pOut, ImGuiWindow* window, ImRect r) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[929])(pOut, window, r); #else ((delegate* unmanaged[Cdecl])funcTable[929])((nint)pOut, (nint)window, r); #endif } /// /// To be documented. /// public static ImRect WindowRectRelToAbs(ImGuiWindowPtr window, ImRect r) { ImRect ret; WindowRectRelToAbsNative(&ret, window, r); return ret; } /// /// To be documented. /// public static void WindowRectRelToAbs(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) { WindowRectRelToAbsNative(pOut, window, r); } /// /// To be documented. /// public static void WindowRectRelToAbs(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) { fixed (ImRect* ppOut = &pOut) { WindowRectRelToAbsNative((ImRect*)ppOut, window, r); } } /// /// To be documented. /// public static ImRect WindowRectRelToAbs(ref ImGuiWindow window, ImRect r) { fixed (ImGuiWindow* pwindow = &window) { ImRect ret; WindowRectRelToAbsNative(&ret, (ImGuiWindow*)pwindow, r); return ret; } } /// /// To be documented. /// public static void WindowRectRelToAbs(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) { fixed (ImGuiWindow* pwindow = &window) { WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); } } /// /// To be documented. /// public static void WindowRectRelToAbs(ref ImRect pOut, ref ImGuiWindow window, ImRect r) { fixed (ImRect* ppOut = &pOut) { fixed (ImGuiWindow* pwindow = &window) { WindowRectRelToAbsNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void FocusWindowNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[930])(window); #else ((delegate* unmanaged[Cdecl])funcTable[930])((nint)window); #endif } /// /// To be documented. /// public static void FocusWindow(ImGuiWindowPtr window) { FocusWindowNative(window); } /// /// To be documented. /// public static void FocusWindow(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { FocusWindowNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void FocusTopMostWindowUnderOneNative(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[931])(underThisWindow, ignoreWindow); #else ((delegate* unmanaged[Cdecl])funcTable[931])((nint)underThisWindow, (nint)ignoreWindow); #endif } /// /// To be documented. /// public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow) { FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow); } /// /// To be documented. /// public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ImGuiWindowPtr ignoreWindow) { fixed (ImGuiWindow* punderThisWindow = &underThisWindow) { FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, ignoreWindow); } } /// /// To be documented. /// public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ref ImGuiWindow ignoreWindow) { fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) { FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow); } } /// /// To be documented. /// public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ref ImGuiWindow ignoreWindow) { fixed (ImGuiWindow* punderThisWindow = &underThisWindow) { fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) { FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BringWindowToFocusFrontNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[932])(window); #else ((delegate* unmanaged[Cdecl])funcTable[932])((nint)window); #endif } /// /// To be documented. /// public static void BringWindowToFocusFront(ImGuiWindowPtr window) { BringWindowToFocusFrontNative(window); } /// /// To be documented. /// public static void BringWindowToFocusFront(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { BringWindowToFocusFrontNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BringWindowToDisplayFrontNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[933])(window); #else ((delegate* unmanaged[Cdecl])funcTable[933])((nint)window); #endif } /// /// To be documented. /// public static void BringWindowToDisplayFront(ImGuiWindowPtr window) { BringWindowToDisplayFrontNative(window); } /// /// To be documented. /// public static void BringWindowToDisplayFront(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { BringWindowToDisplayFrontNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BringWindowToDisplayBackNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[934])(window); #else ((delegate* unmanaged[Cdecl])funcTable[934])((nint)window); #endif } /// /// To be documented. /// public static void BringWindowToDisplayBack(ImGuiWindowPtr window) { BringWindowToDisplayBackNative(window); } /// /// To be documented. /// public static void BringWindowToDisplayBack(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { BringWindowToDisplayBackNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void BringWindowToDisplayBehindNative(ImGuiWindow* window, ImGuiWindow* aboveWindow) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[935])(window, aboveWindow); #else ((delegate* unmanaged[Cdecl])funcTable[935])((nint)window, (nint)aboveWindow); #endif } /// /// To be documented. /// public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) { BringWindowToDisplayBehindNative(window, aboveWindow); } /// /// To be documented. /// public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ImGuiWindowPtr aboveWindow) { fixed (ImGuiWindow* pwindow = &window) { BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, aboveWindow); } } /// /// To be documented. /// public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ref ImGuiWindow aboveWindow) { fixed (ImGuiWindow* paboveWindow = &aboveWindow) { BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); } } /// /// To be documented. /// public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ref ImGuiWindow aboveWindow) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiWindow* paboveWindow = &aboveWindow) { BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static int FindWindowDisplayIndexNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[936])(window); #else return (int)((delegate* unmanaged[Cdecl])funcTable[936])((nint)window); #endif } /// /// To be documented. /// public static int FindWindowDisplayIndex(ImGuiWindowPtr window) { int ret = FindWindowDisplayIndexNative(window); return ret; } /// /// To be documented. /// public static int FindWindowDisplayIndex(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { int ret = FindWindowDisplayIndexNative((ImGuiWindow*)pwindow); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[937])(window); #else return (ImGuiWindow*)((delegate* unmanaged[Cdecl])funcTable[937])((nint)window); #endif } /// /// To be documented. /// public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) { ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); return ret; } /// /// To be documented. /// public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative((ImGuiWindow*)pwindow); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCurrentFontNative(ImFont* font) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[938])(font); #else ((delegate* unmanaged[Cdecl])funcTable[938])((nint)font); #endif } /// /// To be documented. /// public static void SetCurrentFont(ImFontPtr font) { SetCurrentFontNative(font); } /// /// To be documented. /// public static void SetCurrentFont(ref ImFont font) { fixed (ImFont* pfont = &font) { SetCurrentFontNative((ImFont*)pfont); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImFont* GetDefaultFontNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[939])(); #else return (ImFont*)((delegate* unmanaged[Cdecl])funcTable[939])(); #endif } /// /// To be documented. /// public static ImFontPtr GetDefaultFont() { ImFontPtr ret = GetDefaultFontNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImDrawList* GetForegroundDrawListNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[940])(window); #else return (ImDrawList*)((delegate* unmanaged[Cdecl])funcTable[940])((nint)window); #endif } /// /// To be documented. /// public static ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) { ImDrawListPtr ret = GetForegroundDrawListNative(window); return ret; } /// /// To be documented. /// public static ImDrawListPtr GetForegroundDrawList(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiWindow*)pwindow); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void InitializeNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[941])(); #else ((delegate* unmanaged[Cdecl])funcTable[941])(); #endif } /// /// To be documented. /// public static void Initialize() { InitializeNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShutdownNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[942])(); #else ((delegate* unmanaged[Cdecl])funcTable[942])(); #endif } /// /// To be documented. /// public static void Shutdown() { ShutdownNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UpdateInputEventsNative(byte trickleFastInputs) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[943])(trickleFastInputs); #else ((delegate* unmanaged[Cdecl])funcTable[943])(trickleFastInputs); #endif } /// /// To be documented. /// public static void UpdateInputEvents(bool trickleFastInputs) { UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UpdateHoveredWindowAndCaptureFlagsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[944])(); #else ((delegate* unmanaged[Cdecl])funcTable[944])(); #endif } /// /// To be documented. /// public static void UpdateHoveredWindowAndCaptureFlags() { UpdateHoveredWindowAndCaptureFlagsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void StartMouseMovingWindowNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[945])(window); #else ((delegate* unmanaged[Cdecl])funcTable[945])((nint)window); #endif } /// /// To be documented. /// public static void StartMouseMovingWindow(ImGuiWindowPtr window) { StartMouseMovingWindowNative(window); } /// /// To be documented. /// public static void StartMouseMovingWindow(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { StartMouseMovingWindowNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void StartMouseMovingWindowOrNodeNative(ImGuiWindow* window, ImGuiDockNode* node, byte undockFloatingNode) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[946])(window, node, undockFloatingNode); #else ((delegate* unmanaged[Cdecl])funcTable[946])((nint)window, (nint)node, undockFloatingNode); #endif } /// /// To be documented. /// public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undockFloatingNode) { StartMouseMovingWindowOrNodeNative(window, node, undockFloatingNode ? (byte)1 : (byte)0); } /// /// To be documented. /// public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ImGuiDockNodePtr node, bool undockFloatingNode) { fixed (ImGuiWindow* pwindow = &window) { StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ref ImGuiDockNode node, bool undockFloatingNode) { fixed (ImGuiDockNode* pnode = &node) { StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); } } /// /// To be documented. /// public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ref ImGuiDockNode node, bool undockFloatingNode) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiDockNode* pnode = &node) { StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UpdateMouseMovingWindowNewFrameNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[947])(); #else ((delegate* unmanaged[Cdecl])funcTable[947])(); #endif } /// /// To be documented. /// public static void UpdateMouseMovingWindowNewFrame() { UpdateMouseMovingWindowNewFrameNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void UpdateMouseMovingWindowEndFrameNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[948])(); #else ((delegate* unmanaged[Cdecl])funcTable[948])(); #endif } /// /// To be documented. /// public static void UpdateMouseMovingWindowEndFrame() { UpdateMouseMovingWindowEndFrameNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint AddContextHookNative(ImGuiContext* context, ImGuiContextHook* hook) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[949])(context, hook); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[949])((nint)context, (nint)hook); #endif } /// /// To be documented. /// public static uint AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) { uint ret = AddContextHookNative(context, hook); return ret; } /// /// To be documented. /// public static uint AddContextHook(ref ImGuiContext context, ImGuiContextHookPtr hook) { fixed (ImGuiContext* pcontext = &context) { uint ret = AddContextHookNative((ImGuiContext*)pcontext, hook); return ret; } } /// /// To be documented. /// public static uint AddContextHook(ImGuiContextPtr context, ref ImGuiContextHook hook) { fixed (ImGuiContextHook* phook = &hook) { uint ret = AddContextHookNative(context, (ImGuiContextHook*)phook); return ret; } } /// /// To be documented. /// public static uint AddContextHook(ref ImGuiContext context, ref ImGuiContextHook hook) { fixed (ImGuiContext* pcontext = &context) { fixed (ImGuiContextHook* phook = &hook) { uint ret = AddContextHookNative((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); return ret; } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void RemoveContextHookNative(ImGuiContext* context, uint hookToRemove) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[950])(context, hookToRemove); #else ((delegate* unmanaged[Cdecl])funcTable[950])((nint)context, hookToRemove); #endif } /// /// To be documented. /// public static void RemoveContextHook(ImGuiContextPtr context, uint hookToRemove) { RemoveContextHookNative(context, hookToRemove); } /// /// To be documented. /// public static void RemoveContextHook(ref ImGuiContext context, uint hookToRemove) { fixed (ImGuiContext* pcontext = &context) { RemoveContextHookNative((ImGuiContext*)pcontext, hookToRemove); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CallContextHooksNative(ImGuiContext* context, ImGuiContextHookType type) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[951])(context, type); #else ((delegate* unmanaged[Cdecl])funcTable[951])((nint)context, type); #endif } /// /// To be documented. /// public static void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) { CallContextHooksNative(context, type); } /// /// To be documented. /// public static void CallContextHooks(ref ImGuiContext context, ImGuiContextHookType type) { fixed (ImGuiContext* pcontext = &context) { CallContextHooksNative((ImGuiContext*)pcontext, type); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void TranslateWindowsInViewportNative(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[952])(viewport, oldPos, newPos); #else ((delegate* unmanaged[Cdecl])funcTable[952])((nint)viewport, oldPos, newPos); #endif } /// /// To be documented. /// public static void TranslateWindowsInViewport(ImGuiViewportPPtr viewport, Vector2 oldPos, Vector2 newPos) { TranslateWindowsInViewportNative(viewport, oldPos, newPos); } /// /// To be documented. /// public static void TranslateWindowsInViewport(ref ImGuiViewportP viewport, Vector2 oldPos, Vector2 newPos) { fixed (ImGuiViewportP* pviewport = &viewport) { TranslateWindowsInViewportNative((ImGuiViewportP*)pviewport, oldPos, newPos); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScaleWindowsInViewportNative(ImGuiViewportP* viewport, float scale) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[953])(viewport, scale); #else ((delegate* unmanaged[Cdecl])funcTable[953])((nint)viewport, scale); #endif } /// /// To be documented. /// public static void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) { ScaleWindowsInViewportNative(viewport, scale); } /// /// To be documented. /// public static void ScaleWindowsInViewport(ref ImGuiViewportP viewport, float scale) { fixed (ImGuiViewportP* pviewport = &viewport) { ScaleWindowsInViewportNative((ImGuiViewportP*)pviewport, scale); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void DestroyPlatformWindowNative(ImGuiViewportP* viewport) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[954])(viewport); #else ((delegate* unmanaged[Cdecl])funcTable[954])((nint)viewport); #endif } /// /// To be documented. /// public static void DestroyPlatformWindow(ImGuiViewportPPtr viewport) { DestroyPlatformWindowNative(viewport); } /// /// To be documented. /// public static void DestroyPlatformWindow(ref ImGuiViewportP viewport) { fixed (ImGuiViewportP* pviewport = &viewport) { DestroyPlatformWindowNative((ImGuiViewportP*)pviewport); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetWindowViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[955])(window, viewport); #else ((delegate* unmanaged[Cdecl])funcTable[955])((nint)window, (nint)viewport); #endif } /// /// To be documented. /// public static void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) { SetWindowViewportNative(window, viewport); } /// /// To be documented. /// public static void SetWindowViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) { fixed (ImGuiWindow* pwindow = &window) { SetWindowViewportNative((ImGuiWindow*)pwindow, viewport); } } /// /// To be documented. /// public static void SetWindowViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) { fixed (ImGuiViewportP* pviewport = &viewport) { SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); } } /// /// To be documented. /// public static void SetWindowViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiViewportP* pviewport = &viewport) { SetWindowViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetCurrentViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[956])(window, viewport); #else ((delegate* unmanaged[Cdecl])funcTable[956])((nint)window, (nint)viewport); #endif } /// /// To be documented. /// public static void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) { SetCurrentViewportNative(window, viewport); } /// /// To be documented. /// public static void SetCurrentViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) { fixed (ImGuiWindow* pwindow = &window) { SetCurrentViewportNative((ImGuiWindow*)pwindow, viewport); } } /// /// To be documented. /// public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) { fixed (ImGuiViewportP* pviewport = &viewport) { SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); } } /// /// To be documented. /// public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) { fixed (ImGuiWindow* pwindow = &window) { fixed (ImGuiViewportP* pviewport = &viewport) { SetCurrentViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[957])(viewport); #else return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl])funcTable[957])((nint)viewport); #endif } /// /// To be documented. /// public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) { ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative(viewport); return ret; } /// /// To be documented. /// public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) { fixed (ImGuiViewport* pviewport = &viewport) { ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative((ImGuiViewport*)pviewport); return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); #else return (ImGuiViewportP*)((delegate* unmanaged[Cdecl])funcTable[958])(mousePlatformPos); #endif } /// /// To be documented. /// public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) { ImGuiViewportPPtr ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void MarkIniSettingsDirtyNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[959])(); #else ((delegate* unmanaged[Cdecl])funcTable[959])(); #endif } /// /// To be documented. /// public static void MarkIniSettingsDirty() { MarkIniSettingsDirtyNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void MarkIniSettingsDirtyNative(ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[960])(window); #else ((delegate* unmanaged[Cdecl])funcTable[960])((nint)window); #endif } /// /// To be documented. /// public static void MarkIniSettingsDirty(ImGuiWindowPtr window) { MarkIniSettingsDirtyNative(window); } /// /// To be documented. /// public static void MarkIniSettingsDirty(ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { MarkIniSettingsDirtyNative((ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearIniSettingsNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[961])(); #else ((delegate* unmanaged[Cdecl])funcTable[961])(); #endif } /// /// To be documented. /// public static void ClearIniSettings() { ClearIniSettingsNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[962])(name); #else return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[962])((nint)name); #endif } /// /// To be documented. /// public static ImGuiWindowSettingsPtr CreateNewWindowSettings(byte* name) { ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(name); return ret; } /// /// To be documented. /// public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ref byte name) { fixed (byte* pname = &name) { ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ReadOnlySpan name) { fixed (byte* pname = name) { ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowSettingsPtr CreateNewWindowSettings(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindowSettings* FindWindowSettingsNative(uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[963])(id); #else return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[963])(id); #endif } /// /// To be documented. /// public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) { ImGuiWindowSettingsPtr ret = FindWindowSettingsNative(id); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[964])(name); #else return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl])funcTable[964])((nint)name); #endif } /// /// To be documented. /// public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(byte* name) { ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(name); return ret; } /// /// To be documented. /// public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ref byte name) { fixed (byte* pname = &name) { ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ReadOnlySpan name) { fixed (byte* pname = name) { ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); return ret; } } /// /// To be documented. /// public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(string name) { byte* pStr0 = null; int pStrSize0 = 0; if (name != null) { pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AddSettingsHandlerNative(ImGuiSettingsHandler* handler) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[965])(handler); #else ((delegate* unmanaged[Cdecl])funcTable[965])((nint)handler); #endif } /// /// To be documented. /// public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) { AddSettingsHandlerNative(handler); } /// /// To be documented. /// public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) { fixed (ImGuiSettingsHandler* phandler = &handler) { AddSettingsHandlerNative((ImGuiSettingsHandler*)phandler); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void RemoveSettingsHandlerNative(byte* typeName) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[966])(typeName); #else ((delegate* unmanaged[Cdecl])funcTable[966])((nint)typeName); #endif } /// /// To be documented. /// public static void RemoveSettingsHandler(byte* typeName) { RemoveSettingsHandlerNative(typeName); } /// /// To be documented. /// public static void RemoveSettingsHandler(ref byte typeName) { fixed (byte* ptypeName = &typeName) { RemoveSettingsHandlerNative((byte*)ptypeName); } } /// /// To be documented. /// public static void RemoveSettingsHandler(ReadOnlySpan typeName) { fixed (byte* ptypeName = typeName) { RemoveSettingsHandlerNative((byte*)ptypeName); } } /// /// To be documented. /// public static void RemoveSettingsHandler(string typeName) { byte* pStr0 = null; int pStrSize0 = 0; if (typeName != null) { pStrSize0 = Utils.GetByteCountUTF8(typeName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } RemoveSettingsHandlerNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[967])(typeName); #else return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl])funcTable[967])((nint)typeName); #endif } /// /// To be documented. /// public static ImGuiSettingsHandlerPtr FindSettingsHandler(byte* typeName) { ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(typeName); return ret; } /// /// To be documented. /// public static ImGuiSettingsHandlerPtr FindSettingsHandler(ref byte typeName) { fixed (byte* ptypeName = &typeName) { ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); return ret; } } /// /// To be documented. /// public static ImGuiSettingsHandlerPtr FindSettingsHandler(ReadOnlySpan typeName) { fixed (byte* ptypeName = typeName) { ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); return ret; } } /// /// To be documented. /// public static ImGuiSettingsHandlerPtr FindSettingsHandler(string typeName) { byte* pStr0 = null; int pStrSize0 = 0; if (typeName != null) { pStrSize0 = Utils.GetByteCountUTF8(typeName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetNextWindowScrollNative(Vector2 scroll) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); #else ((delegate* unmanaged[Cdecl])funcTable[968])(scroll); #endif } /// /// To be documented. /// public static void SetNextWindowScroll(Vector2 scroll) { SetNextWindowScrollNative(scroll); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollXNative(ImGuiWindow* window, float scrollX) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[969])(window, scrollX); #else ((delegate* unmanaged[Cdecl])funcTable[969])((nint)window, scrollX); #endif } /// /// To be documented. /// public static void SetScrollX(ImGuiWindowPtr window, float scrollX) { SetScrollXNative(window, scrollX); } /// /// To be documented. /// public static void SetScrollX(ref ImGuiWindow window, float scrollX) { fixed (ImGuiWindow* pwindow = &window) { SetScrollXNative((ImGuiWindow*)pwindow, scrollX); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollYNative(ImGuiWindow* window, float scrollY) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[970])(window, scrollY); #else ((delegate* unmanaged[Cdecl])funcTable[970])((nint)window, scrollY); #endif } /// /// To be documented. /// public static void SetScrollY(ImGuiWindowPtr window, float scrollY) { SetScrollYNative(window, scrollY); } /// /// To be documented. /// public static void SetScrollY(ref ImGuiWindow window, float scrollY) { fixed (ImGuiWindow* pwindow = &window) { SetScrollYNative((ImGuiWindow*)pwindow, scrollY); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollFromPosXNative(ImGuiWindow* window, float localX, float centerXRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[971])(window, localX, centerXRatio); #else ((delegate* unmanaged[Cdecl])funcTable[971])((nint)window, localX, centerXRatio); #endif } /// /// To be documented. /// public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) { SetScrollFromPosXNative(window, localX, centerXRatio); } /// /// To be documented. /// public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) { fixed (ImGuiWindow* pwindow = &window) { SetScrollFromPosXNative((ImGuiWindow*)pwindow, localX, centerXRatio); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetScrollFromPosYNative(ImGuiWindow* window, float localY, float centerYRatio) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[972])(window, localY, centerYRatio); #else ((delegate* unmanaged[Cdecl])funcTable[972])((nint)window, localY, centerYRatio); #endif } /// /// To be documented. /// public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) { SetScrollFromPosYNative(window, localY, centerYRatio); } /// /// To be documented. /// public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) { fixed (ImGuiWindow* pwindow = &window) { SetScrollFromPosYNative((ImGuiWindow*)pwindow, localY, centerYRatio); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScrollToItemNative(ImGuiScrollFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[973])(flags); #else ((delegate* unmanaged[Cdecl])funcTable[973])(flags); #endif } /// /// To be documented. /// public static void ScrollToItem(ImGuiScrollFlags flags) { ScrollToItemNative(flags); } /// /// To be documented. /// public static void ScrollToItem() { ScrollToItemNative((ImGuiScrollFlags)(0)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScrollToRectNative(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[974])(window, rect, flags); #else ((delegate* unmanaged[Cdecl])funcTable[974])((nint)window, rect, flags); #endif } /// /// To be documented. /// public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) { ScrollToRectNative(window, rect, flags); } /// /// To be documented. /// public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) { ScrollToRectNative(window, rect, (ImGuiScrollFlags)(0)); } /// /// To be documented. /// public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectNative((ImGuiWindow*)pwindow, rect, flags); } } /// /// To be documented. /// public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectNative((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[975])(pOut, window, rect, flags); #else ((delegate* unmanaged[Cdecl])funcTable[975])((nint)pOut, (nint)window, rect, flags); #endif } /// /// To be documented. /// public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) { Vector2 ret; ScrollToRectExNative(&ret, window, rect, (ImGuiScrollFlags)(0)); return ret; } /// /// To be documented. /// public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) { Vector2 ret; ScrollToRectExNative(&ret, window, rect, flags); return ret; } /// /// To be documented. /// public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) { ScrollToRectExNative(pOut, window, rect, flags); } /// /// To be documented. /// public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) { ScrollToRectExNative(pOut, window, rect, (ImGuiScrollFlags)(0)); } /// /// To be documented. /// public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) { fixed (Vector2* ppOut = &pOut) { ScrollToRectExNative((Vector2*)ppOut, window, rect, flags); } } /// /// To be documented. /// public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) { fixed (Vector2* ppOut = &pOut) { ScrollToRectExNative((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); } } /// /// To be documented. /// public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) { fixed (ImGuiWindow* pwindow = &window) { Vector2 ret; ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); return ret; } } /// /// To be documented. /// public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) { fixed (ImGuiWindow* pwindow = &window) { Vector2 ret; ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, flags); return ret; } } /// /// To be documented. /// public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); } } /// /// To be documented. /// public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); } } /// /// To be documented. /// public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) { fixed (Vector2* ppOut = &pOut) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); } } } /// /// To be documented. /// public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) { fixed (Vector2* ppOut = &pOut) { fixed (ImGuiWindow* pwindow = &window) { ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[976])(window, rect); #else ((delegate* unmanaged[Cdecl])funcTable[976])((nint)window, rect); #endif } /// /// To be documented. /// public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) { ScrollToBringRectIntoViewNative(window, rect); } /// /// To be documented. /// public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) { fixed (ImGuiWindow* pwindow = &window) { ScrollToBringRectIntoViewNative((ImGuiWindow*)pwindow, rect); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetItemIDNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[977])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[977])(); #endif } /// /// To be documented. /// public static uint GetItemID() { uint ret = GetItemIDNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiItemStatusFlags GetItemStatusFlagsNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[978])(); #else return (ImGuiItemStatusFlags)((delegate* unmanaged[Cdecl])funcTable[978])(); #endif } /// /// To be documented. /// public static ImGuiItemStatusFlags GetItemStatusFlags() { ImGuiItemStatusFlags ret = GetItemStatusFlagsNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static ImGuiItemFlags GetItemFlagsNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[979])(); #else return (ImGuiItemFlags)((delegate* unmanaged[Cdecl])funcTable[979])(); #endif } /// /// To be documented. /// public static ImGuiItemFlags GetItemFlags() { ImGuiItemFlags ret = GetItemFlagsNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetActiveIDNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[980])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[980])(); #endif } /// /// To be documented. /// public static uint GetActiveID() { uint ret = GetActiveIDNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetFocusIDNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[981])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[981])(); #endif } /// /// To be documented. /// public static uint GetFocusID() { uint ret = GetFocusIDNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetActiveIDNative(uint id, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[982])(id, window); #else ((delegate* unmanaged[Cdecl])funcTable[982])(id, (nint)window); #endif } /// /// To be documented. /// public static void SetActiveID(uint id, ImGuiWindowPtr window) { SetActiveIDNative(id, window); } /// /// To be documented. /// public static void SetActiveID(uint id, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { SetActiveIDNative(id, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetFocusIDNative(uint id, ImGuiWindow* window) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[983])(id, window); #else ((delegate* unmanaged[Cdecl])funcTable[983])(id, (nint)window); #endif } /// /// To be documented. /// public static void SetFocusID(uint id, ImGuiWindowPtr window) { SetFocusIDNative(id, window); } /// /// To be documented. /// public static void SetFocusID(uint id, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { SetFocusIDNative(id, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ClearActiveIDNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[984])(); #else ((delegate* unmanaged[Cdecl])funcTable[984])(); #endif } /// /// To be documented. /// public static void ClearActiveID() { ClearActiveIDNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetHoveredIDNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[985])(); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[985])(); #endif } /// /// To be documented. /// public static uint GetHoveredID() { uint ret = GetHoveredIDNative(); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetHoveredIDNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[986])(id); #else ((delegate* unmanaged[Cdecl])funcTable[986])(id); #endif } /// /// To be documented. /// public static void SetHoveredID(uint id) { SetHoveredIDNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void KeepAliveIDNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[987])(id); #else ((delegate* unmanaged[Cdecl])funcTable[987])(id); #endif } /// /// To be documented. /// public static void KeepAliveID(uint id) { KeepAliveIDNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void MarkItemEditedNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[988])(id); #else ((delegate* unmanaged[Cdecl])funcTable[988])(id); #endif } /// /// To be documented. /// public static void MarkItemEdited(uint id) { MarkItemEditedNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushOverrideIDNative(uint id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[989])(id); #else ((delegate* unmanaged[Cdecl])funcTable[989])(id); #endif } /// /// To be documented. /// public static void PushOverrideID(uint id) { PushOverrideIDNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[990])(strIdBegin, strIdEnd, seed); #else return (uint)((delegate* unmanaged[Cdecl])funcTable[990])((nint)strIdBegin, (nint)strIdEnd, seed); #endif } /// /// To be documented. /// public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) { uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); return ret; } /// /// To be documented. /// public static uint GetIDWithSeed(ref byte strIdBegin, byte* strIdEnd, uint seed) { fixed (byte* pstrIdBegin = &strIdBegin) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, byte* strIdEnd, uint seed) { fixed (byte* pstrIdBegin = strIdBegin) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(string strIdBegin, byte* strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDWithSeedNative(pStr0, strIdEnd, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetIDWithSeed(byte* strIdBegin, ref byte strIdEnd, uint seed) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(byte* strIdBegin, ReadOnlySpan strIdEnd, uint seed) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(byte* strIdBegin, string strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetIDWithSeed(ref byte strIdBegin, ref byte strIdEnd, uint seed) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); return ret; } } } /// /// To be documented. /// public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ReadOnlySpan strIdEnd, uint seed) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); return ret; } } } /// /// To be documented. /// public static uint GetIDWithSeed(string strIdBegin, string strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (strIdEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } uint ret = GetIDWithSeedNative(pStr0, pStr1, seed); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } /// /// To be documented. /// public static uint GetIDWithSeed(ref byte strIdBegin, ReadOnlySpan strIdEnd, uint seed) { fixed (byte* pstrIdBegin = &strIdBegin) { fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); return ret; } } } /// /// To be documented. /// public static uint GetIDWithSeed(ref byte strIdBegin, string strIdEnd, uint seed) { fixed (byte* pstrIdBegin = &strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, ref byte strIdEnd, uint seed) { fixed (byte* pstrIdBegin = strIdBegin) { fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); return ret; } } } /// /// To be documented. /// public static uint GetIDWithSeed(ReadOnlySpan strIdBegin, string strIdEnd, uint seed) { fixed (byte* pstrIdBegin = strIdBegin) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(string strIdBegin, ref byte strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = &strIdEnd) { uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// public static uint GetIDWithSeed(string strIdBegin, ReadOnlySpan strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; if (strIdBegin != null) { pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* pstrIdEnd = strIdEnd) { uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } return ret; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ItemSizeNative(Vector2 size, float textBaselineY) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); #else ((delegate* unmanaged[Cdecl])funcTable[991])(size, textBaselineY); #endif } /// /// To be documented. /// public static void ItemSize(Vector2 size, float textBaselineY) { ItemSizeNative(size, textBaselineY); } /// /// To be documented. /// public static void ItemSize(Vector2 size) { ItemSizeNative(size, (float)(-1.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ItemSizeNative(ImRect bb, float textBaselineY) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); #else ((delegate* unmanaged[Cdecl])funcTable[992])(bb, textBaselineY); #endif } /// /// To be documented. /// public static void ItemSize(ImRect bb, float textBaselineY) { ItemSizeNative(bb, textBaselineY); } /// /// To be documented. /// public static void ItemSize(ImRect bb) { ItemSizeNative(bb, (float)(-1.0f)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, navBb, extraFlags); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[993])(bb, id, (nint)navBb, extraFlags); #endif } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) { byte ret = ItemAddNative(bb, id, navBb, extraFlags); return ret != 0; } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) { byte ret = ItemAddNative(bb, id, navBb, (ImGuiItemFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id) { byte ret = ItemAddNative(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); return ret != 0; } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) { byte ret = ItemAddNative(bb, id, (ImRect*)(default), extraFlags); return ret != 0; } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) { fixed (ImRect* pnavBb = &navBb) { byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); return ret != 0; } } /// /// To be documented. /// public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) { fixed (ImRect* pnavBb = &navBb) { byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); return ret != 0; } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte ItemHoverableNative(ImRect bb, uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[994])(bb, id); #endif } /// /// To be documented. /// public static bool ItemHoverable(ImRect bb, uint id) { byte ret = ItemHoverableNative(bb, id); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsClippedExNative(ImRect bb, uint id) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[995])(bb, id); #endif } /// /// To be documented. /// public static bool IsClippedEx(ImRect bb, uint id) { byte ret = IsClippedExNative(bb, id); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetLastItemDataNative(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); #else ((delegate* unmanaged[Cdecl])funcTable[996])(itemId, inFlags, statusFlags, itemRect); #endif } /// /// To be documented. /// public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) { SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[997])(pOut, size, defaultW, defaultH); #else ((delegate* unmanaged[Cdecl])funcTable[997])((nint)pOut, size, defaultW, defaultH); #endif } /// /// To be documented. /// public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) { Vector2 ret; CalcItemSizeNative(&ret, size, defaultW, defaultH); return ret; } /// /// To be documented. /// public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) { CalcItemSizeNative(pOut, size, defaultW, defaultH); } /// /// To be documented. /// public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) { fixed (Vector2* ppOut = &pOut) { CalcItemSizeNative((Vector2*)ppOut, size, defaultW, defaultH); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); #else return (float)((delegate* unmanaged[Cdecl])funcTable[998])(pos, wrapPosX); #endif } /// /// To be documented. /// public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) { float ret = CalcWrapWidthForPosNative(pos, wrapPosX); return ret; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushMultiItemsWidthsNative(int components, float widthFull) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); #else ((delegate* unmanaged[Cdecl])funcTable[999])(components, widthFull); #endif } /// /// To be documented. /// public static void PushMultiItemsWidths(int components, float widthFull) { PushMultiItemsWidthsNative(components, widthFull); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsItemToggledSelectionNative() { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[1000])(); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[1000])(); #endif } /// /// To be documented. /// public static bool IsItemToggledSelection() { byte ret = IsItemToggledSelectionNative(); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void GetContentRegionMaxAbsNative(Vector2* pOut) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1001])(pOut); #else ((delegate* unmanaged[Cdecl])funcTable[1001])((nint)pOut); #endif } /// /// To be documented. /// public static Vector2 GetContentRegionMaxAbs() { Vector2 ret; GetContentRegionMaxAbsNative(&ret); return ret; } /// /// To be documented. /// public static void GetContentRegionMaxAbs(Vector2* pOut) { GetContentRegionMaxAbsNative(pOut); } /// /// To be documented. /// public static void GetContentRegionMaxAbs(ref Vector2 pOut) { fixed (Vector2* ppOut = &pOut) { GetContentRegionMaxAbsNative((Vector2*)ppOut); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1002])(items, count, widthExcess); #else ((delegate* unmanaged[Cdecl])funcTable[1002])((nint)items, count, widthExcess); #endif } /// /// To be documented. /// public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) { ShrinkWidthsNative(items, count, widthExcess); } /// /// To be documented. /// public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) { fixed (ImGuiShrinkWidthItem* pitems = &items) { ShrinkWidthsNative((ImGuiShrinkWidthItem*)pitems, count, widthExcess); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PushItemFlagNative(ImGuiItemFlags option, byte enabled) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); #else ((delegate* unmanaged[Cdecl])funcTable[1003])(option, enabled); #endif } /// /// To be documented. /// public static void PushItemFlag(ImGuiItemFlags option, bool enabled) { PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void PopItemFlagNative() { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1004])(); #else ((delegate* unmanaged[Cdecl])funcTable[1004])(); #endif } /// /// To be documented. /// public static void PopItemFlag() { PopItemFlagNative(); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogBeginNative(ImGuiLogType type, int autoOpenDepth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); #else ((delegate* unmanaged[Cdecl])funcTable[1005])(type, autoOpenDepth); #endif } /// /// To be documented. /// public static void LogBegin(ImGuiLogType type, int autoOpenDepth) { LogBeginNative(type, autoOpenDepth); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogToBufferNative(int autoOpenDepth) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); #else ((delegate* unmanaged[Cdecl])funcTable[1006])(autoOpenDepth); #endif } /// /// To be documented. /// public static void LogToBuffer(int autoOpenDepth) { LogToBufferNative(autoOpenDepth); } /// /// To be documented. /// public static void LogToBuffer() { LogToBufferNative((int)(-1)); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1007])(refPos, text, textEnd); #else ((delegate* unmanaged[Cdecl])funcTable[1007])((nint)refPos, (nint)text, (nint)textEnd); #endif } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) { LogRenderedTextNative(refPos, text, textEnd); } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, byte* text) { LogRenderedTextNative(refPos, text, (byte*)(default)); } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, byte* text, byte* textEnd) { fixed (Vector2* prefPos = &refPos) { LogRenderedTextNative((Vector2*)prefPos, text, textEnd); } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, byte* text) { fixed (Vector2* prefPos = &refPos) { LogRenderedTextNative((Vector2*)prefPos, text, (byte*)(default)); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { LogRenderedTextNative(refPos, (byte*)ptext, textEnd); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ref byte text) { fixed (byte* ptext = &text) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, byte* textEnd) { fixed (byte* ptext = text) { LogRenderedTextNative(refPos, (byte*)ptext, textEnd); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text) { fixed (byte* ptext = text) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative(refPos, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, string text) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative(refPos, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ref byte text, byte* textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = &text) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ref byte text) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = &text) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, byte* textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = text) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = text) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, string text, byte* textEnd) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative((Vector2*)prefPos, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, string text) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, byte* text, ref byte textEnd) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative(refPos, text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, byte* text, ReadOnlySpan textEnd) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative(refPos, text, (byte*)ptextEnd); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative(refPos, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, byte* text, ref byte textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, byte* text, ReadOnlySpan textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, byte* text, string textEnd) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative((Vector2*)prefPos, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ref byte text, ref byte textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ReadOnlySpan textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, string text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } LogRenderedTextNative(refPos, pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ref byte text, ReadOnlySpan textEnd) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ref byte text, string textEnd) { fixed (byte* ptext = &text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative(refPos, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, ref byte textEnd) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, ReadOnlySpan text, string textEnd) { fixed (byte* ptext = text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative(refPos, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, string text, ref byte textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(Vector2* refPos, string text, ReadOnlySpan textEnd) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ref byte text, ref byte textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ReadOnlySpan textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, string text, string textEnd) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (textEnd != null) { pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } LogRenderedTextNative((Vector2*)prefPos, pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ref byte text, ReadOnlySpan textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = &text) { fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ref byte text, string textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = &text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, ref byte textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = text) { fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan text, string textEnd) { fixed (Vector2* prefPos = &refPos) { fixed (byte* ptext = text) { byte* pStr0 = null; int pStrSize0 = 0; if (textEnd != null) { pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, string text, ref byte textEnd) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = &textEnd) { LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// public static void LogRenderedText(ref Vector2 refPos, string text, ReadOnlySpan textEnd) { fixed (Vector2* prefPos = &refPos) { byte* pStr0 = null; int pStrSize0 = 0; if (text != null) { pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (byte* ptextEnd = textEnd) { LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[1008])(prefix, suffix); #else ((delegate* unmanaged[Cdecl])funcTable[1008])((nint)prefix, (nint)suffix); #endif } /// /// To be documented. /// public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) { LogSetNextTextDecorationNative(prefix, suffix); } /// /// To be documented. /// public static void LogSetNextTextDecoration(ref byte prefix, byte* suffix) { fixed (byte* pprefix = &prefix) { LogSetNextTextDecorationNative((byte*)pprefix, suffix); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ReadOnlySpan prefix, byte* suffix) { fixed (byte* pprefix = prefix) { LogSetNextTextDecorationNative((byte*)pprefix, suffix); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(string prefix, byte* suffix) { byte* pStr0 = null; int pStrSize0 = 0; if (prefix != null) { pStrSize0 = Utils.GetByteCountUTF8(prefix); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogSetNextTextDecorationNative(pStr0, suffix); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(byte* prefix, ref byte suffix) { fixed (byte* psuffix = &suffix) { LogSetNextTextDecorationNative(prefix, (byte*)psuffix); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(byte* prefix, ReadOnlySpan suffix) { fixed (byte* psuffix = suffix) { LogSetNextTextDecorationNative(prefix, (byte*)psuffix); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(byte* prefix, string suffix) { byte* pStr0 = null; int pStrSize0 = 0; if (suffix != null) { pStrSize0 = Utils.GetByteCountUTF8(suffix); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogSetNextTextDecorationNative(prefix, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ref byte prefix, ref byte suffix) { fixed (byte* pprefix = &prefix) { fixed (byte* psuffix = &suffix) { LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); } } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ReadOnlySpan suffix) { fixed (byte* pprefix = prefix) { fixed (byte* psuffix = suffix) { LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); } } } /// /// To be documented. /// public static void LogSetNextTextDecoration(string prefix, string suffix) { byte* pStr0 = null; int pStrSize0 = 0; if (prefix != null) { pStrSize0 = Utils.GetByteCountUTF8(prefix); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; if (suffix != null) { pStrSize1 = Utils.GetByteCountUTF8(suffix); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); } else { byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } int pStrOffset1 = Utils.EncodeStringUTF8(suffix, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } LogSetNextTextDecorationNative(pStr0, pStr1); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ref byte prefix, ReadOnlySpan suffix) { fixed (byte* pprefix = &prefix) { fixed (byte* psuffix = suffix) { LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); } } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ref byte prefix, string suffix) { fixed (byte* pprefix = &prefix) { byte* pStr0 = null; int pStrSize0 = 0; if (suffix != null) { pStrSize0 = Utils.GetByteCountUTF8(suffix); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); } else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } LogSetNextTextDecorationNative((byte*)pprefix, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } } /// /// To be documented. /// public static void LogSetNextTextDecoration(ReadOnlySpan prefix, ref byte suffix) { fixed (byte* pprefix = prefix) { fixed (byte* psuffix = &suffix) { LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); } } } } }