mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,130 @@
|
|||
// <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->UserData)[idx]->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->UserData)[idx]->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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue