// ------------------------------------------------------------------------------ // // 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; namespace Dalamud.Bindings.ImGui { /// /// To be documented. /// [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiOnceUponAFrame { /// /// To be documented. /// public int RefFrame; /// /// To be documented. /// public unsafe ImGuiOnceUponAFrame(int refFrame = default) { RefFrame = refFrame; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImGuiOnceUponAFrame* @this = &this) { ImGui.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImGuiOnceUponAFramePtr : IEquatable { public ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) { Handle = handle; } public ImGuiOnceUponAFrame* Handle; public bool IsNull => Handle == null; public static ImGuiOnceUponAFramePtr Null => new ImGuiOnceUponAFramePtr(null); public ImGuiOnceUponAFrame this[int index] { get => Handle[index]; set => Handle[index] = value; } public static implicit operator ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) => new ImGuiOnceUponAFramePtr(handle); public static implicit operator ImGuiOnceUponAFrame*(ImGuiOnceUponAFramePtr handle) => handle.Handle; public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle == right.Handle; public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle != right.Handle; public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle == right; public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle != right; public bool Equals(ImGuiOnceUponAFramePtr other) => Handle == other.Handle; /// public override bool Equals(object obj) => obj is ImGuiOnceUponAFramePtr handle && Equals(handle); /// public override int GetHashCode() => ((nuint)Handle).GetHashCode(); #if NET5_0_OR_GREATER private string DebuggerDisplay => string.Format("ImGuiOnceUponAFramePtr [0x{0}]", ((nuint)Handle).ToString("X")); #endif /// /// To be documented. /// public ref int RefFrame => ref Unsafe.AsRef(&Handle->RefFrame); /// /// To be documented. /// public unsafe void Destroy() { ImGui.DestroyNative(Handle); } } }