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