//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:2249
///
struct ImGuiDebugAllocEntry
///
///
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct ImGuiDebugAllocEntry
{
///
///
/// C++:
/// imgui_internal.h:2251
///
int FrameCount
///
///
[FieldOffset(0)]
public int FrameCount;
///
///
/// C++:
/// imgui_internal.h:2252
///
ImS16 AllocCount
///
///
[FieldOffset(4)]
public short AllocCount;
///
///
/// C++:
/// imgui_internal.h:2253
///
ImS16 FreeCount
///
///
[FieldOffset(6)]
public short FreeCount;
}
///
///
/// C++:
/// imgui_internal.h:2249
///
struct ImGuiDebugAllocEntry
///
///
public unsafe partial struct ImGuiDebugAllocEntryPtr(ImGuiDebugAllocEntry* ptr) : INullable
{
private ImGuiDebugAllocEntry* _ptr = ptr;
public ImGuiDebugAllocEntry* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiDebugAllocEntryPtr(ImGuiDebugAllocEntry* ptr) => new(ptr);
public static implicit operator ImGuiDebugAllocEntry*(ImGuiDebugAllocEntryPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:2251
///
int FrameCount
///
///
public ref int FrameCount => ref Unsafe.AsRef(&_ptr->FrameCount);
///
///
/// C++:
/// imgui_internal.h:2252
///
ImS16 AllocCount
///
///
public ref short AllocCount => ref Unsafe.AsRef(&_ptr->AllocCount);
///
///
/// C++:
/// imgui_internal.h:2253
///
ImS16 FreeCount
///
///
public ref short FreeCount => ref Unsafe.AsRef(&_ptr->FreeCount);
}
}