brutal/Brutal.ImGui/Generated/Structs/ImGuiSelectionExternalStorage.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

130 lines
4.8 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>
/// Optional helper to apply multi-selection requests to existing randomly accessible storage.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L207">imgui.h:207</see>
/// <br/><c>struct ImGuiSelectionExternalStorage</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiSelectionExternalStorage
{
/// <summary>
/// <para>
/// User data for use by adapter function // e.g. selection.UserData =
/// (void*)my_items;
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3188">imgui.h:3188</see>
/// <br/><c>void* UserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Members
/// </para>
/// </remarks>
[FieldOffset(0)]
public nint UserData;
/// <summary>
/// <para>
/// e.g. AdapterSetItemSelected = [](ImGuiSelectionExternalStorage* self, int idx, bool selected) {
/// ((MyItems**)self-&gt;UserData)[idx]-&gt;Selected = selected; }
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3189">imgui.h:3189</see>
/// <br/><c>void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Members
/// </para>
/// </remarks>
[FieldOffset(8)]
public nint AdapterSetItemSelected;
}
/// <summary>
/// <para>
/// Optional helper to apply multi-selection requests to existing randomly accessible storage.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L207">imgui.h:207</see>
/// <br/><c>struct ImGuiSelectionExternalStorage</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiSelectionExternalStoragePtr(ImGuiSelectionExternalStorage* ptr) : INullable
{
private ImGuiSelectionExternalStorage* _ptr = ptr;
public ImGuiSelectionExternalStorage* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiSelectionExternalStoragePtr(ImGuiSelectionExternalStorage* ptr) =>
new(ptr);
public static implicit operator ImGuiSelectionExternalStorage*(ImGuiSelectionExternalStoragePtr wrapper) =>
wrapper.Ptr;
/// <summary>
/// <para>
/// User data for use by adapter function // e.g. selection.UserData =
/// (void*)my_items;
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3188">imgui.h:3188</see>
/// <br/><c>void* UserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Members
/// </para>
/// </remarks>
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
/// <summary>
/// <para>
/// e.g. AdapterSetItemSelected = [](ImGuiSelectionExternalStorage* self, int idx, bool selected) {
/// ((MyItems**)self-&gt;UserData)[idx]-&gt;Selected = selected; }
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3189">imgui.h:3189</see>
/// <br/><c>void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Members
/// </para>
/// </remarks>
public ref nint AdapterSetItemSelected => ref Unsafe.AsRef<nint>(&_ptr->AdapterSetItemSelected);
}
}