brutal/brutal.imgui/Brutal.ImGui/Generated-Internal/Structs/stbrp_context_opaque.gen.cs
2026-10-15 14:12:02 +13:00

55 lines
1.9 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4076">imgui_internal.h:4076</see>
/// <br/><c>struct stbrp_context_opaque { char data[80]; }</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// We avoid dragging imstb_rectpack.h into public header (partly because binding generators are having issues
/// with it)
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 80)]
public unsafe partial struct stbrp_context_opaque
{
[FieldOffset(0)]
public fixed byte data[80];
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4076">imgui_internal.h:4076</see>
/// <br/><c>struct stbrp_context_opaque { char data[80]; }</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// We avoid dragging imstb_rectpack.h into public header (partly because binding generators are having issues
/// with it)
/// </para>
/// </remarks>
public unsafe partial struct stbrp_context_opaquePtr(stbrp_context_opaque* ptr) : INullable
{
private stbrp_context_opaque* _ptr = ptr;
public stbrp_context_opaque* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator stbrp_context_opaquePtr(stbrp_context_opaque* ptr) => new(ptr);
public static implicit operator stbrp_context_opaque*(stbrp_context_opaquePtr wrapper) => wrapper.Ptr;
public Span<byte> data => MemoryMarshal.CreateSpan(ref _ptr->data[0], 80);
}
}