//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Optional helper to apply multi-selection requests to existing randomly accessible storage.
///
///
/// C++:
/// imgui.h:207
///
struct ImGuiSelectionExternalStorage
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiSelectionExternalStorage
{
///
///
/// User data for use by adapter function // e.g. selection.UserData =
/// (void*)my_items;
///
///
/// C++:
/// imgui.h:3188
///
void* UserData
///
///
///
///
/// Members
///
///
[FieldOffset(0)]
public nint UserData;
///
///
/// e.g. AdapterSetItemSelected = [](ImGuiSelectionExternalStorage* self, int idx, bool selected) {
/// ((MyItems**)self->UserData)[idx]->Selected = selected; }
///
///
/// C++:
/// imgui.h:3189
///
void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected)
///
///
///
///
/// Members
///
///
[FieldOffset(8)]
public nint AdapterSetItemSelected;
}
///
///
/// Optional helper to apply multi-selection requests to existing randomly accessible storage.
///
///
/// C++:
/// imgui.h:207
///
struct ImGuiSelectionExternalStorage
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// User data for use by adapter function // e.g. selection.UserData =
/// (void*)my_items;
///
///
/// C++:
/// imgui.h:3188
///
void* UserData
///
///
///
///
/// Members
///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData);
///
///
/// e.g. AdapterSetItemSelected = [](ImGuiSelectionExternalStorage* self, int idx, bool selected) {
/// ((MyItems**)self->UserData)[idx]->Selected = selected; }
///
///
/// C++:
/// imgui.h:3189
///
void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected)
///
///
///
///
/// Members
///
///
public ref nint AdapterSetItemSelected => ref Unsafe.AsRef(&_ptr->AdapterSetItemSelected);
}
}