// ------------------------------------------------------------------------------ // // 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 { /// /// sizeof() ~ 16
///
[StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnSettings { /// /// To be documented. /// public float WidthOrWeight; /// /// To be documented. /// public uint UserID; /// /// To be documented. /// public sbyte Index; /// /// To be documented. /// public sbyte DisplayOrder; /// /// To be documented. /// public sbyte SortOrder; /// /// To be documented. /// public byte SortDirection; /// /// To be documented. /// public byte IsEnabled; /// /// To be documented. /// public byte IsStretch; /// /// To be documented. /// public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) { WidthOrWeight = widthOrWeight; UserID = userId; Index = index; DisplayOrder = displayOrder; SortOrder = sortOrder; SortDirection = sortDirection; IsEnabled = isEnabled; IsStretch = isStretch; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImGuiTableColumnSettings* @this = &this) { ImGui.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImGuiTableColumnSettingsPtr : IEquatable { public ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) { Handle = handle; } public ImGuiTableColumnSettings* Handle; public bool IsNull => Handle == null; public static ImGuiTableColumnSettingsPtr Null => new ImGuiTableColumnSettingsPtr(null); public ImGuiTableColumnSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } public static implicit operator ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) => new ImGuiTableColumnSettingsPtr(handle); public static implicit operator ImGuiTableColumnSettings*(ImGuiTableColumnSettingsPtr handle) => handle.Handle; public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle == right.Handle; public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle != right.Handle; public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle == right; public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle != right; public bool Equals(ImGuiTableColumnSettingsPtr other) => Handle == other.Handle; /// public override bool Equals(object obj) => obj is ImGuiTableColumnSettingsPtr handle && Equals(handle); /// public override int GetHashCode() => ((nuint)Handle).GetHashCode(); #if NET5_0_OR_GREATER private string DebuggerDisplay => string.Format("ImGuiTableColumnSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); #endif /// /// To be documented. /// public ref float WidthOrWeight => ref Unsafe.AsRef(&Handle->WidthOrWeight); /// /// To be documented. /// public ref uint UserID => ref Unsafe.AsRef(&Handle->UserID); /// /// To be documented. /// public ref sbyte Index => ref Unsafe.AsRef(&Handle->Index); /// /// To be documented. /// public ref sbyte DisplayOrder => ref Unsafe.AsRef(&Handle->DisplayOrder); /// /// To be documented. /// public ref sbyte SortOrder => ref Unsafe.AsRef(&Handle->SortOrder); /// /// To be documented. /// public ref byte SortDirection => ref Unsafe.AsRef(&Handle->SortDirection); /// /// To be documented. /// public ref byte IsEnabled => ref Unsafe.AsRef(&Handle->IsEnabled); /// /// To be documented. /// public ref byte IsStretch => ref Unsafe.AsRef(&Handle->IsStretch); /// /// To be documented. /// public unsafe void Destroy() { ImGui.DestroyNative(Handle); } } }