mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,55 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue