// ------------------------------------------------------------------------------
//
// 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 ImGuiLastItemData
{
///
/// To be documented.
///
public uint ID;
///
/// To be documented.
///
public ImGuiItemFlags InFlags;
///
/// To be documented.
///
public ImGuiItemStatusFlags StatusFlags;
///
/// To be documented.
///
public ImRect Rect;
///
/// To be documented.
///
public ImRect NavRect;
///
/// To be documented.
///
public ImRect DisplayRect;
///
/// To be documented.
///
public unsafe ImGuiLastItemData(uint id = default, ImGuiItemFlags inFlags = default, ImGuiItemStatusFlags statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default)
{
ID = id;
InFlags = inFlags;
StatusFlags = statusFlags;
Rect = rect;
NavRect = navRect;
DisplayRect = displayRect;
}
///
/// To be documented.
///
public unsafe void Destroy()
{
fixed (ImGuiLastItemData* @this = &this)
{
ImGui.DestroyNative(@this);
}
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiLastItemDataPtr : IEquatable
{
public ImGuiLastItemDataPtr(ImGuiLastItemData* handle) { Handle = handle; }
public ImGuiLastItemData* Handle;
public bool IsNull => Handle == null;
public static ImGuiLastItemDataPtr Null => new ImGuiLastItemDataPtr(null);
public ImGuiLastItemData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* handle) => new ImGuiLastItemDataPtr(handle);
public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr handle) => handle.Handle;
public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle == right;
public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle != right;
public bool Equals(ImGuiLastItemDataPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiLastItemDataPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiLastItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public ref uint ID => ref Unsafe.AsRef(&Handle->ID);
///
/// To be documented.
///
public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef(&Handle->InFlags);
///
/// To be documented.
///
public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef(&Handle->StatusFlags);
///
/// To be documented.
///
public ref ImRect Rect => ref Unsafe.AsRef(&Handle->Rect);
///
/// To be documented.
///
public ref ImRect NavRect => ref Unsafe.AsRef(&Handle->NavRect);
///
/// To be documented.
///
public ref ImRect DisplayRect => ref Unsafe.AsRef(&Handle->DisplayRect);
///
/// To be documented.
///
public unsafe void Destroy()
{
ImGui.DestroyNative(Handle);
}
}
}