mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
5034 lines
145 KiB
C#
5034 lines
145 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using HexaGen.Runtime;
|
|
using System.Numerics;
|
|
using Dalamud.Bindings.ImGui;
|
|
|
|
namespace Dalamud.Bindings.ImPlot
|
|
{
|
|
public unsafe partial class ImPlot
|
|
{
|
|
|
|
/// <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[209])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[209])((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, 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[210])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[210])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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 byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (byte*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (byte*)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 byte 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 (byte* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (byte*)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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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, byte* 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 byte values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (byte*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref byte values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* 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, (byte*)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 byte values, int count, double x, double y, double radius, string labelFmt, double angle0)
|
|
{
|
|
fixed (byte* 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, (byte*)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 byte values, int count, double x, double y, double radius, string labelFmt)
|
|
{
|
|
fixed (byte* 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, (byte*)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 byte values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (byte* 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, (byte*)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 byte 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 (byte* 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, (byte*)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 byte 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 (byte* 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, (byte*)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 byte 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 (byte* 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, (byte*)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 byte 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 (byte* 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, (byte*)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, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, short*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[211])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[211])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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 short values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, double angle0)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, double angle0)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(labelIds, (short*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(string[] labelIds, ref short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChartNative(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (short*)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 short 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 (short* pvalues = &values)
|
|
{
|
|
PlotPieChart(pStrArray0, (short*)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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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, short* 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 short values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt, double angle0)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = &labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ref short values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
fixed (short* pvalues = &values)
|
|
{
|
|
fixed (byte* plabelFmt = labelFmt)
|
|
{
|
|
PlotPieChartNative(labelIds, (short*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|