mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
5029 lines
145 KiB
C#
Generated
5029 lines
145 KiB
C#
Generated
// ------------------------------------------------------------------------------
|
|
// <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;
|
|
using Dalamud.Bindings.ImGui;
|
|
|
|
namespace Dalamud.Bindings.ImPlot
|
|
{
|
|
public unsafe partial class ImPlot
|
|
{
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(uint)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(uint)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, uint* values, int count, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotInfLinesNative(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte*, long*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[223])(labelId, values, count, flags, offset, stride);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[223])((nint)labelId, (nint)values, count, flags, offset, stride);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, offset, stride);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(long)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(long)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count, int offset)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, long* values, int count, int offset, int stride)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count, int offset)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, long* values, int count, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(long)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(long)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, long* values, int count, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotInfLinesNative(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte*, ulong*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[224])(labelId, values, count, flags, offset, stride);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[224])((nint)labelId, (nint)values, count, flags, offset, stride);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, offset, stride);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ulong)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong)));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset, int stride)
|
|
{
|
|
PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = &labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong)));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride)
|
|
{
|
|
fixed (byte* plabelId = labelId)
|
|
{
|
|
PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ulong)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ulong)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count, int offset)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong)));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotInfLines(string labelId, ulong* values, int count, int offset, int stride)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelId != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelId);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, float*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[225])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[225])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (float* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, double*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[226])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[226])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
fixed (double* pvalues = &values)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, sbyte*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[227])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[227])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0));
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, byte*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[228])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[228])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
}
|
|
}
|