//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Helper for key->value storage (pair)
///
///
/// C++:
/// imgui.h:211
///
struct ImGuiStoragePair
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiStoragePair
{
///
///
/// C++:
/// imgui.h:2859
///
ImGuiID key
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
[FieldOffset(0)]
public ImGuiID key;
///
///
/// C++:
/// imgui.h:2860
///
int val_i
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
[FieldOffset(8)]
public int val_i;
///
///
/// C++:
/// imgui.h:2860
///
float val_f
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
[FieldOffset(8)]
public float val_f;
///
///
/// C++:
/// imgui.h:2860
///
void* val_p
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
[FieldOffset(8)]
public nint val_p;
}
///
///
/// Helper for key->value storage (pair)
///
///
/// C++:
/// imgui.h:211
///
struct ImGuiStoragePair
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// C++:
/// imgui.h:2859
///
ImGuiID key
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
public ref ImGuiID key => ref Unsafe.AsRef(&_ptr->key);
///
///
/// C++:
/// imgui.h:2860
///
int val_i
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
public ref int val_i => ref Unsafe.AsRef(&_ptr->val_i);
///
///
/// C++:
/// imgui.h:2860
///
float val_f
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
public ref float val_f => ref Unsafe.AsRef(&_ptr->val_f);
///
///
/// C++:
/// imgui.h:2860
///
void* val_p
///
///
///
///
/// [Internal] Key+Value for ImGuiStorage
///
///
public ref nint val_p => ref Unsafe.AsRef(&_ptr->val_p);
}
}