// ------------------------------------------------------------------------------ // // 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 ImGuiTableTempData { /// /// To be documented. /// public int TableIndex; /// /// To be documented. /// public float LastTimeActive; /// /// To be documented. /// public Vector2 UserOuterSize; /// /// To be documented. /// public ImDrawListSplitter DrawSplitter; /// /// To be documented. /// public ImRect HostBackupWorkRect; /// /// To be documented. /// public ImRect HostBackupParentWorkRect; /// /// To be documented. /// public Vector2 HostBackupPrevLineSize; /// /// To be documented. /// public Vector2 HostBackupCurrLineSize; /// /// To be documented. /// public Vector2 HostBackupCursorMaxPos; /// /// To be documented. /// public ImVec1 HostBackupColumnsOffset; /// /// To be documented. /// public float HostBackupItemWidth; /// /// To be documented. /// public int HostBackupItemWidthStackSize; /// /// To be documented. /// public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) { TableIndex = tableIndex; LastTimeActive = lastTimeActive; UserOuterSize = userOuterSize; DrawSplitter = drawSplitter; HostBackupWorkRect = hostBackupWorkRect; HostBackupParentWorkRect = hostBackupParentWorkRect; HostBackupPrevLineSize = hostBackupPrevLineSize; HostBackupCurrLineSize = hostBackupCurrLineSize; HostBackupCursorMaxPos = hostBackupCursorMaxPos; HostBackupColumnsOffset = hostBackupColumnsOffset; HostBackupItemWidth = hostBackupItemWidth; HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImGuiTableTempData* @this = &this) { ImGui.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImGuiTableTempDataPtr : IEquatable { public ImGuiTableTempDataPtr(ImGuiTableTempData* handle) { Handle = handle; } public ImGuiTableTempData* Handle; public bool IsNull => Handle == null; public static ImGuiTableTempDataPtr Null => new ImGuiTableTempDataPtr(null); public ImGuiTableTempData this[int index] { get => Handle[index]; set => Handle[index] = value; } public static implicit operator ImGuiTableTempDataPtr(ImGuiTableTempData* handle) => new ImGuiTableTempDataPtr(handle); public static implicit operator ImGuiTableTempData*(ImGuiTableTempDataPtr handle) => handle.Handle; public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle == right.Handle; public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle != right.Handle; public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle == right; public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle != right; public bool Equals(ImGuiTableTempDataPtr other) => Handle == other.Handle; /// public override bool Equals(object obj) => obj is ImGuiTableTempDataPtr handle && Equals(handle); /// public override int GetHashCode() => ((nuint)Handle).GetHashCode(); #if NET5_0_OR_GREATER private string DebuggerDisplay => string.Format("ImGuiTableTempDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); #endif /// /// To be documented. /// public ref int TableIndex => ref Unsafe.AsRef(&Handle->TableIndex); /// /// To be documented. /// public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive); /// /// To be documented. /// public ref Vector2 UserOuterSize => ref Unsafe.AsRef(&Handle->UserOuterSize); /// /// To be documented. /// public ref ImDrawListSplitter DrawSplitter => ref Unsafe.AsRef(&Handle->DrawSplitter); /// /// To be documented. /// public ref ImRect HostBackupWorkRect => ref Unsafe.AsRef(&Handle->HostBackupWorkRect); /// /// To be documented. /// public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect); /// /// To be documented. /// public ref Vector2 HostBackupPrevLineSize => ref Unsafe.AsRef(&Handle->HostBackupPrevLineSize); /// /// To be documented. /// public ref Vector2 HostBackupCurrLineSize => ref Unsafe.AsRef(&Handle->HostBackupCurrLineSize); /// /// To be documented. /// public ref Vector2 HostBackupCursorMaxPos => ref Unsafe.AsRef(&Handle->HostBackupCursorMaxPos); /// /// To be documented. /// public ref ImVec1 HostBackupColumnsOffset => ref Unsafe.AsRef(&Handle->HostBackupColumnsOffset); /// /// To be documented. /// public ref float HostBackupItemWidth => ref Unsafe.AsRef(&Handle->HostBackupItemWidth); /// /// To be documented. /// public ref int HostBackupItemWidthStackSize => ref Unsafe.AsRef(&Handle->HostBackupItemWidthStackSize); /// /// To be documented. /// public unsafe void Destroy() { ImGui.DestroyNative(Handle); } } }