// ------------------------------------------------------------------------------
//
// 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 ImGuiMetricsConfig
{
///
/// To be documented.
///
public byte ShowDebugLog;
///
/// To be documented.
///
public byte ShowStackTool;
///
/// To be documented.
///
public byte ShowWindowsRects;
///
/// To be documented.
///
public byte ShowWindowsBeginOrder;
///
/// To be documented.
///
public byte ShowTablesRects;
///
/// To be documented.
///
public byte ShowDrawCmdMesh;
///
/// To be documented.
///
public byte ShowDrawCmdBoundingBoxes;
///
/// To be documented.
///
public byte ShowDockingNodes;
///
/// To be documented.
///
public int ShowWindowsRectsType;
///
/// To be documented.
///
public int ShowTablesRectsType;
///
/// To be documented.
///
public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default)
{
ShowDebugLog = showDebugLog ? (byte)1 : (byte)0;
ShowStackTool = showStackTool ? (byte)1 : (byte)0;
ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0;
ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0;
ShowTablesRects = showTablesRects ? (byte)1 : (byte)0;
ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0;
ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0;
ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0;
ShowWindowsRectsType = showWindowsRectsType;
ShowTablesRectsType = showTablesRectsType;
}
///
/// To be documented.
///
public unsafe void Destroy()
{
fixed (ImGuiMetricsConfig* @this = &this)
{
ImGui.DestroyNative(@this);
}
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiMetricsConfigPtr : IEquatable
{
public ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) { Handle = handle; }
public ImGuiMetricsConfig* Handle;
public bool IsNull => Handle == null;
public static ImGuiMetricsConfigPtr Null => new ImGuiMetricsConfigPtr(null);
public ImGuiMetricsConfig this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) => new ImGuiMetricsConfigPtr(handle);
public static implicit operator ImGuiMetricsConfig*(ImGuiMetricsConfigPtr handle) => handle.Handle;
public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle == right;
public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle != right;
public bool Equals(ImGuiMetricsConfigPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiMetricsConfigPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiMetricsConfigPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public ref bool ShowDebugLog => ref Unsafe.AsRef(&Handle->ShowDebugLog);
///
/// To be documented.
///
public ref bool ShowStackTool => ref Unsafe.AsRef(&Handle->ShowStackTool);
///
/// To be documented.
///
public ref bool ShowWindowsRects => ref Unsafe.AsRef(&Handle->ShowWindowsRects);
///
/// To be documented.
///
public ref bool ShowWindowsBeginOrder => ref Unsafe.AsRef(&Handle->ShowWindowsBeginOrder);
///
/// To be documented.
///
public ref bool ShowTablesRects => ref Unsafe.AsRef(&Handle->ShowTablesRects);
///
/// To be documented.
///
public ref bool ShowDrawCmdMesh => ref Unsafe.AsRef(&Handle->ShowDrawCmdMesh);
///
/// To be documented.
///
public ref bool ShowDrawCmdBoundingBoxes => ref Unsafe.AsRef(&Handle->ShowDrawCmdBoundingBoxes);
///
/// To be documented.
///
public ref bool ShowDockingNodes => ref Unsafe.AsRef(&Handle->ShowDockingNodes);
///
/// To be documented.
///
public ref int ShowWindowsRectsType => ref Unsafe.AsRef(&Handle->ShowWindowsRectsType);
///
/// To be documented.
///
public ref int ShowTablesRectsType => ref Unsafe.AsRef(&Handle->ShowTablesRectsType);
///
/// To be documented.
///
public unsafe void Destroy()
{
ImGui.DestroyNative(Handle);
}
}
}