//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:2285
///
struct MS_STRUCT ImGuiStackLevelInfo
///
///
[StructLayout(LayoutKind.Explicit, Size = 72)]
public unsafe partial struct ImGuiStackLevelInfo
{
///
///
/// C++:
/// imgui_internal.h:2287
///
ImGuiID ID
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// >= 1: Query in progress
///
///
/// C++:
/// imgui_internal.h:2288
///
ImS8 QueryFrameCount
///
///
[FieldOffset(4)]
public sbyte QueryFrameCount;
///
///
/// Obtained result from DebugHookIdInfo()
///
///
/// C++:
/// imgui_internal.h:2289
///
bool QuerySuccess
///
///
[FieldOffset(5)]
public Bool8 QuerySuccess;
///
///
/// C++:
/// imgui_internal.h:2290
///
ImGuiDataType DataType : 8
///
///
[FieldOffset(8)]
public ImGuiDataType DataType;
///
/// Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now
/// that we added CTRL+C this should be fixed.
///
[FieldOffset(12)]
public fixed byte Desc[57];
}
///
///
/// C++:
/// imgui_internal.h:2285
///
struct MS_STRUCT ImGuiStackLevelInfo
///
///
public unsafe partial struct ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* ptr) : INullable
{
private ImGuiStackLevelInfo* _ptr = ptr;
public ImGuiStackLevelInfo* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* ptr) => new(ptr);
public static implicit operator ImGuiStackLevelInfo*(ImGuiStackLevelInfoPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:2287
///
ImGuiID ID
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// >= 1: Query in progress
///
///
/// C++:
/// imgui_internal.h:2288
///
ImS8 QueryFrameCount
///
///
public ref sbyte QueryFrameCount => ref Unsafe.AsRef(&_ptr->QueryFrameCount);
///
///
/// Obtained result from DebugHookIdInfo()
///
///
/// C++:
/// imgui_internal.h:2289
///
bool QuerySuccess
///
///
public ref bool QuerySuccess => ref Unsafe.AsRef(&_ptr->QuerySuccess);
///
///
/// C++:
/// imgui_internal.h:2290
///
ImGuiDataType DataType : 8
///
///
public ref ImGuiDataType DataType => ref Unsafe.AsRef(&_ptr->DataType);
///
/// Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now
/// that we added CTRL+C this should be fixed.
///
public Span Desc => MemoryMarshal.CreateSpan(ref _ptr->Desc[0], 57);
}
}