// ------------------------------------------------------------------------------ // // 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 ImPlotTime { /// /// To be documented. /// public long S; /// /// To be documented. /// public int Us; /// /// To be documented. /// public unsafe ImPlotTime(long s = default, int us = default) { S = s; Us = us; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImPlotTime* @this = &this) { ImPlot.DestroyNative(@this); } } /// /// To be documented. /// public unsafe void FromDouble(double t) { fixed (ImPlotTime* @this = &this) { ImPlot.FromDoubleNative(@this, t); } } /// /// To be documented. /// public unsafe void RollOver() { fixed (ImPlotTime* @this = &this) { ImPlot.RollOverNative(@this); } } /// /// To be documented. /// public unsafe double ToDouble() { fixed (ImPlotTime* @this = &this) { double ret = ImPlot.ToDoubleNative(@this); return ret; } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImPlotTimePtr : IEquatable { 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; /// public override bool Equals(object obj) => obj is ImPlotTimePtr handle && Equals(handle); /// 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 /// /// To be documented. /// public ref long S => ref Unsafe.AsRef(&Handle->S); /// /// To be documented. /// public ref int Us => ref Unsafe.AsRef(&Handle->Us); /// /// To be documented. /// public unsafe void Destroy() { ImPlot.DestroyNative(Handle); } /// /// To be documented. /// public unsafe void FromDouble(double t) { ImPlot.FromDoubleNative(Handle, t); } /// /// To be documented. /// public unsafe void RollOver() { ImPlot.RollOverNative(Handle); } /// /// To be documented. /// public unsafe double ToDouble() { double ret = ImPlot.ToDoubleNative(Handle); return ret; } } }