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