// ------------------------------------------------------------------------------
//
// 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 ImGuiStackTool
{
///
/// To be documented.
///
public int LastActiveFrame;
///
/// To be documented.
///
public int StackLevel;
///
/// To be documented.
///
public uint QueryId;
///
/// To be documented.
///
public ImVector Results;
///
/// To be documented.
///
public byte CopyToClipboardOnCtrlC;
///
/// To be documented.
///
public float CopyToClipboardLastTime;
///
/// To be documented.
///
public unsafe ImGuiStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVector results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default)
{
LastActiveFrame = lastActiveFrame;
StackLevel = stackLevel;
QueryId = queryId;
Results = results;
CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0;
CopyToClipboardLastTime = copyToClipboardLastTime;
}
///
/// To be documented.
///
public unsafe void Destroy()
{
fixed (ImGuiStackTool* @this = &this)
{
ImGui.DestroyNative(@this);
}
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiStackToolPtr : IEquatable
{
public ImGuiStackToolPtr(ImGuiStackTool* handle) { Handle = handle; }
public ImGuiStackTool* Handle;
public bool IsNull => Handle == null;
public static ImGuiStackToolPtr Null => new ImGuiStackToolPtr(null);
public ImGuiStackTool this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiStackToolPtr(ImGuiStackTool* handle) => new ImGuiStackToolPtr(handle);
public static implicit operator ImGuiStackTool*(ImGuiStackToolPtr handle) => handle.Handle;
public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle == right;
public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle != right;
public bool Equals(ImGuiStackToolPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiStackToolPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiStackToolPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public ref int LastActiveFrame => ref Unsafe.AsRef(&Handle->LastActiveFrame);
///
/// To be documented.
///
public ref int StackLevel => ref Unsafe.AsRef(&Handle->StackLevel);
///
/// To be documented.
///
public ref uint QueryId => ref Unsafe.AsRef(&Handle->QueryId);
///
/// To be documented.
///
public ref ImVector Results => ref Unsafe.AsRef>(&Handle->Results);
///
/// To be documented.
///
public ref bool CopyToClipboardOnCtrlC => ref Unsafe.AsRef(&Handle->CopyToClipboardOnCtrlC);
///
/// To be documented.
///
public ref float CopyToClipboardLastTime => ref Unsafe.AsRef(&Handle->CopyToClipboardLastTime);
///
/// To be documented.
///
public unsafe void Destroy()
{
ImGui.DestroyNative(Handle);
}
}
}