Add generated files for now

This commit is contained in:
goaaats 2025-04-06 20:59:55 +02:00
parent 0690cce995
commit 1bce618684
502 changed files with 1276906 additions and 1 deletions

View file

@ -0,0 +1,60 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct FormatterTimeData
{
/// <summary>
/// To be documented.
/// </summary>
public ImPlotTime Time;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotDateTimeSpec Spec;
/// <summary>
/// To be documented.
/// </summary>
public unsafe void* UserFormatter;
/// <summary>
/// To be documented.
/// </summary>
public unsafe void* UserFormatterData;
/// <summary>
/// To be documented.
/// </summary>
public unsafe FormatterTimeData(ImPlotTime time = default, ImPlotDateTimeSpec spec = default, ImPlotFormatter userFormatter = default, void* userFormatterData = default)
{
Time = time;
Spec = spec;
UserFormatter = (void*)Marshal.GetFunctionPointerForDelegate(userFormatter);
UserFormatterData = userFormatterData;
}
}
}

View file

@ -0,0 +1,702 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotAlignmentData
{
/// <summary>
/// To be documented.
/// </summary>
public byte Vertical;
/// <summary>
/// To be documented.
/// </summary>
public float PadA;
/// <summary>
/// To be documented.
/// </summary>
public float PadB;
/// <summary>
/// To be documented.
/// </summary>
public float PadAMax;
/// <summary>
/// To be documented.
/// </summary>
public float PadBMax;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotAlignmentData(bool vertical = default, float padA = default, float padB = default, float padAMax = default, float padBMax = default)
{
Vertical = vertical ? (byte)1 : (byte)0;
PadA = padA;
PadB = padB;
PadAMax = padAMax;
PadBMax = padBMax;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Begin()
{
fixed (ImPlotAlignmentData* @this = &this)
{
ImPlot.BeginNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotAlignmentData* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void End()
{
fixed (ImPlotAlignmentData* @this = &this)
{
ImPlot.EndNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotAlignmentData* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
ImPlot.UpdateNative(@this, padA, padB, deltaA, deltaB);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadB = &padB)
{
ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, deltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, deltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, deltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, padA, padB, deltaA, (float*)pdeltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, ref float deltaA, ref float deltaB)
{
fixed (ImPlotAlignmentData* @this = &this)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotAlignmentDataPtr : IEquatable<ImPlotAlignmentDataPtr>
{
public ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) { Handle = handle; }
public ImPlotAlignmentData* Handle;
public bool IsNull => Handle == null;
public static ImPlotAlignmentDataPtr Null => new ImPlotAlignmentDataPtr(null);
public ImPlotAlignmentData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) => new ImPlotAlignmentDataPtr(handle);
public static implicit operator ImPlotAlignmentData*(ImPlotAlignmentDataPtr handle) => handle.Handle;
public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle == right;
public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle != right;
public bool Equals(ImPlotAlignmentDataPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotAlignmentDataPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotAlignmentDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref bool Vertical => ref Unsafe.AsRef<bool>(&Handle->Vertical);
/// <summary>
/// To be documented.
/// </summary>
public ref float PadA => ref Unsafe.AsRef<float>(&Handle->PadA);
/// <summary>
/// To be documented.
/// </summary>
public ref float PadB => ref Unsafe.AsRef<float>(&Handle->PadB);
/// <summary>
/// To be documented.
/// </summary>
public ref float PadAMax => ref Unsafe.AsRef<float>(&Handle->PadAMax);
/// <summary>
/// To be documented.
/// </summary>
public ref float PadBMax => ref Unsafe.AsRef<float>(&Handle->PadBMax);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Begin()
{
ImPlot.BeginNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void End()
{
ImPlot.EndNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB)
{
ImPlot.UpdateNative(Handle, padA, padB, deltaA, deltaB);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB)
{
fixed (float* ppadA = &padA)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, deltaB);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB)
{
fixed (float* ppadB = &padB)
{
ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, deltaB);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, deltaB);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, deltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, padA, padB, deltaA, (float*)pdeltaB);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, (float*)pdeltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, (float*)pdeltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Update(ref float padA, ref float padB, ref float deltaA, ref float deltaB)
{
fixed (float* ppadA = &padA)
{
fixed (float* ppadB = &padB)
{
fixed (float* pdeltaA = &deltaA)
{
fixed (float* pdeltaB = &deltaB)
{
ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB);
}
}
}
}
}
}
}

View file

@ -0,0 +1,140 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotAnnotation
{
/// <summary>
/// To be documented.
/// </summary>
public Vector2 Pos;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 Offset;
/// <summary>
/// To be documented.
/// </summary>
public uint ColorBg;
/// <summary>
/// To be documented.
/// </summary>
public uint ColorFg;
/// <summary>
/// To be documented.
/// </summary>
public int TextOffset;
/// <summary>
/// To be documented.
/// </summary>
public byte Clamp;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotAnnotation(Vector2 pos = default, Vector2 offset = default, uint colorBg = default, uint colorFg = default, int textOffset = default, bool clamp = default)
{
Pos = pos;
Offset = offset;
ColorBg = colorBg;
ColorFg = colorFg;
TextOffset = textOffset;
Clamp = clamp ? (byte)1 : (byte)0;
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotAnnotationPtr : IEquatable<ImPlotAnnotationPtr>
{
public ImPlotAnnotationPtr(ImPlotAnnotation* handle) { Handle = handle; }
public ImPlotAnnotation* Handle;
public bool IsNull => Handle == null;
public static ImPlotAnnotationPtr Null => new ImPlotAnnotationPtr(null);
public ImPlotAnnotation this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotAnnotationPtr(ImPlotAnnotation* handle) => new ImPlotAnnotationPtr(handle);
public static implicit operator ImPlotAnnotation*(ImPlotAnnotationPtr handle) => handle.Handle;
public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle == right;
public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle != right;
public bool Equals(ImPlotAnnotationPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotAnnotationPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotAnnotationPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 Offset => ref Unsafe.AsRef<Vector2>(&Handle->Offset);
/// <summary>
/// To be documented.
/// </summary>
public ref uint ColorBg => ref Unsafe.AsRef<uint>(&Handle->ColorBg);
/// <summary>
/// To be documented.
/// </summary>
public ref uint ColorFg => ref Unsafe.AsRef<uint>(&Handle->ColorFg);
/// <summary>
/// To be documented.
/// </summary>
public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Clamp => ref Unsafe.AsRef<bool>(&Handle->Clamp);
}
}

View file

@ -0,0 +1,450 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotAnnotationCollection
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotAnnotation> Annotations;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer TextBuffer;
/// <summary>
/// To be documented.
/// </summary>
public int Size;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotAnnotationCollection(ImVector<ImPlotAnnotation> annotations = default, ImGuiTextBuffer textBuffer = default, int size = default)
{
Annotations = annotations;
TextBuffer = textBuffer;
Size = size;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
byte* ret = ImPlot.GetTextNative(@this, idx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotAnnotationCollection* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotAnnotationCollectionPtr : IEquatable<ImPlotAnnotationCollectionPtr>
{
public ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) { Handle = handle; }
public ImPlotAnnotationCollection* Handle;
public bool IsNull => Handle == null;
public static ImPlotAnnotationCollectionPtr Null => new ImPlotAnnotationCollectionPtr(null);
public ImPlotAnnotationCollection this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) => new ImPlotAnnotationCollectionPtr(handle);
public static implicit operator ImPlotAnnotationCollection*(ImPlotAnnotationCollectionPtr handle) => handle.Handle;
public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle == right;
public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle != right;
public bool Equals(ImPlotAnnotationCollectionPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotAnnotationCollectionPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotAnnotationCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotAnnotation> Annotations => ref Unsafe.AsRef<ImVector<ImPlotAnnotation>>(&Handle->Annotations);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer);
/// <summary>
/// To be documented.
/// </summary>
public ref int Size => ref Unsafe.AsRef<int>(&Handle->Size);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt)
{
ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args)
{
ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
byte* ret = ImPlot.GetTextNative(Handle, idx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,30 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotAxisColor
{
}
}

View file

@ -0,0 +1,914 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotColormapData
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<uint> Keys;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> KeyCounts;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> KeyOffsets;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<uint> Tables;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> TableSizes;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> TableOffsets;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer Text;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> TextOffsets;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> Quals;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiStorage Map;
/// <summary>
/// To be documented.
/// </summary>
public int Count;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormapData(ImVector<uint> keys = default, ImVector<int> keyCounts = default, ImVector<int> keyOffsets = default, ImVector<uint> tables = default, ImVector<int> tableSizes = default, ImVector<int> tableOffsets = default, ImGuiTextBuffer text = default, ImVector<int> textOffsets = default, ImVector<int> quals = default, ImGuiStorage map = default, int count = default)
{
Keys = keys;
KeyCounts = keyCounts;
KeyOffsets = keyOffsets;
Tables = tables;
TableSizes = tableSizes;
TableOffsets = tableOffsets;
Text = text;
TextOffsets = textOffsets;
Quals = quals;
Map = map;
Count = count;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void _AppendTable(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
ImPlot._AppendTableNative(@this, cmap);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(byte* name, uint* keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
int ret = ImPlot.AppendNative(@this, name, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ref byte name, uint* keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = &name)
{
int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ReadOnlySpan<byte> name, uint* keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = name)
{
int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(string name, uint* keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImPlot.AppendNative(@this, pStr0, keys, count, qual ? (byte)1 : (byte)0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(byte* name, ref uint keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(@this, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ref byte name, ref uint keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = &name)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(@this, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ReadOnlySpan<byte> name, ref uint keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = name)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(@this, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(string name, ref uint keys, int count, bool qual)
{
fixed (ImPlotColormapData* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(@this, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotColormapData* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(byte* name)
{
fixed (ImPlotColormapData* @this = &this)
{
ImPlotColormap ret = ImPlot.GetIndexNative(@this, name);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(ref byte name)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = &name)
{
ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(ReadOnlySpan<byte> name)
{
fixed (ImPlotColormapData* @this = &this)
{
fixed (byte* pname = name)
{
ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(string name)
{
fixed (ImPlotColormapData* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotColormap ret = ImPlot.GetIndexNative(@this, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx)
{
fixed (ImPlotColormapData* @this = &this)
{
uint ret = ImPlot.GetKeyColorNative(@this, cmap, idx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetKeyCount(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
int ret = ImPlot.GetKeyCountNative(@this, cmap);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint* GetKeys(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
uint* ret = ImPlot.GetKeysNative(@this, cmap);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetName(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
byte* ret = ImPlot.GetNameNative(@this, cmap);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetNameS(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(@this, cmap));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint* GetTable(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
uint* ret = ImPlot.GetTableNative(@this, cmap);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetTableColor(ImPlotColormap cmap, int idx)
{
fixed (ImPlotColormapData* @this = &this)
{
uint ret = ImPlot.GetTableColorNative(@this, cmap, idx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetTableSize(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
int ret = ImPlot.GetTableSizeNative(@this, cmap);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool IsQual(ImPlotColormap cmap)
{
fixed (ImPlotColormapData* @this = &this)
{
byte ret = ImPlot.IsQualNative(@this, cmap);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint LerpTable(ImPlotColormap cmap, float t)
{
fixed (ImPlotColormapData* @this = &this)
{
uint ret = ImPlot.LerpTableNative(@this, cmap, t);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void RebuildTables()
{
fixed (ImPlotColormapData* @this = &this)
{
ImPlot.RebuildTablesNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value)
{
fixed (ImPlotColormapData* @this = &this)
{
ImPlot.SetKeyColorNative(@this, cmap, idx, value);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotColormapDataPtr : IEquatable<ImPlotColormapDataPtr>
{
public ImPlotColormapDataPtr(ImPlotColormapData* handle) { Handle = handle; }
public ImPlotColormapData* Handle;
public bool IsNull => Handle == null;
public static ImPlotColormapDataPtr Null => new ImPlotColormapDataPtr(null);
public ImPlotColormapData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotColormapDataPtr(ImPlotColormapData* handle) => new ImPlotColormapDataPtr(handle);
public static implicit operator ImPlotColormapData*(ImPlotColormapDataPtr handle) => handle.Handle;
public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle == right;
public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle != right;
public bool Equals(ImPlotColormapDataPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotColormapDataPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotColormapDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<uint> Keys => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Keys);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> KeyCounts => ref Unsafe.AsRef<ImVector<int>>(&Handle->KeyCounts);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> KeyOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->KeyOffsets);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<uint> Tables => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Tables);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> TableSizes => ref Unsafe.AsRef<ImVector<int>>(&Handle->TableSizes);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> TableOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->TableOffsets);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer Text => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->Text);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> TextOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->TextOffsets);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> Quals => ref Unsafe.AsRef<ImVector<int>>(&Handle->Quals);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiStorage Map => ref Unsafe.AsRef<ImGuiStorage>(&Handle->Map);
/// <summary>
/// To be documented.
/// </summary>
public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void _AppendTable(ImPlotColormap cmap)
{
ImPlot._AppendTableNative(Handle, cmap);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(byte* name, uint* keys, int count, bool qual)
{
int ret = ImPlot.AppendNative(Handle, name, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ref byte name, uint* keys, int count, bool qual)
{
fixed (byte* pname = &name)
{
int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ReadOnlySpan<byte> name, uint* keys, int count, bool qual)
{
fixed (byte* pname = name)
{
int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(string name, uint* keys, int count, bool qual)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImPlot.AppendNative(Handle, pStr0, keys, count, qual ? (byte)1 : (byte)0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(byte* name, ref uint keys, int count, bool qual)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(Handle, name, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ref byte name, ref uint keys, int count, bool qual)
{
fixed (byte* pname = &name)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(Handle, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(ReadOnlySpan<byte> name, ref uint keys, int count, bool qual)
{
fixed (byte* pname = name)
{
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(Handle, (byte*)pname, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int Append(string name, ref uint keys, int count, bool qual)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (uint* pkeys = &keys)
{
int ret = ImPlot.AppendNative(Handle, pStr0, (uint*)pkeys, count, qual ? (byte)1 : (byte)0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(byte* name)
{
ImPlotColormap ret = ImPlot.GetIndexNative(Handle, name);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(ref byte name)
{
fixed (byte* pname = &name)
{
ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(ReadOnlySpan<byte> name)
{
fixed (byte* pname = name)
{
ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotColormap GetIndex(string name)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (name != null)
{
pStrSize0 = Utils.GetByteCountUTF8(name);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotColormap ret = ImPlot.GetIndexNative(Handle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx)
{
uint ret = ImPlot.GetKeyColorNative(Handle, cmap, idx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetKeyCount(ImPlotColormap cmap)
{
int ret = ImPlot.GetKeyCountNative(Handle, cmap);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint* GetKeys(ImPlotColormap cmap)
{
uint* ret = ImPlot.GetKeysNative(Handle, cmap);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetName(ImPlotColormap cmap)
{
byte* ret = ImPlot.GetNameNative(Handle, cmap);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetNameS(ImPlotColormap cmap)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(Handle, cmap));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint* GetTable(ImPlotColormap cmap)
{
uint* ret = ImPlot.GetTableNative(Handle, cmap);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetTableColor(ImPlotColormap cmap, int idx)
{
uint ret = ImPlot.GetTableColorNative(Handle, cmap, idx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetTableSize(ImPlotColormap cmap)
{
int ret = ImPlot.GetTableSizeNative(Handle, cmap);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool IsQual(ImPlotColormap cmap)
{
byte ret = ImPlot.IsQualNative(Handle, cmap);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint LerpTable(ImPlotColormap cmap, float t)
{
uint ret = ImPlot.LerpTableNative(Handle, cmap, t);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void RebuildTables()
{
ImPlot.RebuildTablesNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value)
{
ImPlot.SetKeyColorNative(Handle, cmap, idx, value);
}
}
}

View file

@ -0,0 +1,380 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotContext
{
/// <summary>
/// To be documented.
/// </summary>
public ImPoolImPlotPlot Plots;
/// <summary>
/// To be documented.
/// </summary>
public ImPoolImPlotSubplot Subplots;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotPlot* CurrentPlot;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotSubplot* CurrentSubplot;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItemGroup* CurrentItems;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* CurrentItem;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* PreviousItem;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotTicker CTicker;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotAnnotationCollection Annotations;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotTagCollection Tags;
/// <summary>
/// To be documented.
/// </summary>
public byte ChildWindowMade;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotStyle Style;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImGuiColorMod> ColorModifiers;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImGuiStyleMod> StyleModifiers;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotColormapData ColormapData;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotColormap> ColormapModifiers;
/// <summary>
/// To be documented.
/// </summary>
public Tm Tm;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<double> TempDouble1;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<double> TempDouble2;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> TempInt1;
/// <summary>
/// To be documented.
/// </summary>
public int DigitalPlotItemCnt;
/// <summary>
/// To be documented.
/// </summary>
public int DigitalPlotOffset;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotNextPlotData NextPlotData;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotNextItemData NextItemData;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotInputMap InputMap;
/// <summary>
/// To be documented.
/// </summary>
public byte OpenContextThisFrame;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer MousePosStringBuilder;
/// <summary>
/// To be documented.
/// </summary>
public ImPoolImPlotAlignmentData AlignmentData;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotAlignmentData* CurrentAlignmentH;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotAlignmentData* CurrentAlignmentV;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotContext(ImPoolImPlotPlot plots = default, ImPoolImPlotSubplot subplots = default, ImPlotPlot* currentPlot = default, ImPlotSubplot* currentSubplot = default, ImPlotItemGroup* currentItems = default, ImPlotItem* currentItem = default, ImPlotItem* previousItem = default, ImPlotTicker cTicker = default, ImPlotAnnotationCollection annotations = default, ImPlotTagCollection tags = default, bool childWindowMade = default, ImPlotStyle style = default, ImVector<ImGuiColorMod> colorModifiers = default, ImVector<ImGuiStyleMod> styleModifiers = default, ImPlotColormapData colormapData = default, ImVector<ImPlotColormap> colormapModifiers = default, Tm tm = default, ImVector<double> tempDouble1 = default, ImVector<double> tempDouble2 = default, ImVector<int> tempInt1 = default, int digitalPlotItemCnt = default, int digitalPlotOffset = default, ImPlotNextPlotData nextPlotData = default, ImPlotNextItemData nextItemData = default, ImPlotInputMap inputMap = default, bool openContextThisFrame = default, ImGuiTextBuffer mousePosStringBuilder = default, ImPoolImPlotAlignmentData alignmentData = default, ImPlotAlignmentData* currentAlignmentH = default, ImPlotAlignmentData* currentAlignmentV = default)
{
Plots = plots;
Subplots = subplots;
CurrentPlot = currentPlot;
CurrentSubplot = currentSubplot;
CurrentItems = currentItems;
CurrentItem = currentItem;
PreviousItem = previousItem;
CTicker = cTicker;
Annotations = annotations;
Tags = tags;
ChildWindowMade = childWindowMade ? (byte)1 : (byte)0;
Style = style;
ColorModifiers = colorModifiers;
StyleModifiers = styleModifiers;
ColormapData = colormapData;
ColormapModifiers = colormapModifiers;
Tm = tm;
TempDouble1 = tempDouble1;
TempDouble2 = tempDouble2;
TempInt1 = tempInt1;
DigitalPlotItemCnt = digitalPlotItemCnt;
DigitalPlotOffset = digitalPlotOffset;
NextPlotData = nextPlotData;
NextItemData = nextItemData;
InputMap = inputMap;
OpenContextThisFrame = openContextThisFrame ? (byte)1 : (byte)0;
MousePosStringBuilder = mousePosStringBuilder;
AlignmentData = alignmentData;
CurrentAlignmentH = currentAlignmentH;
CurrentAlignmentV = currentAlignmentV;
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotContextPtr : IEquatable<ImPlotContextPtr>
{
public ImPlotContextPtr(ImPlotContext* handle) { Handle = handle; }
public ImPlotContext* Handle;
public bool IsNull => Handle == null;
public static ImPlotContextPtr Null => new ImPlotContextPtr(null);
public ImPlotContext this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotContextPtr(ImPlotContext* handle) => new ImPlotContextPtr(handle);
public static implicit operator ImPlotContext*(ImPlotContextPtr handle) => handle.Handle;
public static bool operator ==(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotContextPtr left, ImPlotContext* right) => left.Handle == right;
public static bool operator !=(ImPlotContextPtr left, ImPlotContext* right) => left.Handle != right;
public bool Equals(ImPlotContextPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotContextPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotContextPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImPoolImPlotPlot Plots => ref Unsafe.AsRef<ImPoolImPlotPlot>(&Handle->Plots);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPoolImPlotSubplot Subplots => ref Unsafe.AsRef<ImPoolImPlotSubplot>(&Handle->Subplots);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotPlotPtr CurrentPlot => ref Unsafe.AsRef<ImPlotPlotPtr>(&Handle->CurrentPlot);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotSubplotPtr CurrentSubplot => ref Unsafe.AsRef<ImPlotSubplotPtr>(&Handle->CurrentSubplot);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotItemGroupPtr CurrentItems => ref Unsafe.AsRef<ImPlotItemGroupPtr>(&Handle->CurrentItems);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotItemPtr CurrentItem => ref Unsafe.AsRef<ImPlotItemPtr>(&Handle->CurrentItem);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotItemPtr PreviousItem => ref Unsafe.AsRef<ImPlotItemPtr>(&Handle->PreviousItem);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotTicker CTicker => ref Unsafe.AsRef<ImPlotTicker>(&Handle->CTicker);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotAnnotationCollection Annotations => ref Unsafe.AsRef<ImPlotAnnotationCollection>(&Handle->Annotations);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotTagCollection Tags => ref Unsafe.AsRef<ImPlotTagCollection>(&Handle->Tags);
/// <summary>
/// To be documented.
/// </summary>
public ref bool ChildWindowMade => ref Unsafe.AsRef<bool>(&Handle->ChildWindowMade);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotStyle Style => ref Unsafe.AsRef<ImPlotStyle>(&Handle->Style);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImGuiColorMod> ColorModifiers => ref Unsafe.AsRef<ImVector<ImGuiColorMod>>(&Handle->ColorModifiers);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImGuiStyleMod> StyleModifiers => ref Unsafe.AsRef<ImVector<ImGuiStyleMod>>(&Handle->StyleModifiers);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotColormapData ColormapData => ref Unsafe.AsRef<ImPlotColormapData>(&Handle->ColormapData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotColormap> ColormapModifiers => ref Unsafe.AsRef<ImVector<ImPlotColormap>>(&Handle->ColormapModifiers);
/// <summary>
/// To be documented.
/// </summary>
public ref Tm Tm => ref Unsafe.AsRef<Tm>(&Handle->Tm);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<double> TempDouble1 => ref Unsafe.AsRef<ImVector<double>>(&Handle->TempDouble1);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<double> TempDouble2 => ref Unsafe.AsRef<ImVector<double>>(&Handle->TempDouble2);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> TempInt1 => ref Unsafe.AsRef<ImVector<int>>(&Handle->TempInt1);
/// <summary>
/// To be documented.
/// </summary>
public ref int DigitalPlotItemCnt => ref Unsafe.AsRef<int>(&Handle->DigitalPlotItemCnt);
/// <summary>
/// To be documented.
/// </summary>
public ref int DigitalPlotOffset => ref Unsafe.AsRef<int>(&Handle->DigitalPlotOffset);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotNextPlotData NextPlotData => ref Unsafe.AsRef<ImPlotNextPlotData>(&Handle->NextPlotData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotNextItemData NextItemData => ref Unsafe.AsRef<ImPlotNextItemData>(&Handle->NextItemData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotInputMap InputMap => ref Unsafe.AsRef<ImPlotInputMap>(&Handle->InputMap);
/// <summary>
/// To be documented.
/// </summary>
public ref bool OpenContextThisFrame => ref Unsafe.AsRef<bool>(&Handle->OpenContextThisFrame);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer MousePosStringBuilder => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->MousePosStringBuilder);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPoolImPlotAlignmentData AlignmentData => ref Unsafe.AsRef<ImPoolImPlotAlignmentData>(&Handle->AlignmentData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotAlignmentDataPtr CurrentAlignmentH => ref Unsafe.AsRef<ImPlotAlignmentDataPtr>(&Handle->CurrentAlignmentH);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotAlignmentDataPtr CurrentAlignmentV => ref Unsafe.AsRef<ImPlotAlignmentDataPtr>(&Handle->CurrentAlignmentV);
}
}

View file

@ -0,0 +1,139 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotDateTimeSpec
{
/// <summary>
/// To be documented.
/// </summary>
public ImPlotDateFmt Date;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotTimeFmt Time;
/// <summary>
/// To be documented.
/// </summary>
public byte UseISO8601;
/// <summary>
/// To be documented.
/// </summary>
public byte Use24HourClock;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotDateTimeSpec(ImPlotDateFmt date = default, ImPlotTimeFmt time = default, bool useIso8601 = default, bool use24HourClock = default)
{
Date = date;
Time = time;
UseISO8601 = useIso8601 ? (byte)1 : (byte)0;
Use24HourClock = use24HourClock ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotDateTimeSpec* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotDateTimeSpecPtr : IEquatable<ImPlotDateTimeSpecPtr>
{
public ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) { Handle = handle; }
public ImPlotDateTimeSpec* Handle;
public bool IsNull => Handle == null;
public static ImPlotDateTimeSpecPtr Null => new ImPlotDateTimeSpecPtr(null);
public ImPlotDateTimeSpec this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) => new ImPlotDateTimeSpecPtr(handle);
public static implicit operator ImPlotDateTimeSpec*(ImPlotDateTimeSpecPtr handle) => handle.Handle;
public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle == right;
public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle != right;
public bool Equals(ImPlotDateTimeSpecPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotDateTimeSpecPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotDateTimeSpecPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotDateFmt Date => ref Unsafe.AsRef<ImPlotDateFmt>(&Handle->Date);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotTimeFmt Time => ref Unsafe.AsRef<ImPlotTimeFmt>(&Handle->Time);
/// <summary>
/// To be documented.
/// </summary>
public ref bool UseISO8601 => ref Unsafe.AsRef<bool>(&Handle->UseISO8601);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Use24HourClock => ref Unsafe.AsRef<bool>(&Handle->Use24HourClock);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,219 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotInputMap
{
/// <summary>
/// To be documented.
/// </summary>
public ImGuiMouseButton Pan;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags PanMod;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiMouseButton Fit;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiMouseButton Select;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiMouseButton SelectCancel;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags SelectMod;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags SelectHorzMod;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags SelectVertMod;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiMouseButton Menu;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags OverrideMod;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiModFlags ZoomMod;
/// <summary>
/// To be documented.
/// </summary>
public float ZoomRate;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotInputMap(ImGuiMouseButton pan = default, ImGuiModFlags panMod = default, ImGuiMouseButton fit = default, ImGuiMouseButton select = default, ImGuiMouseButton selectCancel = default, ImGuiModFlags selectMod = default, ImGuiModFlags selectHorzMod = default, ImGuiModFlags selectVertMod = default, ImGuiMouseButton menu = default, ImGuiModFlags overrideMod = default, ImGuiModFlags zoomMod = default, float zoomRate = default)
{
Pan = pan;
PanMod = panMod;
Fit = fit;
Select = select;
SelectCancel = selectCancel;
SelectMod = selectMod;
SelectHorzMod = selectHorzMod;
SelectVertMod = selectVertMod;
Menu = menu;
OverrideMod = overrideMod;
ZoomMod = zoomMod;
ZoomRate = zoomRate;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotInputMap* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotInputMapPtr : IEquatable<ImPlotInputMapPtr>
{
public ImPlotInputMapPtr(ImPlotInputMap* handle) { Handle = handle; }
public ImPlotInputMap* Handle;
public bool IsNull => Handle == null;
public static ImPlotInputMapPtr Null => new ImPlotInputMapPtr(null);
public ImPlotInputMap this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* handle) => new ImPlotInputMapPtr(handle);
public static implicit operator ImPlotInputMap*(ImPlotInputMapPtr handle) => handle.Handle;
public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle == right;
public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle != right;
public bool Equals(ImPlotInputMapPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotInputMapPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotInputMapPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiMouseButton Pan => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Pan);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags PanMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->PanMod);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiMouseButton Fit => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Fit);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiMouseButton Select => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Select);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->SelectCancel);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags SelectMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectMod);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags SelectHorzMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectHorzMod);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags SelectVertMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectVertMod);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiMouseButton Menu => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Menu);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags OverrideMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->OverrideMod);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiModFlags ZoomMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->ZoomMod);
/// <summary>
/// To be documented.
/// </summary>
public ref float ZoomRate => ref Unsafe.AsRef<float>(&Handle->ZoomRate);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,169 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotItem
{
/// <summary>
/// To be documented.
/// </summary>
public uint ID;
/// <summary>
/// To be documented.
/// </summary>
public uint Color;
/// <summary>
/// To be documented.
/// </summary>
public ImRect LegendHoverRect;
/// <summary>
/// To be documented.
/// </summary>
public int NameOffset;
/// <summary>
/// To be documented.
/// </summary>
public byte Show;
/// <summary>
/// To be documented.
/// </summary>
public byte LegendHovered;
/// <summary>
/// To be documented.
/// </summary>
public byte SeenThisFrame;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem(uint id = default, uint color = default, ImRect legendHoverRect = default, int nameOffset = default, bool show = default, bool legendHovered = default, bool seenThisFrame = default)
{
ID = id;
Color = color;
LegendHoverRect = legendHoverRect;
NameOffset = nameOffset;
Show = show ? (byte)1 : (byte)0;
LegendHovered = legendHovered ? (byte)1 : (byte)0;
SeenThisFrame = seenThisFrame ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotItem* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotItemPtr : IEquatable<ImPlotItemPtr>
{
public ImPlotItemPtr(ImPlotItem* handle) { Handle = handle; }
public ImPlotItem* Handle;
public bool IsNull => Handle == null;
public static ImPlotItemPtr Null => new ImPlotItemPtr(null);
public ImPlotItem this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotItemPtr(ImPlotItem* handle) => new ImPlotItemPtr(handle);
public static implicit operator ImPlotItem*(ImPlotItemPtr handle) => handle.Handle;
public static bool operator ==(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotItemPtr left, ImPlotItem* right) => left.Handle == right;
public static bool operator !=(ImPlotItemPtr left, ImPlotItem* right) => left.Handle != right;
public bool Equals(ImPlotItemPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotItemPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotItemPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID);
/// <summary>
/// To be documented.
/// </summary>
public ref uint Color => ref Unsafe.AsRef<uint>(&Handle->Color);
/// <summary>
/// To be documented.
/// </summary>
public ref ImRect LegendHoverRect => ref Unsafe.AsRef<ImRect>(&Handle->LegendHoverRect);
/// <summary>
/// To be documented.
/// </summary>
public ref int NameOffset => ref Unsafe.AsRef<int>(&Handle->NameOffset);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Show => ref Unsafe.AsRef<bool>(&Handle->Show);
/// <summary>
/// To be documented.
/// </summary>
public ref bool LegendHovered => ref Unsafe.AsRef<bool>(&Handle->LegendHovered);
/// <summary>
/// To be documented.
/// </summary>
public ref bool SeenThisFrame => ref Unsafe.AsRef<bool>(&Handle->SeenThisFrame);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,650 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotItemGroup
{
/// <summary>
/// To be documented.
/// </summary>
public uint ID;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotLegend Legend;
/// <summary>
/// To be documented.
/// </summary>
public ImPoolImPlotItem ItemPool;
/// <summary>
/// To be documented.
/// </summary>
public int ColormapIdx;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItemGroup(uint id = default, ImPlotLegend legend = default, ImPoolImPlotItem itemPool = default, int colormapIdx = default)
{
ID = id;
Legend = legend;
ItemPool = itemPool;
ColormapIdx = colormapIdx;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(uint id)
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlotItem* ret = ImPlot.GetItemNative(@this, id);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(byte* labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlotItem* ret = ImPlot.GetItemNative(@this, labelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(ref byte labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
fixed (byte* plabelId = &labelId)
{
ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(ReadOnlySpan<byte> labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
fixed (byte* plabelId = labelId)
{
ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(string labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (labelId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(labelId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotItem* ret = ImPlot.GetItemNative(@this, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItemByIndex(int i)
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlotItem* ret = ImPlot.GetItemByIndexNative(@this, i);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemCount()
{
fixed (ImPlotItemGroup* @this = &this)
{
int ret = ImPlot.GetItemCountNative(@this);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(byte* labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
uint ret = ImPlot.GetItemIDNative(@this, labelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(ref byte labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
fixed (byte* plabelId = &labelId)
{
uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(ReadOnlySpan<byte> labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
fixed (byte* plabelId = labelId)
{
uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(string labelId)
{
fixed (ImPlotItemGroup* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (labelId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(labelId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
uint ret = ImPlot.GetItemIDNative(@this, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemIndex(ImPlotItem* item)
{
fixed (ImPlotItemGroup* @this = &this)
{
int ret = ImPlot.GetItemIndexNative(@this, item);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemIndex(ref ImPlotItem item)
{
fixed (ImPlotItemGroup* @this = &this)
{
fixed (ImPlotItem* pitem = &item)
{
int ret = ImPlot.GetItemIndexNative(@this, (ImPlotItem*)pitem);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetLegendCount()
{
fixed (ImPlotItemGroup* @this = &this)
{
int ret = ImPlot.GetLegendCountNative(@this);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetLegendItem(int i)
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlotItem* ret = ImPlot.GetLegendItemNative(@this, i);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetLegendLabel(int i)
{
fixed (ImPlotItemGroup* @this = &this)
{
byte* ret = ImPlot.GetLegendLabelNative(@this, i);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetLegendLabelS(int i)
{
fixed (ImPlotItemGroup* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(@this, i));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetOrAddItem(uint id)
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlotItem* ret = ImPlot.GetOrAddItemNative(@this, id);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotItemGroup* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotItemGroupPtr : IEquatable<ImPlotItemGroupPtr>
{
public ImPlotItemGroupPtr(ImPlotItemGroup* handle) { Handle = handle; }
public ImPlotItemGroup* Handle;
public bool IsNull => Handle == null;
public static ImPlotItemGroupPtr Null => new ImPlotItemGroupPtr(null);
public ImPlotItemGroup this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotItemGroupPtr(ImPlotItemGroup* handle) => new ImPlotItemGroupPtr(handle);
public static implicit operator ImPlotItemGroup*(ImPlotItemGroupPtr handle) => handle.Handle;
public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle == right;
public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle != right;
public bool Equals(ImPlotItemGroupPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotItemGroupPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotItemGroupPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotLegend Legend => ref Unsafe.AsRef<ImPlotLegend>(&Handle->Legend);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPoolImPlotItem ItemPool => ref Unsafe.AsRef<ImPoolImPlotItem>(&Handle->ItemPool);
/// <summary>
/// To be documented.
/// </summary>
public ref int ColormapIdx => ref Unsafe.AsRef<int>(&Handle->ColormapIdx);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(uint id)
{
ImPlotItem* ret = ImPlot.GetItemNative(Handle, id);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(byte* labelId)
{
ImPlotItem* ret = ImPlot.GetItemNative(Handle, labelId);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(ref byte labelId)
{
fixed (byte* plabelId = &labelId)
{
ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(ReadOnlySpan<byte> labelId)
{
fixed (byte* plabelId = labelId)
{
ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItem(string labelId)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (labelId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(labelId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotItem* ret = ImPlot.GetItemNative(Handle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetItemByIndex(int i)
{
ImPlotItem* ret = ImPlot.GetItemByIndexNative(Handle, i);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemCount()
{
int ret = ImPlot.GetItemCountNative(Handle);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(byte* labelId)
{
uint ret = ImPlot.GetItemIDNative(Handle, labelId);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(ref byte labelId)
{
fixed (byte* plabelId = &labelId)
{
uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(ReadOnlySpan<byte> labelId)
{
fixed (byte* plabelId = labelId)
{
uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe uint GetItemID(string labelId)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (labelId != null)
{
pStrSize0 = Utils.GetByteCountUTF8(labelId);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
uint ret = ImPlot.GetItemIDNative(Handle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemIndex(ImPlotItem* item)
{
int ret = ImPlot.GetItemIndexNative(Handle, item);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetItemIndex(ref ImPlotItem item)
{
fixed (ImPlotItem* pitem = &item)
{
int ret = ImPlot.GetItemIndexNative(Handle, (ImPlotItem*)pitem);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int GetLegendCount()
{
int ret = ImPlot.GetLegendCountNative(Handle);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetLegendItem(int i)
{
ImPlotItem* ret = ImPlot.GetLegendItemNative(Handle, i);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetLegendLabel(int i)
{
byte* ret = ImPlot.GetLegendLabelNative(Handle, i);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetLegendLabelS(int i)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(Handle, i));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotItem* GetOrAddItem(uint id)
{
ImPlotItem* ret = ImPlot.GetOrAddItemNative(Handle, id);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

View file

@ -0,0 +1,218 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotLegend
{
/// <summary>
/// To be documented.
/// </summary>
public ImPlotLegendFlags Flags;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotLegendFlags PreviousFlags;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotLocation Location;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotLocation PreviousLocation;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<int> Indices;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer Labels;
/// <summary>
/// To be documented.
/// </summary>
public ImRect Rect;
/// <summary>
/// To be documented.
/// </summary>
public byte Hovered;
/// <summary>
/// To be documented.
/// </summary>
public byte Held;
/// <summary>
/// To be documented.
/// </summary>
public byte CanGoInside;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotLegend(ImPlotLegendFlags flags = default, ImPlotLegendFlags previousFlags = default, ImPlotLocation location = default, ImPlotLocation previousLocation = default, ImVector<int> indices = default, ImGuiTextBuffer labels = default, ImRect rect = default, bool hovered = default, bool held = default, bool canGoInside = default)
{
Flags = flags;
PreviousFlags = previousFlags;
Location = location;
PreviousLocation = previousLocation;
Indices = indices;
Labels = labels;
Rect = rect;
Hovered = hovered ? (byte)1 : (byte)0;
Held = held ? (byte)1 : (byte)0;
CanGoInside = canGoInside ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotLegend* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotLegend* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotLegendPtr : IEquatable<ImPlotLegendPtr>
{
public ImPlotLegendPtr(ImPlotLegend* handle) { Handle = handle; }
public ImPlotLegend* Handle;
public bool IsNull => Handle == null;
public static ImPlotLegendPtr Null => new ImPlotLegendPtr(null);
public ImPlotLegend this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotLegendPtr(ImPlotLegend* handle) => new ImPlotLegendPtr(handle);
public static implicit operator ImPlotLegend*(ImPlotLegendPtr handle) => handle.Handle;
public static bool operator ==(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle == right;
public static bool operator !=(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle != right;
public bool Equals(ImPlotLegendPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotLegendPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotLegendPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotLegendFlags Flags => ref Unsafe.AsRef<ImPlotLegendFlags>(&Handle->Flags);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotLegendFlags PreviousFlags => ref Unsafe.AsRef<ImPlotLegendFlags>(&Handle->PreviousFlags);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotLocation Location => ref Unsafe.AsRef<ImPlotLocation>(&Handle->Location);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotLocation PreviousLocation => ref Unsafe.AsRef<ImPlotLocation>(&Handle->PreviousLocation);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<int> Indices => ref Unsafe.AsRef<ImVector<int>>(&Handle->Indices);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer Labels => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->Labels);
/// <summary>
/// To be documented.
/// </summary>
public ref ImRect Rect => ref Unsafe.AsRef<ImRect>(&Handle->Rect);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Hovered => ref Unsafe.AsRef<bool>(&Handle->Hovered);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Held => ref Unsafe.AsRef<bool>(&Handle->Held);
/// <summary>
/// To be documented.
/// </summary>
public ref bool CanGoInside => ref Unsafe.AsRef<bool>(&Handle->CanGoInside);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

View file

@ -0,0 +1,351 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotNextItemData
{
/// <summary>
/// To be documented.
/// </summary>
public Vector4 Colors_0;
public Vector4 Colors_1;
public Vector4 Colors_2;
public Vector4 Colors_3;
public Vector4 Colors_4;
/// <summary>
/// To be documented.
/// </summary>
public float LineWeight;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotMarker Marker;
/// <summary>
/// To be documented.
/// </summary>
public float MarkerSize;
/// <summary>
/// To be documented.
/// </summary>
public float MarkerWeight;
/// <summary>
/// To be documented.
/// </summary>
public float FillAlpha;
/// <summary>
/// To be documented.
/// </summary>
public float ErrorBarSize;
/// <summary>
/// To be documented.
/// </summary>
public float ErrorBarWeight;
/// <summary>
/// To be documented.
/// </summary>
public float DigitalBitHeight;
/// <summary>
/// To be documented.
/// </summary>
public float DigitalBitGap;
/// <summary>
/// To be documented.
/// </summary>
public byte RenderLine;
/// <summary>
/// To be documented.
/// </summary>
public byte RenderFill;
/// <summary>
/// To be documented.
/// </summary>
public byte RenderMarkerLine;
/// <summary>
/// To be documented.
/// </summary>
public byte RenderMarkerFill;
/// <summary>
/// To be documented.
/// </summary>
public byte HasHidden;
/// <summary>
/// To be documented.
/// </summary>
public byte Hidden;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotCond HiddenCond;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotNextItemData(Vector4* colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default)
{
if (colors != default(Vector4*))
{
Colors_0 = colors[0];
Colors_1 = colors[1];
Colors_2 = colors[2];
Colors_3 = colors[3];
Colors_4 = colors[4];
}
LineWeight = lineWeight;
Marker = marker;
MarkerSize = markerSize;
MarkerWeight = markerWeight;
FillAlpha = fillAlpha;
ErrorBarSize = errorBarSize;
ErrorBarWeight = errorBarWeight;
DigitalBitHeight = digitalBitHeight;
DigitalBitGap = digitalBitGap;
RenderLine = renderLine ? (byte)1 : (byte)0;
RenderFill = renderFill ? (byte)1 : (byte)0;
RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0;
RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0;
HasHidden = hasHidden ? (byte)1 : (byte)0;
Hidden = hidden ? (byte)1 : (byte)0;
HiddenCond = hiddenCond;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotNextItemData(Span<Vector4> colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default)
{
if (colors != default(Span<Vector4>))
{
Colors_0 = colors[0];
Colors_1 = colors[1];
Colors_2 = colors[2];
Colors_3 = colors[3];
Colors_4 = colors[4];
}
LineWeight = lineWeight;
Marker = marker;
MarkerSize = markerSize;
MarkerWeight = markerWeight;
FillAlpha = fillAlpha;
ErrorBarSize = errorBarSize;
ErrorBarWeight = errorBarWeight;
DigitalBitHeight = digitalBitHeight;
DigitalBitGap = digitalBitGap;
RenderLine = renderLine ? (byte)1 : (byte)0;
RenderFill = renderFill ? (byte)1 : (byte)0;
RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0;
RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0;
HasHidden = hasHidden ? (byte)1 : (byte)0;
Hidden = hidden ? (byte)1 : (byte)0;
HiddenCond = hiddenCond;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Vector4> Colors
{
get
{
fixed (Vector4* p = &this.Colors_0)
{
return new Span<Vector4>(p, 5);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotNextItemData* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotNextItemData* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotNextItemDataPtr : IEquatable<ImPlotNextItemDataPtr>
{
public ImPlotNextItemDataPtr(ImPlotNextItemData* handle) { Handle = handle; }
public ImPlotNextItemData* Handle;
public bool IsNull => Handle == null;
public static ImPlotNextItemDataPtr Null => new ImPlotNextItemDataPtr(null);
public ImPlotNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotNextItemDataPtr(ImPlotNextItemData* handle) => new ImPlotNextItemDataPtr(handle);
public static implicit operator ImPlotNextItemData*(ImPlotNextItemDataPtr handle) => handle.Handle;
public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle == right;
public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle != right;
public bool Equals(ImPlotNextItemDataPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotNextItemDataPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Vector4> Colors
{
get
{
return new Span<Vector4>(&Handle->Colors_0, 5);
}
}
/// <summary>
/// To be documented.
/// </summary>
public ref float LineWeight => ref Unsafe.AsRef<float>(&Handle->LineWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotMarker Marker => ref Unsafe.AsRef<ImPlotMarker>(&Handle->Marker);
/// <summary>
/// To be documented.
/// </summary>
public ref float MarkerSize => ref Unsafe.AsRef<float>(&Handle->MarkerSize);
/// <summary>
/// To be documented.
/// </summary>
public ref float MarkerWeight => ref Unsafe.AsRef<float>(&Handle->MarkerWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float FillAlpha => ref Unsafe.AsRef<float>(&Handle->FillAlpha);
/// <summary>
/// To be documented.
/// </summary>
public ref float ErrorBarSize => ref Unsafe.AsRef<float>(&Handle->ErrorBarSize);
/// <summary>
/// To be documented.
/// </summary>
public ref float ErrorBarWeight => ref Unsafe.AsRef<float>(&Handle->ErrorBarWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float DigitalBitHeight => ref Unsafe.AsRef<float>(&Handle->DigitalBitHeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float DigitalBitGap => ref Unsafe.AsRef<float>(&Handle->DigitalBitGap);
/// <summary>
/// To be documented.
/// </summary>
public ref bool RenderLine => ref Unsafe.AsRef<bool>(&Handle->RenderLine);
/// <summary>
/// To be documented.
/// </summary>
public ref bool RenderFill => ref Unsafe.AsRef<bool>(&Handle->RenderFill);
/// <summary>
/// To be documented.
/// </summary>
public ref bool RenderMarkerLine => ref Unsafe.AsRef<bool>(&Handle->RenderMarkerLine);
/// <summary>
/// To be documented.
/// </summary>
public ref bool RenderMarkerFill => ref Unsafe.AsRef<bool>(&Handle->RenderMarkerFill);
/// <summary>
/// To be documented.
/// </summary>
public ref bool HasHidden => ref Unsafe.AsRef<bool>(&Handle->HasHidden);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Hidden => ref Unsafe.AsRef<bool>(&Handle->Hidden);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotCond HiddenCond => ref Unsafe.AsRef<ImPlotCond>(&Handle->HiddenCond);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

View file

@ -0,0 +1,385 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotNextPlotData
{
/// <summary>
/// To be documented.
/// </summary>
public ImPlotCond RangeCond_0;
public ImPlotCond RangeCond_1;
public ImPlotCond RangeCond_2;
public ImPlotCond RangeCond_3;
public ImPlotCond RangeCond_4;
public ImPlotCond RangeCond_5;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotRange Range_0;
public ImPlotRange Range_1;
public ImPlotRange Range_2;
public ImPlotRange Range_3;
public ImPlotRange Range_4;
public ImPlotRange Range_5;
/// <summary>
/// To be documented.
/// </summary>
public bool HasRange_0;
public bool HasRange_1;
public bool HasRange_2;
public bool HasRange_3;
public bool HasRange_4;
public bool HasRange_5;
/// <summary>
/// To be documented.
/// </summary>
public bool Fit_0;
public bool Fit_1;
public bool Fit_2;
public bool Fit_3;
public bool Fit_4;
public bool Fit_5;
/// <summary>
/// To be documented.
/// </summary>
public unsafe double* LinkedMin_0;
public unsafe double* LinkedMin_1;
public unsafe double* LinkedMin_2;
public unsafe double* LinkedMin_3;
public unsafe double* LinkedMin_4;
public unsafe double* LinkedMin_5;
/// <summary>
/// To be documented.
/// </summary>
public unsafe double* LinkedMax_0;
public unsafe double* LinkedMax_1;
public unsafe double* LinkedMax_2;
public unsafe double* LinkedMax_3;
public unsafe double* LinkedMax_4;
public unsafe double* LinkedMax_5;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotNextPlotData(ImPlotCond* rangeCond = default, ImPlotRangePtr range = default, bool* hasRange = default, bool* fit = default, double** linkedMin = default, double** linkedMax = default)
{
if (rangeCond != default(ImPlotCond*))
{
RangeCond_0 = rangeCond[0];
RangeCond_1 = rangeCond[1];
RangeCond_2 = rangeCond[2];
RangeCond_3 = rangeCond[3];
RangeCond_4 = rangeCond[4];
RangeCond_5 = rangeCond[5];
}
if (range != default(ImPlotRangePtr))
{
Range_0 = range[0];
Range_1 = range[1];
Range_2 = range[2];
Range_3 = range[3];
Range_4 = range[4];
Range_5 = range[5];
}
if (hasRange != default(bool*))
{
HasRange_0 = hasRange[0];
HasRange_1 = hasRange[1];
HasRange_2 = hasRange[2];
HasRange_3 = hasRange[3];
HasRange_4 = hasRange[4];
HasRange_5 = hasRange[5];
}
if (fit != default(bool*))
{
Fit_0 = fit[0];
Fit_1 = fit[1];
Fit_2 = fit[2];
Fit_3 = fit[3];
Fit_4 = fit[4];
Fit_5 = fit[5];
}
if (linkedMin != default(double**))
{
LinkedMin_0 = linkedMin[0];
LinkedMin_1 = linkedMin[1];
LinkedMin_2 = linkedMin[2];
LinkedMin_3 = linkedMin[3];
LinkedMin_4 = linkedMin[4];
LinkedMin_5 = linkedMin[5];
}
if (linkedMax != default(double**))
{
LinkedMax_0 = linkedMax[0];
LinkedMax_1 = linkedMax[1];
LinkedMax_2 = linkedMax[2];
LinkedMax_3 = linkedMax[3];
LinkedMax_4 = linkedMax[4];
LinkedMax_5 = linkedMax[5];
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotNextPlotData(Span<ImPlotCond> rangeCond = default, Span<ImPlotRange> range = default, Span<bool> hasRange = default, Span<bool> fit = default, Span<Pointer<double>> linkedMin = default, Span<Pointer<double>> linkedMax = default)
{
if (rangeCond != default(Span<ImPlotCond>))
{
RangeCond_0 = rangeCond[0];
RangeCond_1 = rangeCond[1];
RangeCond_2 = rangeCond[2];
RangeCond_3 = rangeCond[3];
RangeCond_4 = rangeCond[4];
RangeCond_5 = rangeCond[5];
}
if (range != default(Span<ImPlotRange>))
{
Range_0 = range[0];
Range_1 = range[1];
Range_2 = range[2];
Range_3 = range[3];
Range_4 = range[4];
Range_5 = range[5];
}
if (hasRange != default(Span<bool>))
{
HasRange_0 = hasRange[0];
HasRange_1 = hasRange[1];
HasRange_2 = hasRange[2];
HasRange_3 = hasRange[3];
HasRange_4 = hasRange[4];
HasRange_5 = hasRange[5];
}
if (fit != default(Span<bool>))
{
Fit_0 = fit[0];
Fit_1 = fit[1];
Fit_2 = fit[2];
Fit_3 = fit[3];
Fit_4 = fit[4];
Fit_5 = fit[5];
}
if (linkedMin != default(Span<Pointer<double>>))
{
LinkedMin_0 = linkedMin[0];
LinkedMin_1 = linkedMin[1];
LinkedMin_2 = linkedMin[2];
LinkedMin_3 = linkedMin[3];
LinkedMin_4 = linkedMin[4];
LinkedMin_5 = linkedMin[5];
}
if (linkedMax != default(Span<Pointer<double>>))
{
LinkedMax_0 = linkedMax[0];
LinkedMax_1 = linkedMax[1];
LinkedMax_2 = linkedMax[2];
LinkedMax_3 = linkedMax[3];
LinkedMax_4 = linkedMax[4];
LinkedMax_5 = linkedMax[5];
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<ImPlotRange> Range
{
get
{
fixed (ImPlotRange* p = &this.Range_0)
{
return new Span<ImPlotRange>(p, 6);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Pointer<double>> LinkedMin
{
get
{
fixed (double** p = &this.LinkedMin_0)
{
return new Span<Pointer<double>>(p, 6);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Pointer<double>> LinkedMax
{
get
{
fixed (double** p = &this.LinkedMax_0)
{
return new Span<Pointer<double>>(p, 6);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotNextPlotData* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotNextPlotData* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotNextPlotDataPtr : IEquatable<ImPlotNextPlotDataPtr>
{
public ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) { Handle = handle; }
public ImPlotNextPlotData* Handle;
public bool IsNull => Handle == null;
public static ImPlotNextPlotDataPtr Null => new ImPlotNextPlotDataPtr(null);
public ImPlotNextPlotData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) => new ImPlotNextPlotDataPtr(handle);
public static implicit operator ImPlotNextPlotData*(ImPlotNextPlotDataPtr handle) => handle.Handle;
public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle == right;
public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle != right;
public bool Equals(ImPlotNextPlotDataPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotNextPlotDataPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotNextPlotDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<int> RangeCond
{
get
{
return new Span<int>(&Handle->RangeCond_0, 6);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<ImPlotRange> Range
{
get
{
return new Span<ImPlotRange>(&Handle->Range_0, 6);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<bool> HasRange
{
get
{
return new Span<bool>(&Handle->HasRange_0, 6);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<bool> Fit
{
get
{
return new Span<bool>(&Handle->Fit_0, 6);
}
}
/// <summary>
/// To be documented.
/// </summary>
/// <summary>
/// To be documented.
/// </summary>
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,119 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotPoint
{
/// <summary>
/// To be documented.
/// </summary>
public double X;
/// <summary>
/// To be documented.
/// </summary>
public double Y;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotPoint(double x = default, double y = default)
{
X = x;
Y = y;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotPoint* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotPointPtr : IEquatable<ImPlotPointPtr>
{
public ImPlotPointPtr(ImPlotPoint* handle) { Handle = handle; }
public ImPlotPoint* Handle;
public bool IsNull => Handle == null;
public static ImPlotPointPtr Null => new ImPlotPointPtr(null);
public ImPlotPoint this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotPointPtr(ImPlotPoint* handle) => new ImPlotPointPtr(handle);
public static implicit operator ImPlotPoint*(ImPlotPointPtr handle) => handle.Handle;
public static bool operator ==(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle == right;
public static bool operator !=(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle != right;
public bool Equals(ImPlotPointPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotPointPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotPointPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref double X => ref Unsafe.AsRef<double>(&Handle->X);
/// <summary>
/// To be documented.
/// </summary>
public ref double Y => ref Unsafe.AsRef<double>(&Handle->Y);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,139 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotPointError
{
/// <summary>
/// To be documented.
/// </summary>
public double X;
/// <summary>
/// To be documented.
/// </summary>
public double Y;
/// <summary>
/// To be documented.
/// </summary>
public double Neg;
/// <summary>
/// To be documented.
/// </summary>
public double Pos;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotPointError(double x = default, double y = default, double neg = default, double pos = default)
{
X = x;
Y = y;
Neg = neg;
Pos = pos;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotPointError* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotPointErrorPtr : IEquatable<ImPlotPointErrorPtr>
{
public ImPlotPointErrorPtr(ImPlotPointError* handle) { Handle = handle; }
public ImPlotPointError* Handle;
public bool IsNull => Handle == null;
public static ImPlotPointErrorPtr Null => new ImPlotPointErrorPtr(null);
public ImPlotPointError this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotPointErrorPtr(ImPlotPointError* handle) => new ImPlotPointErrorPtr(handle);
public static implicit operator ImPlotPointError*(ImPlotPointErrorPtr handle) => handle.Handle;
public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle == right;
public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle != right;
public bool Equals(ImPlotPointErrorPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotPointErrorPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotPointErrorPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref double X => ref Unsafe.AsRef<double>(&Handle->X);
/// <summary>
/// To be documented.
/// </summary>
public ref double Y => ref Unsafe.AsRef<double>(&Handle->Y);
/// <summary>
/// To be documented.
/// </summary>
public ref double Neg => ref Unsafe.AsRef<double>(&Handle->Neg);
/// <summary>
/// To be documented.
/// </summary>
public ref double Pos => ref Unsafe.AsRef<double>(&Handle->Pos);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,182 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotRange
{
/// <summary>
/// To be documented.
/// </summary>
public double Min;
/// <summary>
/// To be documented.
/// </summary>
public double Max;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotRange(double min = default, double max = default)
{
Min = min;
Max = max;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe double Clamp(double value)
{
fixed (ImPlotRange* @this = &this)
{
double ret = ImPlot.ClampNative(@this, value);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(double value)
{
fixed (ImPlotRange* @this = &this)
{
byte ret = ImPlot.ContainsNative(@this, value);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotRange* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe double Size()
{
fixed (ImPlotRange* @this = &this)
{
double ret = ImPlot.SizeNative(@this);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotRangePtr : IEquatable<ImPlotRangePtr>
{
public ImPlotRangePtr(ImPlotRange* handle) { Handle = handle; }
public ImPlotRange* Handle;
public bool IsNull => Handle == null;
public static ImPlotRangePtr Null => new ImPlotRangePtr(null);
public ImPlotRange this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotRangePtr(ImPlotRange* handle) => new ImPlotRangePtr(handle);
public static implicit operator ImPlotRange*(ImPlotRangePtr handle) => handle.Handle;
public static bool operator ==(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotRangePtr left, ImPlotRange* right) => left.Handle == right;
public static bool operator !=(ImPlotRangePtr left, ImPlotRange* right) => left.Handle != right;
public bool Equals(ImPlotRangePtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotRangePtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotRangePtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref double Min => ref Unsafe.AsRef<double>(&Handle->Min);
/// <summary>
/// To be documented.
/// </summary>
public ref double Max => ref Unsafe.AsRef<double>(&Handle->Max);
/// <summary>
/// To be documented.
/// </summary>
public unsafe double Clamp(double value)
{
double ret = ImPlot.ClampNative(Handle, value);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(double value)
{
byte ret = ImPlot.ContainsNative(Handle, value);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe double Size()
{
double ret = ImPlot.SizeNative(Handle);
return ret;
}
}
}

View file

@ -0,0 +1,161 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotRect
{
/// <summary>
/// To be documented.
/// </summary>
public ImPlotRange X;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotRange Y;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotRect(ImPlotRange x = default, ImPlotRange y = default)
{
X = x;
Y = y;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(ImPlotPoint p)
{
fixed (ImPlotRect* @this = &this)
{
byte ret = ImPlot.ContainsNative(@this, p);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(double x, double y)
{
fixed (ImPlotRect* @this = &this)
{
byte ret = ImPlot.ContainsNative(@this, x, y);
return ret != 0;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotRect* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotRectPtr : IEquatable<ImPlotRectPtr>
{
public ImPlotRectPtr(ImPlotRect* handle) { Handle = handle; }
public ImPlotRect* Handle;
public bool IsNull => Handle == null;
public static ImPlotRectPtr Null => new ImPlotRectPtr(null);
public ImPlotRect this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotRectPtr(ImPlotRect* handle) => new ImPlotRectPtr(handle);
public static implicit operator ImPlotRect*(ImPlotRectPtr handle) => handle.Handle;
public static bool operator ==(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotRectPtr left, ImPlotRect* right) => left.Handle == right;
public static bool operator !=(ImPlotRectPtr left, ImPlotRect* right) => left.Handle != right;
public bool Equals(ImPlotRectPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotRectPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotRectPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotRange X => ref Unsafe.AsRef<ImPlotRange>(&Handle->X);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotRange Y => ref Unsafe.AsRef<ImPlotRange>(&Handle->Y);
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(ImPlotPoint p)
{
byte ret = ImPlot.ContainsNative(Handle, p);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe bool Contains(double x, double y)
{
byte ret = ImPlot.ContainsNative(Handle, x, y);
return ret != 0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,545 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotStyle
{
/// <summary>
/// To be documented.
/// </summary>
public float LineWeight;
/// <summary>
/// To be documented.
/// </summary>
public int Marker;
/// <summary>
/// To be documented.
/// </summary>
public float MarkerSize;
/// <summary>
/// To be documented.
/// </summary>
public float MarkerWeight;
/// <summary>
/// To be documented.
/// </summary>
public float FillAlpha;
/// <summary>
/// To be documented.
/// </summary>
public float ErrorBarSize;
/// <summary>
/// To be documented.
/// </summary>
public float ErrorBarWeight;
/// <summary>
/// To be documented.
/// </summary>
public float DigitalBitHeight;
/// <summary>
/// To be documented.
/// </summary>
public float DigitalBitGap;
/// <summary>
/// To be documented.
/// </summary>
public float PlotBorderSize;
/// <summary>
/// To be documented.
/// </summary>
public float MinorAlpha;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MajorTickLen;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MinorTickLen;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MajorTickSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MinorTickSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MajorGridSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MinorGridSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 PlotPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LabelPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LegendPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LegendInnerPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LegendSpacing;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MousePosPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 AnnotationPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 FitPadding;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 PlotDefaultSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 PlotMinSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector4 Colors_0;
public Vector4 Colors_1;
public Vector4 Colors_2;
public Vector4 Colors_3;
public Vector4 Colors_4;
public Vector4 Colors_5;
public Vector4 Colors_6;
public Vector4 Colors_7;
public Vector4 Colors_8;
public Vector4 Colors_9;
public Vector4 Colors_10;
public Vector4 Colors_11;
public Vector4 Colors_12;
public Vector4 Colors_13;
public Vector4 Colors_14;
public Vector4 Colors_15;
public Vector4 Colors_16;
public Vector4 Colors_17;
public Vector4 Colors_18;
public Vector4 Colors_19;
public Vector4 Colors_20;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotColormap Colormap;
/// <summary>
/// To be documented.
/// </summary>
public byte UseLocalTime;
/// <summary>
/// To be documented.
/// </summary>
public byte UseISO8601;
/// <summary>
/// To be documented.
/// </summary>
public byte Use24HourClock;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Vector4* colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default)
{
LineWeight = lineWeight;
Marker = marker;
MarkerSize = markerSize;
MarkerWeight = markerWeight;
FillAlpha = fillAlpha;
ErrorBarSize = errorBarSize;
ErrorBarWeight = errorBarWeight;
DigitalBitHeight = digitalBitHeight;
DigitalBitGap = digitalBitGap;
PlotBorderSize = plotBorderSize;
MinorAlpha = minorAlpha;
MajorTickLen = majorTickLen;
MinorTickLen = minorTickLen;
MajorTickSize = majorTickSize;
MinorTickSize = minorTickSize;
MajorGridSize = majorGridSize;
MinorGridSize = minorGridSize;
PlotPadding = plotPadding;
LabelPadding = labelPadding;
LegendPadding = legendPadding;
LegendInnerPadding = legendInnerPadding;
LegendSpacing = legendSpacing;
MousePosPadding = mousePosPadding;
AnnotationPadding = annotationPadding;
FitPadding = fitPadding;
PlotDefaultSize = plotDefaultSize;
PlotMinSize = plotMinSize;
if (colors != default(Vector4*))
{
Colors_0 = colors[0];
Colors_1 = colors[1];
Colors_2 = colors[2];
Colors_3 = colors[3];
Colors_4 = colors[4];
Colors_5 = colors[5];
Colors_6 = colors[6];
Colors_7 = colors[7];
Colors_8 = colors[8];
Colors_9 = colors[9];
Colors_10 = colors[10];
Colors_11 = colors[11];
Colors_12 = colors[12];
Colors_13 = colors[13];
Colors_14 = colors[14];
Colors_15 = colors[15];
Colors_16 = colors[16];
Colors_17 = colors[17];
Colors_18 = colors[18];
Colors_19 = colors[19];
Colors_20 = colors[20];
}
Colormap = colormap;
UseLocalTime = useLocalTime ? (byte)1 : (byte)0;
UseISO8601 = useIso8601 ? (byte)1 : (byte)0;
Use24HourClock = use24HourClock ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Span<Vector4> colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default)
{
LineWeight = lineWeight;
Marker = marker;
MarkerSize = markerSize;
MarkerWeight = markerWeight;
FillAlpha = fillAlpha;
ErrorBarSize = errorBarSize;
ErrorBarWeight = errorBarWeight;
DigitalBitHeight = digitalBitHeight;
DigitalBitGap = digitalBitGap;
PlotBorderSize = plotBorderSize;
MinorAlpha = minorAlpha;
MajorTickLen = majorTickLen;
MinorTickLen = minorTickLen;
MajorTickSize = majorTickSize;
MinorTickSize = minorTickSize;
MajorGridSize = majorGridSize;
MinorGridSize = minorGridSize;
PlotPadding = plotPadding;
LabelPadding = labelPadding;
LegendPadding = legendPadding;
LegendInnerPadding = legendInnerPadding;
LegendSpacing = legendSpacing;
MousePosPadding = mousePosPadding;
AnnotationPadding = annotationPadding;
FitPadding = fitPadding;
PlotDefaultSize = plotDefaultSize;
PlotMinSize = plotMinSize;
if (colors != default(Span<Vector4>))
{
Colors_0 = colors[0];
Colors_1 = colors[1];
Colors_2 = colors[2];
Colors_3 = colors[3];
Colors_4 = colors[4];
Colors_5 = colors[5];
Colors_6 = colors[6];
Colors_7 = colors[7];
Colors_8 = colors[8];
Colors_9 = colors[9];
Colors_10 = colors[10];
Colors_11 = colors[11];
Colors_12 = colors[12];
Colors_13 = colors[13];
Colors_14 = colors[14];
Colors_15 = colors[15];
Colors_16 = colors[16];
Colors_17 = colors[17];
Colors_18 = colors[18];
Colors_19 = colors[19];
Colors_20 = colors[20];
}
Colormap = colormap;
UseLocalTime = useLocalTime ? (byte)1 : (byte)0;
UseISO8601 = useIso8601 ? (byte)1 : (byte)0;
Use24HourClock = use24HourClock ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Vector4> Colors
{
get
{
fixed (Vector4* p = &this.Colors_0)
{
return new Span<Vector4>(p, 21);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotStyle* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotStylePtr : IEquatable<ImPlotStylePtr>
{
public ImPlotStylePtr(ImPlotStyle* handle) { Handle = handle; }
public ImPlotStyle* Handle;
public bool IsNull => Handle == null;
public static ImPlotStylePtr Null => new ImPlotStylePtr(null);
public ImPlotStyle this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotStylePtr(ImPlotStyle* handle) => new ImPlotStylePtr(handle);
public static implicit operator ImPlotStyle*(ImPlotStylePtr handle) => handle.Handle;
public static bool operator ==(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle == right;
public static bool operator !=(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle != right;
public bool Equals(ImPlotStylePtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotStylePtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotStylePtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref float LineWeight => ref Unsafe.AsRef<float>(&Handle->LineWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref int Marker => ref Unsafe.AsRef<int>(&Handle->Marker);
/// <summary>
/// To be documented.
/// </summary>
public ref float MarkerSize => ref Unsafe.AsRef<float>(&Handle->MarkerSize);
/// <summary>
/// To be documented.
/// </summary>
public ref float MarkerWeight => ref Unsafe.AsRef<float>(&Handle->MarkerWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float FillAlpha => ref Unsafe.AsRef<float>(&Handle->FillAlpha);
/// <summary>
/// To be documented.
/// </summary>
public ref float ErrorBarSize => ref Unsafe.AsRef<float>(&Handle->ErrorBarSize);
/// <summary>
/// To be documented.
/// </summary>
public ref float ErrorBarWeight => ref Unsafe.AsRef<float>(&Handle->ErrorBarWeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float DigitalBitHeight => ref Unsafe.AsRef<float>(&Handle->DigitalBitHeight);
/// <summary>
/// To be documented.
/// </summary>
public ref float DigitalBitGap => ref Unsafe.AsRef<float>(&Handle->DigitalBitGap);
/// <summary>
/// To be documented.
/// </summary>
public ref float PlotBorderSize => ref Unsafe.AsRef<float>(&Handle->PlotBorderSize);
/// <summary>
/// To be documented.
/// </summary>
public ref float MinorAlpha => ref Unsafe.AsRef<float>(&Handle->MinorAlpha);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MajorTickLen => ref Unsafe.AsRef<Vector2>(&Handle->MajorTickLen);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MinorTickLen => ref Unsafe.AsRef<Vector2>(&Handle->MinorTickLen);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MajorTickSize => ref Unsafe.AsRef<Vector2>(&Handle->MajorTickSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MinorTickSize => ref Unsafe.AsRef<Vector2>(&Handle->MinorTickSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MajorGridSize => ref Unsafe.AsRef<Vector2>(&Handle->MajorGridSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MinorGridSize => ref Unsafe.AsRef<Vector2>(&Handle->MinorGridSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 PlotPadding => ref Unsafe.AsRef<Vector2>(&Handle->PlotPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LabelPadding => ref Unsafe.AsRef<Vector2>(&Handle->LabelPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LegendPadding => ref Unsafe.AsRef<Vector2>(&Handle->LegendPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LegendInnerPadding => ref Unsafe.AsRef<Vector2>(&Handle->LegendInnerPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LegendSpacing => ref Unsafe.AsRef<Vector2>(&Handle->LegendSpacing);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MousePosPadding => ref Unsafe.AsRef<Vector2>(&Handle->MousePosPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 AnnotationPadding => ref Unsafe.AsRef<Vector2>(&Handle->AnnotationPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 FitPadding => ref Unsafe.AsRef<Vector2>(&Handle->FitPadding);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 PlotDefaultSize => ref Unsafe.AsRef<Vector2>(&Handle->PlotDefaultSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 PlotMinSize => ref Unsafe.AsRef<Vector2>(&Handle->PlotMinSize);
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<Vector4> Colors
{
get
{
return new Span<Vector4>(&Handle->Colors_0, 21);
}
}
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotColormap Colormap => ref Unsafe.AsRef<ImPlotColormap>(&Handle->Colormap);
/// <summary>
/// To be documented.
/// </summary>
public ref bool UseLocalTime => ref Unsafe.AsRef<bool>(&Handle->UseLocalTime);
/// <summary>
/// To be documented.
/// </summary>
public ref bool UseISO8601 => ref Unsafe.AsRef<bool>(&Handle->UseISO8601);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Use24HourClock => ref Unsafe.AsRef<bool>(&Handle->Use24HourClock);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,331 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotSubplot
{
/// <summary>
/// To be documented.
/// </summary>
public uint ID;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotSubplotFlags Flags;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotSubplotFlags PreviousFlags;
/// <summary>
/// To be documented.
/// </summary>
public ImPlotItemGroup Items;
/// <summary>
/// To be documented.
/// </summary>
public int Rows;
/// <summary>
/// To be documented.
/// </summary>
public int Cols;
/// <summary>
/// To be documented.
/// </summary>
public int CurrentIdx;
/// <summary>
/// To be documented.
/// </summary>
public ImRect FrameRect;
/// <summary>
/// To be documented.
/// </summary>
public ImRect GridRect;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 CellSize;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotAlignmentData> RowAlignmentData;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotAlignmentData> ColAlignmentData;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<float> RowRatios;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<float> ColRatios;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotRange> RowLinkData;
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotRange> ColLinkData;
/// <summary>
/// To be documented.
/// </summary>
public float TempSizes_0;
public float TempSizes_1;
/// <summary>
/// To be documented.
/// </summary>
public byte FrameHovered;
/// <summary>
/// To be documented.
/// </summary>
public byte HasTitle;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector<ImPlotAlignmentData> rowAlignmentData = default, ImVector<ImPlotAlignmentData> colAlignmentData = default, ImVector<float> rowRatios = default, ImVector<float> colRatios = default, ImVector<ImPlotRange> rowLinkData = default, ImVector<ImPlotRange> colLinkData = default, float* tempSizes = default, bool frameHovered = default, bool hasTitle = default)
{
ID = id;
Flags = flags;
PreviousFlags = previousFlags;
Items = items;
Rows = rows;
Cols = cols;
CurrentIdx = currentIdx;
FrameRect = frameRect;
GridRect = gridRect;
CellSize = cellSize;
RowAlignmentData = rowAlignmentData;
ColAlignmentData = colAlignmentData;
RowRatios = rowRatios;
ColRatios = colRatios;
RowLinkData = rowLinkData;
ColLinkData = colLinkData;
if (tempSizes != default(float*))
{
TempSizes_0 = tempSizes[0];
TempSizes_1 = tempSizes[1];
}
FrameHovered = frameHovered ? (byte)1 : (byte)0;
HasTitle = hasTitle ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector<ImPlotAlignmentData> rowAlignmentData = default, ImVector<ImPlotAlignmentData> colAlignmentData = default, ImVector<float> rowRatios = default, ImVector<float> colRatios = default, ImVector<ImPlotRange> rowLinkData = default, ImVector<ImPlotRange> colLinkData = default, Span<float> tempSizes = default, bool frameHovered = default, bool hasTitle = default)
{
ID = id;
Flags = flags;
PreviousFlags = previousFlags;
Items = items;
Rows = rows;
Cols = cols;
CurrentIdx = currentIdx;
FrameRect = frameRect;
GridRect = gridRect;
CellSize = cellSize;
RowAlignmentData = rowAlignmentData;
ColAlignmentData = colAlignmentData;
RowRatios = rowRatios;
ColRatios = colRatios;
RowLinkData = rowLinkData;
ColLinkData = colLinkData;
if (tempSizes != default(Span<float>))
{
TempSizes_0 = tempSizes[0];
TempSizes_1 = tempSizes[1];
}
FrameHovered = frameHovered ? (byte)1 : (byte)0;
HasTitle = hasTitle ? (byte)1 : (byte)0;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotSubplot* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotSubplotPtr : IEquatable<ImPlotSubplotPtr>
{
public ImPlotSubplotPtr(ImPlotSubplot* handle) { Handle = handle; }
public ImPlotSubplot* Handle;
public bool IsNull => Handle == null;
public static ImPlotSubplotPtr Null => new ImPlotSubplotPtr(null);
public ImPlotSubplot this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotSubplotPtr(ImPlotSubplot* handle) => new ImPlotSubplotPtr(handle);
public static implicit operator ImPlotSubplot*(ImPlotSubplotPtr handle) => handle.Handle;
public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle == right;
public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle != right;
public bool Equals(ImPlotSubplotPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotSubplotPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotSubplotPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotSubplotFlags Flags => ref Unsafe.AsRef<ImPlotSubplotFlags>(&Handle->Flags);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotSubplotFlags PreviousFlags => ref Unsafe.AsRef<ImPlotSubplotFlags>(&Handle->PreviousFlags);
/// <summary>
/// To be documented.
/// </summary>
public ref ImPlotItemGroup Items => ref Unsafe.AsRef<ImPlotItemGroup>(&Handle->Items);
/// <summary>
/// To be documented.
/// </summary>
public ref int Rows => ref Unsafe.AsRef<int>(&Handle->Rows);
/// <summary>
/// To be documented.
/// </summary>
public ref int Cols => ref Unsafe.AsRef<int>(&Handle->Cols);
/// <summary>
/// To be documented.
/// </summary>
public ref int CurrentIdx => ref Unsafe.AsRef<int>(&Handle->CurrentIdx);
/// <summary>
/// To be documented.
/// </summary>
public ref ImRect FrameRect => ref Unsafe.AsRef<ImRect>(&Handle->FrameRect);
/// <summary>
/// To be documented.
/// </summary>
public ref ImRect GridRect => ref Unsafe.AsRef<ImRect>(&Handle->GridRect);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 CellSize => ref Unsafe.AsRef<Vector2>(&Handle->CellSize);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotAlignmentData> RowAlignmentData => ref Unsafe.AsRef<ImVector<ImPlotAlignmentData>>(&Handle->RowAlignmentData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotAlignmentData> ColAlignmentData => ref Unsafe.AsRef<ImVector<ImPlotAlignmentData>>(&Handle->ColAlignmentData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<float> RowRatios => ref Unsafe.AsRef<ImVector<float>>(&Handle->RowRatios);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<float> ColRatios => ref Unsafe.AsRef<ImVector<float>>(&Handle->ColRatios);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotRange> RowLinkData => ref Unsafe.AsRef<ImVector<ImPlotRange>>(&Handle->RowLinkData);
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotRange> ColLinkData => ref Unsafe.AsRef<ImVector<ImPlotRange>>(&Handle->ColLinkData);
/// <summary>
/// To be documented.
/// </summary>
public unsafe Span<float> TempSizes
{
get
{
return new Span<float>(&Handle->TempSizes_0, 2);
}
}
/// <summary>
/// To be documented.
/// </summary>
public ref bool FrameHovered => ref Unsafe.AsRef<bool>(&Handle->FrameHovered);
/// <summary>
/// To be documented.
/// </summary>
public ref bool HasTitle => ref Unsafe.AsRef<bool>(&Handle->HasTitle);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,130 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotTag
{
/// <summary>
/// To be documented.
/// </summary>
public ImAxis Axis;
/// <summary>
/// To be documented.
/// </summary>
public double Value;
/// <summary>
/// To be documented.
/// </summary>
public uint ColorBg;
/// <summary>
/// To be documented.
/// </summary>
public uint ColorFg;
/// <summary>
/// To be documented.
/// </summary>
public int TextOffset;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTag(ImAxis axis = default, double value = default, uint colorBg = default, uint colorFg = default, int textOffset = default)
{
Axis = axis;
Value = value;
ColorBg = colorBg;
ColorFg = colorFg;
TextOffset = textOffset;
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotTagPtr : IEquatable<ImPlotTagPtr>
{
public ImPlotTagPtr(ImPlotTag* handle) { Handle = handle; }
public ImPlotTag* Handle;
public bool IsNull => Handle == null;
public static ImPlotTagPtr Null => new ImPlotTagPtr(null);
public ImPlotTag this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotTagPtr(ImPlotTag* handle) => new ImPlotTagPtr(handle);
public static implicit operator ImPlotTag*(ImPlotTagPtr handle) => handle.Handle;
public static bool operator ==(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotTagPtr left, ImPlotTag* right) => left.Handle == right;
public static bool operator !=(ImPlotTagPtr left, ImPlotTag* right) => left.Handle != right;
public bool Equals(ImPlotTagPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotTagPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotTagPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImAxis Axis => ref Unsafe.AsRef<ImAxis>(&Handle->Axis);
/// <summary>
/// To be documented.
/// </summary>
public ref double Value => ref Unsafe.AsRef<double>(&Handle->Value);
/// <summary>
/// To be documented.
/// </summary>
public ref uint ColorBg => ref Unsafe.AsRef<uint>(&Handle->ColorBg);
/// <summary>
/// To be documented.
/// </summary>
public ref uint ColorFg => ref Unsafe.AsRef<uint>(&Handle->ColorFg);
/// <summary>
/// To be documented.
/// </summary>
public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset);
}
}

View file

@ -0,0 +1,450 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotTagCollection
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotTag> Tags;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer TextBuffer;
/// <summary>
/// To be documented.
/// </summary>
public int Size;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTagCollection(ImVector<ImPlotTag> tags = default, ImGuiTextBuffer textBuffer = default, int size = default)
{
Tags = tags;
TextBuffer = textBuffer;
Size = size;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt)
{
fixed (ImPlotTagCollection* @this = &this)
{
ImPlot.AppendNative(@this, axis, value, bg, fg, fmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt)
{
fixed (ImPlotTagCollection* @this = &this)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt)
{
fixed (ImPlotTagCollection* @this = &this)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, string fmt)
{
fixed (ImPlotTagCollection* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendNative(@this, axis, value, bg, fg, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args)
{
fixed (ImPlotTagCollection* @this = &this)
{
ImPlot.AppendVNative(@this, axis, value, bg, fg, fmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args)
{
fixed (ImPlotTagCollection* @this = &this)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args)
{
fixed (ImPlotTagCollection* @this = &this)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args)
{
fixed (ImPlotTagCollection* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendVNative(@this, axis, value, bg, fg, pStr0, args);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotTagCollection* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
fixed (ImPlotTagCollection* @this = &this)
{
byte* ret = ImPlot.GetTextNative(@this, idx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
fixed (ImPlotTagCollection* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotTagCollection* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotTagCollectionPtr : IEquatable<ImPlotTagCollectionPtr>
{
public ImPlotTagCollectionPtr(ImPlotTagCollection* handle) { Handle = handle; }
public ImPlotTagCollection* Handle;
public bool IsNull => Handle == null;
public static ImPlotTagCollectionPtr Null => new ImPlotTagCollectionPtr(null);
public ImPlotTagCollection this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotTagCollectionPtr(ImPlotTagCollection* handle) => new ImPlotTagCollectionPtr(handle);
public static implicit operator ImPlotTagCollection*(ImPlotTagCollectionPtr handle) => handle.Handle;
public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle == right;
public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle != right;
public bool Equals(ImPlotTagCollectionPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotTagCollectionPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotTagCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotTag> Tags => ref Unsafe.AsRef<ImVector<ImPlotTag>>(&Handle->Tags);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer);
/// <summary>
/// To be documented.
/// </summary>
public ref int Size => ref Unsafe.AsRef<int>(&Handle->Size);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt)
{
ImPlot.AppendNative(Handle, axis, value, bg, fg, fmt);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, string fmt)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendNative(Handle, axis, value, bg, fg, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args)
{
ImPlot.AppendVNative(Handle, axis, value, bg, fg, fmt, args);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args)
{
fixed (byte* pfmt = &fmt)
{
ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args)
{
fixed (byte* pfmt = fmt)
{
ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (fmt != null)
{
pStrSize0 = Utils.GetByteCountUTF8(fmt);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlot.AppendVNative(Handle, axis, value, bg, fg, pStr0, args);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
byte* ret = ImPlot.GetTextNative(Handle, idx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
}
}

View file

@ -0,0 +1,179 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotTick
{
/// <summary>
/// To be documented.
/// </summary>
public double PlotPos;
/// <summary>
/// To be documented.
/// </summary>
public float PixelPos;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LabelSize;
/// <summary>
/// To be documented.
/// </summary>
public int TextOffset;
/// <summary>
/// To be documented.
/// </summary>
public byte Major;
/// <summary>
/// To be documented.
/// </summary>
public byte ShowLabel;
/// <summary>
/// To be documented.
/// </summary>
public int Level;
/// <summary>
/// To be documented.
/// </summary>
public int Idx;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick(double plotPos = default, float pixelPos = default, Vector2 labelSize = default, int textOffset = default, bool major = default, bool showLabel = default, int level = default, int idx = default)
{
PlotPos = plotPos;
PixelPos = pixelPos;
LabelSize = labelSize;
TextOffset = textOffset;
Major = major ? (byte)1 : (byte)0;
ShowLabel = showLabel ? (byte)1 : (byte)0;
Level = level;
Idx = idx;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotTick* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotTickPtr : IEquatable<ImPlotTickPtr>
{
public ImPlotTickPtr(ImPlotTick* handle) { Handle = handle; }
public ImPlotTick* Handle;
public bool IsNull => Handle == null;
public static ImPlotTickPtr Null => new ImPlotTickPtr(null);
public ImPlotTick this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotTickPtr(ImPlotTick* handle) => new ImPlotTickPtr(handle);
public static implicit operator ImPlotTick*(ImPlotTickPtr handle) => handle.Handle;
public static bool operator ==(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotTickPtr left, ImPlotTick* right) => left.Handle == right;
public static bool operator !=(ImPlotTickPtr left, ImPlotTick* right) => left.Handle != right;
public bool Equals(ImPlotTickPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotTickPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotTickPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref double PlotPos => ref Unsafe.AsRef<double>(&Handle->PlotPos);
/// <summary>
/// To be documented.
/// </summary>
public ref float PixelPos => ref Unsafe.AsRef<float>(&Handle->PixelPos);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LabelSize => ref Unsafe.AsRef<Vector2>(&Handle->LabelSize);
/// <summary>
/// To be documented.
/// </summary>
public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset);
/// <summary>
/// To be documented.
/// </summary>
public ref bool Major => ref Unsafe.AsRef<bool>(&Handle->Major);
/// <summary>
/// To be documented.
/// </summary>
public ref bool ShowLabel => ref Unsafe.AsRef<bool>(&Handle->ShowLabel);
/// <summary>
/// To be documented.
/// </summary>
public ref int Level => ref Unsafe.AsRef<int>(&Handle->Level);
/// <summary>
/// To be documented.
/// </summary>
public ref int Idx => ref Unsafe.AsRef<int>(&Handle->Idx);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
}
}

View file

@ -0,0 +1,472 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotTicker
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotTick> Ticks;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiTextBuffer TextBuffer;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 MaxSize;
/// <summary>
/// To be documented.
/// </summary>
public Vector2 LateSize;
/// <summary>
/// To be documented.
/// </summary>
public int Levels;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTicker(ImVector<ImPlotTick> ticks = default, ImGuiTextBuffer textBuffer = default, Vector2 maxSize = default, Vector2 lateSize = default, int levels = default)
{
Ticks = ticks;
TextBuffer = textBuffer;
MaxSize = maxSize;
LateSize = lateSize;
Levels = levels;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label)
{
fixed (ImPlotTicker* @this = &this)
{
ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label)
{
fixed (ImPlotTicker* @this = &this)
{
fixed (byte* plabel = &label)
{
ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label)
{
fixed (ImPlotTicker* @this = &this)
{
fixed (byte* plabel = label)
{
ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, string label)
{
fixed (ImPlotTicker* @this = &this)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data)
{
fixed (ImPlotTicker* @this = &this)
{
ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(ImPlotTick tick)
{
fixed (ImPlotTicker* @this = &this)
{
ImPlotTick* ret = ImPlot.AddTickNative(@this, tick);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotTicker* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
fixed (ImPlotTicker* @this = &this)
{
byte* ret = ImPlot.GetTextNative(@this, idx);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
fixed (ImPlotTicker* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(ImPlotTick tick)
{
fixed (ImPlotTicker* @this = &this)
{
byte* ret = ImPlot.GetTextNative(@this, tick);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(ImPlotTick tick)
{
fixed (ImPlotTicker* @this = &this)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, tick));
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void OverrideSizeLate(Vector2 size)
{
fixed (ImPlotTicker* @this = &this)
{
ImPlot.OverrideSizeLateNative(@this, size);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
fixed (ImPlotTicker* @this = &this)
{
ImPlot.ResetNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int TickCount()
{
fixed (ImPlotTicker* @this = &this)
{
int ret = ImPlot.TickCountNative(@this);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotTickerPtr : IEquatable<ImPlotTickerPtr>
{
public ImPlotTickerPtr(ImPlotTicker* handle) { Handle = handle; }
public ImPlotTicker* Handle;
public bool IsNull => Handle == null;
public static ImPlotTickerPtr Null => new ImPlotTickerPtr(null);
public ImPlotTicker this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotTickerPtr(ImPlotTicker* handle) => new ImPlotTickerPtr(handle);
public static implicit operator ImPlotTicker*(ImPlotTickerPtr handle) => handle.Handle;
public static bool operator ==(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle == right;
public static bool operator !=(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle != right;
public bool Equals(ImPlotTickerPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotTickerPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotTickerPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref ImVector<ImPlotTick> Ticks => ref Unsafe.AsRef<ImVector<ImPlotTick>>(&Handle->Ticks);
/// <summary>
/// To be documented.
/// </summary>
public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 MaxSize => ref Unsafe.AsRef<Vector2>(&Handle->MaxSize);
/// <summary>
/// To be documented.
/// </summary>
public ref Vector2 LateSize => ref Unsafe.AsRef<Vector2>(&Handle->LateSize);
/// <summary>
/// To be documented.
/// </summary>
public ref int Levels => ref Unsafe.AsRef<int>(&Handle->Levels);
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label)
{
ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label)
{
fixed (byte* plabel = &label)
{
ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label)
{
fixed (byte* plabel = label)
{
ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel);
return ret;
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, string label)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (label != null)
{
pStrSize0 = Utils.GetByteCountUTF8(label);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data)
{
ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTick* AddTick(ImPlotTick tick)
{
ImPlotTick* ret = ImPlot.AddTickNative(Handle, tick);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(int idx)
{
byte* ret = ImPlot.GetTextNative(Handle, idx);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(int idx)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe byte* GetText(ImPlotTick tick)
{
byte* ret = ImPlot.GetTextNative(Handle, tick);
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe string GetTextS(ImPlotTick tick)
{
string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, tick));
return ret;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void OverrideSizeLate(Vector2 size)
{
ImPlot.OverrideSizeLateNative(Handle, size);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Reset()
{
ImPlot.ResetNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe int TickCount()
{
int ret = ImPlot.TickCountNative(Handle);
return ret;
}
}
}

View file

@ -0,0 +1,178 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPlotTime
{
/// <summary>
/// To be documented.
/// </summary>
public long S;
/// <summary>
/// To be documented.
/// </summary>
public int Us;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPlotTime(long s = default, int us = default)
{
S = s;
Us = us;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImPlotTime* @this = &this)
{
ImPlot.DestroyNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void FromDouble(double t)
{
fixed (ImPlotTime* @this = &this)
{
ImPlot.FromDoubleNative(@this, t);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void RollOver()
{
fixed (ImPlotTime* @this = &this)
{
ImPlot.RollOverNative(@this);
}
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe double ToDouble()
{
fixed (ImPlotTime* @this = &this)
{
double ret = ImPlot.ToDoubleNative(@this);
return ret;
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImPlotTimePtr : IEquatable<ImPlotTimePtr>
{
public ImPlotTimePtr(ImPlotTime* handle) { Handle = handle; }
public ImPlotTime* Handle;
public bool IsNull => Handle == null;
public static ImPlotTimePtr Null => new ImPlotTimePtr(null);
public ImPlotTime this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImPlotTimePtr(ImPlotTime* handle) => new ImPlotTimePtr(handle);
public static implicit operator ImPlotTime*(ImPlotTimePtr handle) => handle.Handle;
public static bool operator ==(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle == right.Handle;
public static bool operator !=(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle != right.Handle;
public static bool operator ==(ImPlotTimePtr left, ImPlotTime* right) => left.Handle == right;
public static bool operator !=(ImPlotTimePtr left, ImPlotTime* right) => left.Handle != right;
public bool Equals(ImPlotTimePtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImPlotTimePtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImPlotTimePtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref long S => ref Unsafe.AsRef<long>(&Handle->S);
/// <summary>
/// To be documented.
/// </summary>
public ref int Us => ref Unsafe.AsRef<int>(&Handle->Us);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImPlot.DestroyNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void FromDouble(double t)
{
ImPlot.FromDoubleNative(Handle, t);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void RollOver()
{
ImPlot.RollOverNative(Handle);
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe double ToDouble()
{
double ret = ImPlot.ToDoubleNative(Handle);
return ret;
}
}
}

View file

@ -0,0 +1,61 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPoolImPlotAlignmentData
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotAlignmentData> Buf;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiStorage Map;
/// <summary>
/// To be documented.
/// </summary>
public int FreeIdx;
/// <summary>
/// To be documented.
/// </summary>
public int AliveCount;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPoolImPlotAlignmentData(ImVector<ImPlotAlignmentData> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default)
{
Buf = buf;
Map = map;
FreeIdx = freeIdx;
AliveCount = aliveCount;
}
}
}

View file

@ -0,0 +1,61 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPoolImPlotItem
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotItem> Buf;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiStorage Map;
/// <summary>
/// To be documented.
/// </summary>
public int FreeIdx;
/// <summary>
/// To be documented.
/// </summary>
public int AliveCount;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPoolImPlotItem(ImVector<ImPlotItem> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default)
{
Buf = buf;
Map = map;
FreeIdx = freeIdx;
AliveCount = aliveCount;
}
}
}

View file

@ -0,0 +1,61 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPoolImPlotPlot
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotPlot> Buf;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiStorage Map;
/// <summary>
/// To be documented.
/// </summary>
public int FreeIdx;
/// <summary>
/// To be documented.
/// </summary>
public int AliveCount;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPoolImPlotPlot(ImVector<ImPlotPlot> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default)
{
Buf = buf;
Map = map;
FreeIdx = freeIdx;
AliveCount = aliveCount;
}
}
}

View file

@ -0,0 +1,61 @@
// ------------------------------------------------------------------------------
// <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.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
using Dalamud.Bindings.ImGui;
namespace Dalamud.Bindings.ImPlot
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImPoolImPlotSubplot
{
/// <summary>
/// To be documented.
/// </summary>
public ImVector<ImPlotSubplot> Buf;
/// <summary>
/// To be documented.
/// </summary>
public ImGuiStorage Map;
/// <summary>
/// To be documented.
/// </summary>
public int FreeIdx;
/// <summary>
/// To be documented.
/// </summary>
public int AliveCount;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImPoolImPlotSubplot(ImVector<ImPlotSubplot> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default)
{
Buf = buf;
Map = map;
FreeIdx = freeIdx;
AliveCount = aliveCount;
}
}
}