// ------------------------------------------------------------------------------ // // 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 ImPlotPointError { /// /// To be documented. /// public double X; /// /// To be documented. /// public double Y; /// /// To be documented. /// public double Neg; /// /// To be documented. /// public double Pos; /// /// To be documented. /// public unsafe ImPlotPointError(double x = default, double y = default, double neg = default, double pos = default) { X = x; Y = y; Neg = neg; Pos = pos; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImPlotPointError* @this = &this) { ImPlot.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImPlotPointErrorPtr : IEquatable { 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; /// public override bool Equals(object obj) => obj is ImPlotPointErrorPtr handle && Equals(handle); /// 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 /// /// To be documented. /// public ref double X => ref Unsafe.AsRef(&Handle->X); /// /// To be documented. /// public ref double Y => ref Unsafe.AsRef(&Handle->Y); /// /// To be documented. /// public ref double Neg => ref Unsafe.AsRef(&Handle->Neg); /// /// To be documented. /// public ref double Pos => ref Unsafe.AsRef(&Handle->Pos); /// /// To be documented. /// public unsafe void Destroy() { ImPlot.DestroyNative(Handle); } } }