Dalamud/imgui/Dalamud.ImGui/Internals/Functions/Functions.015.cs
2025-04-06 20:59:23 +02:00

5033 lines
140 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 ImGuiP
{
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, Vector2* textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = &text)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = text)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = &text)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown)
{
fixed (ImDrawList* pdrawList = &drawList)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown)
{
RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<Vector2, Vector2, uint, byte, float, void>)funcTable[1178])(pMin, pMax, fillCol, border, rounding);
#else
((delegate* unmanaged[Cdecl]<Vector2, Vector2, uint, byte, float, void>)funcTable[1178])(pMin, pMax, fillCol, border, rounding);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding)
{
RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border)
{
RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f));
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol)
{
RenderFrameNative(pMin, pMax, fillCol, (byte)(1), (float)(0.0f));
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding)
{
RenderFrameNative(pMin, pMax, fillCol, (byte)(1), rounding);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<Vector2, Vector2, float, void>)funcTable[1179])(pMin, pMax, rounding);
#else
((delegate* unmanaged[Cdecl]<Vector2, Vector2, float, void>)funcTable[1179])(pMin, pMax, rounding);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding)
{
RenderFrameBorderNative(pMin, pMax, rounding);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax)
{
RenderFrameBorderNative(pMin, pMax, (float)(0.0f));
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, Vector2, float, ImDrawFlags, void>)funcTable[1180])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, float, Vector2, float, ImDrawFlags, void>)funcTable[1180])((nint)drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags)
{
RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding)
{
RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0));
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff)
{
RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0));
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags)
{
RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderNavHighlightNative(ImRect bb, uint id, ImGuiNavHighlightFlags flags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiNavHighlightFlags, void>)funcTable[1181])(bb, id, flags);
#else
((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiNavHighlightFlags, void>)funcTable[1181])(bb, id, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags)
{
RenderNavHighlightNative(bb, id, flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderNavHighlight(ImRect bb, uint id)
{
RenderNavHighlightNative(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault));
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*>)funcTable[1182])(text, textEnd);
#else
return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[1182])((nint)text, (nint)textEnd);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(byte* text, byte* textEnd)
{
byte* ret = FindRenderedTextEndNative(text, textEnd);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(byte* text)
{
byte* ret = FindRenderedTextEndNative(text, (byte*)(default));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(byte* text)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)(default)));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(byte* text, byte* textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ref byte text, byte* textEnd)
{
fixed (byte* ptext = &text)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ref byte text)
{
fixed (byte* ptext = &text)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ref byte text)
{
fixed (byte* ptext = &text)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default)));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ref byte text, byte* textEnd)
{
fixed (byte* ptext = &text)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, byte* textEnd)
{
fixed (byte* ptext = text)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text)
{
fixed (byte* ptext = text)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ReadOnlySpan<byte> text)
{
fixed (byte* ptext = text)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default)));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, byte* textEnd)
{
fixed (byte* ptext = text)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(string text, byte* textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = FindRenderedTextEndNative(pStr0, textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(string text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = FindRenderedTextEndNative(pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(string text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)(default)));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(string text, byte* textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, textEnd));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(byte* text, ref byte textEnd)
{
fixed (byte* ptextEnd = &textEnd)
{
byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(byte* text, ref byte textEnd)
{
fixed (byte* ptextEnd = &textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(byte* text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptextEnd = textEnd)
{
byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(byte* text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptextEnd = textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(byte* text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = FindRenderedTextEndNative(text, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(byte* text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ref byte text, ref byte textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ref byte text, ref byte textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd));
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd));
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(string text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = FindRenderedTextEndNative(pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(string text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, pStr1));
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ref byte text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ref byte text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd));
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ref byte text, string textEnd)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ref byte text, string textEnd)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, ref byte textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, ref byte textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd));
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, string textEnd)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, string textEnd)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(string text, ref byte textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(string text, ref byte textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static byte* FindRenderedTextEnd(string text, ReadOnlySpan<byte> textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static string FindRenderedTextEndS(string text, ReadOnlySpan<byte> textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderMouseCursorNative(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<Vector2, float, ImGuiMouseCursor, uint, uint, uint, void>)funcTable[1183])(pos, scale, mouseCursor, colFill, colBorder, colShadow);
#else
((delegate* unmanaged[Cdecl]<Vector2, float, ImGuiMouseCursor, uint, uint, uint, void>)funcTable[1183])(pos, scale, mouseCursor, colFill, colBorder, colShadow);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow)
{
RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, ImGuiDir, float, void>)funcTable[1184])(drawList, pos, col, dir, scale);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, uint, ImGuiDir, float, void>)funcTable[1184])((nint)drawList, pos, col, dir, scale);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale)
{
RenderArrowNative(drawList, pos, col, dir, scale);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir)
{
RenderArrowNative(drawList, pos, col, dir, (float)(1.0f));
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, scale);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f));
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, void>)funcTable[1185])(drawList, pos, col);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, uint, void>)funcTable[1185])((nint)drawList, pos, col);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col)
{
RenderBulletNative(drawList, pos, col);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderBulletNative((ImDrawList*)pdrawList, pos, col);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, float, void>)funcTable[1186])(drawList, pos, col, sz);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, uint, float, void>)funcTable[1186])((nint)drawList, pos, col, sz);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz)
{
RenderCheckMarkNative(drawList, pos, col, sz);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderCheckMarkNative((ImDrawList*)pdrawList, pos, col, sz);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, ImGuiDir, uint, void>)funcTable[1187])(drawList, pos, halfSz, direction, col);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, ImGuiDir, uint, void>)funcTable[1187])((nint)drawList, pos, halfSz, direction, col);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col)
{
RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderArrowPointingAtNative((ImDrawList*)pdrawList, pos, halfSz, direction, col);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, void>)funcTable[1188])(drawList, pMin, sz, col);
#else
((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, void>)funcTable[1188])((nint)drawList, pMin, sz, col);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col)
{
RenderArrowDockMenuNative(drawList, pMin, sz, col);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderArrowDockMenuNative((ImDrawList*)pdrawList, pMin, sz, col);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, uint, float, float, float, void>)funcTable[1189])(drawList, rect, col, xStartNorm, xEndNorm, rounding);
#else
((delegate* unmanaged[Cdecl]<nint, ImRect, uint, float, float, float, void>)funcTable[1189])((nint)drawList, rect, col, xStartNorm, xEndNorm, rounding);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding)
{
RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderRectFilledRangeHNative((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImRect, uint, float, void>)funcTable[1190])(drawList, outer, inner, col, rounding);
#else
((delegate* unmanaged[Cdecl]<nint, ImRect, ImRect, uint, float, void>)funcTable[1190])((nint)drawList, outer, inner, col, rounding);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding)
{
RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding);
}
/// <summary>
/// To be documented.
/// </summary>
public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding)
{
fixed (ImDrawList* pdrawList = &drawList)
{
RenderRectFilledWithHoleNative((ImDrawList*)pdrawList, outer, inner, col, rounding);
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static ImDrawFlags CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, ImRect, float, ImDrawFlags>)funcTable[1191])(rIn, rOuter, threshold);
#else
return (ImDrawFlags)((delegate* unmanaged[Cdecl]<ImRect, ImRect, float, ImDrawFlags>)funcTable[1191])(rIn, rOuter, threshold);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold)
{
ImDrawFlags ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiTextFlags, void>)funcTable[1192])(text, textEnd, flags);
#else
((delegate* unmanaged[Cdecl]<nint, nint, ImGuiTextFlags, void>)funcTable[1192])((nint)text, (nint)textEnd, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags)
{
TextExNative(text, textEnd, flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, byte* textEnd)
{
TextExNative(text, textEnd, (ImGuiTextFlags)(0));
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text)
{
TextExNative(text, (byte*)(default), (ImGuiTextFlags)(0));
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, ImGuiTextFlags flags)
{
TextExNative(text, (byte*)(default), flags);
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, byte* textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = &text)
{
TextExNative((byte*)ptext, textEnd, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, byte* textEnd)
{
fixed (byte* ptext = &text)
{
TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text)
{
fixed (byte* ptext = &text)
{
TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, ImGuiTextFlags flags)
{
fixed (byte* ptext = &text)
{
TextExNative((byte*)ptext, (byte*)(default), flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, byte* textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = text)
{
TextExNative((byte*)ptext, textEnd, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, byte* textEnd)
{
fixed (byte* ptext = text)
{
TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text)
{
fixed (byte* ptext = text)
{
TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, ImGuiTextFlags flags)
{
fixed (byte* ptext = text)
{
TextExNative((byte*)ptext, (byte*)(default), flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, byte* textEnd, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(pStr0, textEnd, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, byte* textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(pStr0, textEnd, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(pStr0, (byte*)(default), (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(pStr0, (byte*)(default), flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, ref byte textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative(text, (byte*)ptextEnd, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, ref byte textEnd)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative(text, (byte*)ptextEnd, flags);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, string textEnd, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(text, pStr0, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(byte* text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative(text, pStr0, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, ref byte textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, flags);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, ref byte textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, flags);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, string textEnd, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
TextExNative(pStr0, pStr1, flags);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, string textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (textEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc<byte>(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
TextExNative(pStr0, pStr1, (ImGuiTextFlags)(0));
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, flags);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, ReadOnlySpan<byte> textEnd)
{
fixed (byte* ptext = &text)
{
fixed (byte* ptextEnd = textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, string textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative((byte*)ptext, pStr0, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ref byte text, string textEnd)
{
fixed (byte* ptext = &text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, ref byte textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, flags);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, ref byte textEnd)
{
fixed (byte* ptext = text)
{
fixed (byte* ptextEnd = &textEnd)
{
TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0));
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, string textEnd, ImGuiTextFlags flags)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative((byte*)ptext, pStr0, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(ReadOnlySpan<byte> text, string textEnd)
{
fixed (byte* ptext = text)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (textEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(textEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, ref byte textEnd, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
TextExNative(pStr0, (byte*)ptextEnd, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, ref byte textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = &textEnd)
{
TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
TextExNative(pStr0, (byte*)ptextEnd, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void TextEx(string text, ReadOnlySpan<byte> textEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (text != null)
{
pStrSize0 = Utils.GetByteCountUTF8(text);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* ptextEnd = textEnd)
{
TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiButtonFlags, byte>)funcTable[1193])(label, sizeArg, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiButtonFlags, byte>)funcTable[1193])((nint)label, sizeArg, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags)
{
byte ret = ButtonExNative(label, sizeArg, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(byte* label, Vector2 sizeArg)
{
byte ret = ButtonExNative(label, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(byte* label)
{
byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(byte* label, ImGuiButtonFlags flags)
{
byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ref byte label, Vector2 sizeArg, ImGuiButtonFlags flags)
{
fixed (byte* plabel = &label)
{
byte ret = ButtonExNative((byte*)plabel, sizeArg, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ref byte label, Vector2 sizeArg)
{
fixed (byte* plabel = &label)
{
byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ref byte label)
{
fixed (byte* plabel = &label)
{
byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ref byte label, ImGuiButtonFlags flags)
{
fixed (byte* plabel = &label)
{
byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ReadOnlySpan<byte> label, Vector2 sizeArg, ImGuiButtonFlags flags)
{
fixed (byte* plabel = label)
{
byte ret = ButtonExNative((byte*)plabel, sizeArg, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ReadOnlySpan<byte> label, Vector2 sizeArg)
{
fixed (byte* plabel = label)
{
byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ReadOnlySpan<byte> label)
{
fixed (byte* plabel = label)
{
byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(ReadOnlySpan<byte> label, ImGuiButtonFlags flags)
{
fixed (byte* plabel = label)
{
byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(string label, Vector2 sizeArg, ImGuiButtonFlags flags)
{
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 = ButtonExNative(pStr0, sizeArg, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(string label, Vector2 sizeArg)
{
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 = ButtonExNative(pStr0, sizeArg, (ImGuiButtonFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(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 = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonEx(string label, ImGuiButtonFlags flags)
{
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 = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte CloseButtonNative(uint id, Vector2 pos)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, Vector2, byte>)funcTable[1194])(id, pos);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, byte>)funcTable[1194])(id, pos);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CloseButton(uint id, Vector2 pos)
{
byte ret = CloseButtonNative(id, pos);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte CollapseButtonNative(uint id, Vector2 pos, ImGuiDockNode* dockNode)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNode*, byte>)funcTable[1195])(id, pos, dockNode);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, nint, byte>)funcTable[1195])(id, pos, (nint)dockNode);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CollapseButton(uint id, Vector2 pos, ImGuiDockNodePtr dockNode)
{
byte ret = CollapseButtonNative(id, pos, dockNode);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CollapseButton(uint id, Vector2 pos, ref ImGuiDockNode dockNode)
{
fixed (ImGuiDockNode* pdockNode = &dockNode)
{
byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte ArrowButtonExNative(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDir, Vector2, ImGuiButtonFlags, byte>)funcTable[1196])(strId, dir, sizeArg, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDir, Vector2, ImGuiButtonFlags, byte>)funcTable[1196])((nint)strId, dir, sizeArg, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags)
{
byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg)
{
byte ret = ArrowButtonExNative(strId, dir, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags)
{
fixed (byte* pstrId = &strId)
{
byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg)
{
fixed (byte* pstrId = &strId)
{
byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(ReadOnlySpan<byte> strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags)
{
fixed (byte* pstrId = strId)
{
byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(ReadOnlySpan<byte> strId, ImGuiDir dir, Vector2 sizeArg)
{
fixed (byte* pstrId = strId)
{
byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags 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 = ArrowButtonExNative(pStr0, dir, sizeArg, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg)
{
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 = ArrowButtonExNative(pStr0, dir, sizeArg, (ImGuiButtonFlags)(0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void ScrollbarNative(ImGuiAxis axis)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiAxis, void>)funcTable[1197])(axis);
#else
((delegate* unmanaged[Cdecl]<ImGuiAxis, void>)funcTable[1197])(axis);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void Scrollbar(ImGuiAxis axis)
{
ScrollbarNative(axis);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte ScrollbarExNative(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, long*, long, long, ImDrawFlags, byte>)funcTable[1198])(bb, id, axis, pScrollV, availV, contentsV, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, nint, long, long, ImDrawFlags, byte>)funcTable[1198])(bb, id, axis, (nint)pScrollV, availV, contentsV, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags)
{
byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, ref long pScrollV, long availV, long contentsV, ImDrawFlags flags)
{
fixed (long* ppScrollV = &pScrollV)
{
byte ret = ScrollbarExNative(bb, id, axis, (long*)ppScrollV, availV, contentsV, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte ImageButtonExNative(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector4, Vector4, byte>)funcTable[1199])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector4, Vector4, byte>)funcTable[1199])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol)
{
byte ret = ImageButtonExNative(id, textureId, size, uv0, uv1, padding, bgCol, tintCol);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void GetWindowScrollbarRectNative(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImGuiAxis, void>)funcTable[1200])(pOut, window, axis);
#else
((delegate* unmanaged[Cdecl]<nint, nint, ImGuiAxis, void>)funcTable[1200])((nint)pOut, (nint)window, axis);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static ImRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis)
{
ImRect ret;
GetWindowScrollbarRectNative(&ret, window, axis);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetWindowScrollbarRect(ImRectPtr pOut, ImGuiWindowPtr window, ImGuiAxis axis)
{
GetWindowScrollbarRectNative(pOut, window, axis);
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetWindowScrollbarRect(ref ImRect pOut, ImGuiWindowPtr window, ImGuiAxis axis)
{
fixed (ImRect* ppOut = &pOut)
{
GetWindowScrollbarRectNative((ImRect*)ppOut, window, axis);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static ImRect GetWindowScrollbarRect(ref ImGuiWindow window, ImGuiAxis axis)
{
fixed (ImGuiWindow* pwindow = &window)
{
ImRect ret;
GetWindowScrollbarRectNative(&ret, (ImGuiWindow*)pwindow, axis);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetWindowScrollbarRect(ImRectPtr pOut, ref ImGuiWindow window, ImGuiAxis axis)
{
fixed (ImGuiWindow* pwindow = &window)
{
GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis);
}
}
/// <summary>
/// To be documented.
/// </summary>
public static void GetWindowScrollbarRect(ref ImRect pOut, ref ImGuiWindow window, ImGuiAxis axis)
{
fixed (ImRect* ppOut = &pOut)
{
fixed (ImGuiWindow* pwindow = &window)
{
GetWindowScrollbarRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetWindowScrollbarIDNative(ImGuiWindow* window, ImGuiAxis axis)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiAxis, uint>)funcTable[1201])(window, axis);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, ImGuiAxis, uint>)funcTable[1201])((nint)window, axis);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis)
{
uint ret = GetWindowScrollbarIDNative(window, axis);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowScrollbarID(ref ImGuiWindow window, ImGuiAxis axis)
{
fixed (ImGuiWindow* pwindow = &window)
{
uint ret = GetWindowScrollbarIDNative((ImGuiWindow*)pwindow, axis);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetWindowResizeCornerIDNative(ImGuiWindow* window, int n)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int, uint>)funcTable[1202])(window, n);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[1202])((nint)window, n);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowResizeCornerID(ImGuiWindowPtr window, int n)
{
uint ret = GetWindowResizeCornerIDNative(window, n);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowResizeCornerID(ref ImGuiWindow window, int n)
{
fixed (ImGuiWindow* pwindow = &window)
{
uint ret = GetWindowResizeCornerIDNative((ImGuiWindow*)pwindow, n);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static uint GetWindowResizeBorderIDNative(ImGuiWindow* window, ImGuiDir dir)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDir, uint>)funcTable[1203])(window, dir);
#else
return (uint)((delegate* unmanaged[Cdecl]<nint, ImGuiDir, uint>)funcTable[1203])((nint)window, dir);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir)
{
uint ret = GetWindowResizeBorderIDNative(window, dir);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public static uint GetWindowResizeBorderID(ref ImGuiWindow window, ImGuiDir dir)
{
fixed (ImGuiWindow* pwindow = &window)
{
uint ret = GetWindowResizeBorderIDNative((ImGuiWindow*)pwindow, dir);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static void SeparatorExNative(ImGuiSeparatorFlags flags)
{
#if NET5_0_OR_GREATER
((delegate* unmanaged[Cdecl]<ImGuiSeparatorFlags, void>)funcTable[1204])(flags);
#else
((delegate* unmanaged[Cdecl]<ImGuiSeparatorFlags, void>)funcTable[1204])(flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static void SeparatorEx(ImGuiSeparatorFlags flags)
{
SeparatorExNative(flags);
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte CheckboxFlagsNative(byte* label, long* flags, long flagsValue)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, long*, long, byte>)funcTable[1205])(label, flags, flagsValue);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, long, byte>)funcTable[1205])((nint)label, (nint)flags, flagsValue);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(byte* label, long* flags, long flagsValue)
{
byte ret = CheckboxFlagsNative(label, flags, flagsValue);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ref byte label, long* flags, long flagsValue)
{
fixed (byte* plabel = &label)
{
byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ReadOnlySpan<byte> label, long* flags, long flagsValue)
{
fixed (byte* plabel = label)
{
byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(string label, long* flags, long flagsValue)
{
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 = CheckboxFlagsNative(pStr0, flags, flagsValue);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(byte* label, ref long flags, long flagsValue)
{
fixed (long* pflags = &flags)
{
byte ret = CheckboxFlagsNative(label, (long*)pflags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ref byte label, ref long flags, long flagsValue)
{
fixed (byte* plabel = &label)
{
fixed (long* pflags = &flags)
{
byte ret = CheckboxFlagsNative((byte*)plabel, (long*)pflags, flagsValue);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ReadOnlySpan<byte> label, ref long flags, long flagsValue)
{
fixed (byte* plabel = label)
{
fixed (long* pflags = &flags)
{
byte ret = CheckboxFlagsNative((byte*)plabel, (long*)pflags, flagsValue);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(string label, ref long flags, long flagsValue)
{
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;
}
fixed (long* pflags = &flags)
{
byte ret = CheckboxFlagsNative(pStr0, (long*)pflags, flagsValue);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte CheckboxFlagsNative(byte* label, ulong* flags, ulong flagsValue)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong, byte>)funcTable[1206])(label, flags, flagsValue);
#else
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ulong, byte>)funcTable[1206])((nint)label, (nint)flags, flagsValue);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(byte* label, ulong* flags, ulong flagsValue)
{
byte ret = CheckboxFlagsNative(label, flags, flagsValue);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ref byte label, ulong* flags, ulong flagsValue)
{
fixed (byte* plabel = &label)
{
byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ReadOnlySpan<byte> label, ulong* flags, ulong flagsValue)
{
fixed (byte* plabel = label)
{
byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(string label, ulong* flags, ulong flagsValue)
{
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 = CheckboxFlagsNative(pStr0, flags, flagsValue);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(byte* label, ref ulong flags, ulong flagsValue)
{
fixed (ulong* pflags = &flags)
{
byte ret = CheckboxFlagsNative(label, (ulong*)pflags, flagsValue);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ref byte label, ref ulong flags, ulong flagsValue)
{
fixed (byte* plabel = &label)
{
fixed (ulong* pflags = &flags)
{
byte ret = CheckboxFlagsNative((byte*)plabel, (ulong*)pflags, flagsValue);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(ReadOnlySpan<byte> label, ref ulong flags, ulong flagsValue)
{
fixed (byte* plabel = label)
{
fixed (ulong* pflags = &flags)
{
byte ret = CheckboxFlagsNative((byte*)plabel, (ulong*)pflags, flagsValue);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool CheckboxFlags(string label, ref ulong flags, ulong flagsValue)
{
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;
}
fixed (ulong* pflags = &flags)
{
byte ret = CheckboxFlagsNative(pStr0, (ulong*)pflags, flagsValue);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte ButtonBehaviorNative(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, uint, bool*, bool*, ImGuiButtonFlags, byte>)funcTable[1207])(bb, id, outHovered, outHeld, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, nint, nint, ImGuiButtonFlags, byte>)funcTable[1207])(bb, id, (nint)outHovered, (nint)outHeld, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags)
{
byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld)
{
byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld, ImGuiButtonFlags flags)
{
fixed (bool* poutHovered = &outHovered)
{
byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld)
{
fixed (bool* poutHovered = &outHovered)
{
byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld, ImGuiButtonFlags flags)
{
fixed (bool* poutHeld = &outHeld)
{
byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld)
{
fixed (bool* poutHeld = &outHeld)
{
byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld, ImGuiButtonFlags flags)
{
fixed (bool* poutHovered = &outHovered)
{
fixed (bool* poutHeld = &outHeld)
{
byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, flags);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld)
{
fixed (bool* poutHovered = &outHovered)
{
fixed (bool* poutHeld = &outHeld)
{
byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0));
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte DragBehaviorNative(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, void*, float, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[1208])(id, dataType, pV, vSpeed, pMin, pMax, format, flags);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, nint, float, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[1208])(id, dataType, (nint)pV, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags)
{
byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags)
{
fixed (byte* pformat = &format)
{
byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags)
{
fixed (byte* pformat = format)
{
byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (format != null)
{
pStrSize0 = Utils.GetByteCountUTF8(format);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte SliderBehaviorNative(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, ImRect*, byte>)funcTable[1209])(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiDataType, nint, nint, nint, nint, ImGuiSliderFlags, nint, byte>)funcTable[1209])(bb, id, dataType, (nint)pV, (nint)pMin, (nint)pMax, (nint)format, flags, (nint)outGrabBb);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRectPtr outGrabBb)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ImRectPtr outGrabBb)
{
fixed (byte* pformat = &format)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags, ImRectPtr outGrabBb)
{
fixed (byte* pformat = format)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ImRectPtr outGrabBb)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (format != null)
{
pStrSize0 = Utils.GetByteCountUTF8(format);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ref ImRect outGrabBb)
{
fixed (ImRect* poutGrabBb = &outGrabBb)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ref ImRect outGrabBb)
{
fixed (byte* pformat = &format)
{
fixed (ImRect* poutGrabBb = &outGrabBb)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags, ref ImRect outGrabBb)
{
fixed (byte* pformat = format)
{
fixed (ImRect* poutGrabBb = &outGrabBb)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ref ImRect outGrabBb)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (format != null)
{
pStrSize0 = Utils.GetByteCountUTF8(format);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (ImRect* poutGrabBb = &outGrabBb)
{
byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte SplitterBehaviorNative(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, float*, float*, float, float, float, float, uint, byte>)funcTable[1210])(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
#else
return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, nint, nint, float, float, float, float, uint, byte>)funcTable[1210])(bb, id, axis, (nint)size1, (nint)size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, uint bgCol)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, uint bgCol)
{
fixed (float* psize1 = &size1)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, uint bgCol)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0));
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0));
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0));
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, uint bgCol)
{
fixed (float* psize1 = &size1)
{
fixed (float* psize2 = &size2)
{
byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static byte TreeNodeBehaviorNative(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd)
{
#if NET5_0_OR_GREATER
return ((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte*, byte*, byte>)funcTable[1211])(id, flags, label, labelEnd);
#else
return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, nint, nint, byte>)funcTable[1211])(id, flags, (nint)label, (nint)labelEnd);
#endif
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd)
{
byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label)
{
byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)(default));
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, byte* labelEnd)
{
fixed (byte* plabel = &label)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label)
{
fixed (byte* plabel = &label)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, byte* labelEnd)
{
fixed (byte* plabel = label)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label)
{
fixed (byte* plabel = label)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default));
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, byte* labelEnd)
{
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 = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, 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 = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)(default));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ref byte labelEnd)
{
fixed (byte* plabelEnd = &labelEnd)
{
byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ReadOnlySpan<byte> labelEnd)
{
fixed (byte* plabelEnd = labelEnd)
{
byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, string labelEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (labelEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(labelEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte ret = TreeNodeBehaviorNative(id, flags, label, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, ref byte labelEnd)
{
fixed (byte* plabel = &label)
{
fixed (byte* plabelEnd = &labelEnd)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd);
return ret != 0;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, ReadOnlySpan<byte> labelEnd)
{
fixed (byte* plabel = label)
{
fixed (byte* plabelEnd = labelEnd)
{
byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd);
return ret != 0;
}
}
}
}
}