mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
170 lines
5.5 KiB
C#
170 lines
5.5 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper for key->value storage (pair)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L211">imgui.h:211</see>
|
|
/// <br/><c>struct ImGuiStoragePair</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
|
public partial struct ImGuiStoragePair
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2859">imgui.h:2859</see>
|
|
/// <br/><c>ImGuiID key</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiID key;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>int val_i</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int val_i;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>float val_f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public float val_f;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>void* val_p</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public nint val_p;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper for key->value storage (pair)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L211">imgui.h:211</see>
|
|
/// <br/><c>struct ImGuiStoragePair</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiStoragePairPtr(ImGuiStoragePair* ptr) : INullable
|
|
{
|
|
private ImGuiStoragePair* _ptr = ptr;
|
|
public ImGuiStoragePair* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiStoragePairPtr(ImGuiStoragePair* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiStoragePair*(ImGuiStoragePairPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2859">imgui.h:2859</see>
|
|
/// <br/><c>ImGuiID key</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiID key => ref Unsafe.AsRef<ImGuiID>(&_ptr->key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>int val_i</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int val_i => ref Unsafe.AsRef<int>(&_ptr->val_i);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>float val_f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float val_f => ref Unsafe.AsRef<float>(&_ptr->val_f);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2860">imgui.h:2860</see>
|
|
/// <br/><c>void* val_p</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal] Key+Value for ImGuiStorage
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint val_p => ref Unsafe.AsRef<nint>(&_ptr->val_p);
|
|
}
|
|
}
|