mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
5029 lines
148 KiB
C#
5029 lines
148 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(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, 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>
|
|
[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[229])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[229])((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, 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>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, ushort*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[230])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[230])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* 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, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, int*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[231])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[231])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* 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, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, uint*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[232])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[232])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* 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, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, long*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[233])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[233])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* 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, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags)
|
|
{
|
|
byte** pStrArray0 = null;
|
|
int pStrArray0Size = Utils.GetByteCountArray(labelIds);
|
|
if (labelIds != null)
|
|
{
|
|
if (pStrArray0Size > Utils.MaxStackallocSize)
|
|
{
|
|
pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrArray0Stack = stackalloc byte[pStrArray0Size];
|
|
pStrArray0 = (byte**)pStrArray0Stack;
|
|
}
|
|
}
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]);
|
|
}
|
|
byte* pStr0 = null;
|
|
int pStrSize0 = 0;
|
|
if (labelFmt != null)
|
|
{
|
|
pStrSize0 = Utils.GetByteCountUTF8(labelFmt);
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
|
|
}
|
|
else
|
|
{
|
|
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
|
|
pStr0 = pStrStack0;
|
|
}
|
|
int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0);
|
|
pStr0[pStrOffset0] = 0;
|
|
}
|
|
PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags);
|
|
for (int i = 0; i < labelIds.Length; i++)
|
|
{
|
|
Utils.Free(pStrArray0[i]);
|
|
}
|
|
if (pStrArray0Size >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStrArray0);
|
|
}
|
|
if (pStrSize0 >= Utils.MaxStackallocSize)
|
|
{
|
|
Utils.Free(pStr0);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
internal static void PlotPieChartNative(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags)
|
|
{
|
|
#if NET5_0_OR_GREATER
|
|
((delegate* unmanaged[Cdecl]<byte**, ulong*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[234])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags);
|
|
#else
|
|
((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[234])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags);
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
public static void PlotPieChart(byte** labelIds, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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, ulong* 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));
|
|
}
|
|
}
|
|
}
|
|
}
|