Dalamud/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs
2025-04-07 21:49:03 +02:00

5023 lines
117 KiB
C#

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