// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ 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 { /// /// To be documented. /// [StructLayout(LayoutKind.Sequential)] public partial struct ImPlotAlignmentData { /// /// To be documented. /// public byte Vertical; /// /// To be documented. /// public float PadA; /// /// To be documented. /// public float PadB; /// /// To be documented. /// public float PadAMax; /// /// To be documented. /// public float PadBMax; /// /// To be documented. /// 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; } /// /// To be documented. /// public unsafe void Begin() { fixed (ImPlotAlignmentData* @this = &this) { ImPlot.BeginNative(@this); } } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImPlotAlignmentData* @this = &this) { ImPlot.DestroyNative(@this); } } /// /// To be documented. /// public unsafe void End() { fixed (ImPlotAlignmentData* @this = &this) { ImPlot.EndNative(@this); } } /// /// To be documented. /// public unsafe void Reset() { fixed (ImPlotAlignmentData* @this = &this) { ImPlot.ResetNative(@this); } } /// /// To be documented. /// public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) { fixed (ImPlotAlignmentData* @this = &this) { ImPlot.UpdateNative(@this, padA, padB, deltaA, deltaB); } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } } /// /// To be documented. /// 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); } } } } } /// /// To be documented. /// 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); } } } } } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImPlotAlignmentDataPtr : IEquatable { 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; /// public override bool Equals(object obj) => obj is ImPlotAlignmentDataPtr handle && Equals(handle); /// 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 /// /// To be documented. /// public ref bool Vertical => ref Unsafe.AsRef(&Handle->Vertical); /// /// To be documented. /// public ref float PadA => ref Unsafe.AsRef(&Handle->PadA); /// /// To be documented. /// public ref float PadB => ref Unsafe.AsRef(&Handle->PadB); /// /// To be documented. /// public ref float PadAMax => ref Unsafe.AsRef(&Handle->PadAMax); /// /// To be documented. /// public ref float PadBMax => ref Unsafe.AsRef(&Handle->PadBMax); /// /// To be documented. /// public unsafe void Begin() { ImPlot.BeginNative(Handle); } /// /// To be documented. /// public unsafe void Destroy() { ImPlot.DestroyNative(Handle); } /// /// To be documented. /// public unsafe void End() { ImPlot.EndNative(Handle); } /// /// To be documented. /// public unsafe void Reset() { ImPlot.ResetNative(Handle); } /// /// To be documented. /// public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) { ImPlot.UpdateNative(Handle, padA, padB, deltaA, deltaB); } /// /// To be documented. /// 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); } } /// /// To be documented. /// 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); } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } /// /// To be documented. /// 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); } } } } } } }