mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
271 lines
9.7 KiB
C#
271 lines
9.7 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 store multi-selection state + apply multi-selection requests.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L206">imgui.h:206</see>
|
|
/// <br/><c>struct ImGuiSelectionBasicStorage</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public partial struct ImGuiSelectionBasicStorage
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// // Number of selected items, maintained by this helper.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3165">imgui.h:3165</see>
|
|
/// <br/><c>int Size</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public int Size;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = false // GetNextSelectedItem() will return ordered selection (currently implemented by two additional
|
|
/// sorts of selection. Could be improved)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3166">imgui.h:3166</see>
|
|
/// <br/><c>bool PreserveOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public Bool8 PreserveOrder;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = NULL // 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#L3167">imgui.h:3167</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public nint UserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// e.g. selection.AdapterIndexToStorageId = [](ImGuiSelectionBasicStorage* self, int idx) { return
|
|
/// ((MyItems**)self->UserData)[idx]->ID; };
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3168">imgui.h:3168</see>
|
|
/// <br/><c>ImGuiID (*AdapterIndexToStorageId)(ImGuiSelectionBasicStorage* self, int idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public nint AdapterIndexToStorageId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Increasing counter to store selection order
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3169">imgui.h:3169</see>
|
|
/// <br/><c>int _SelectionOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public int _SelectionOrder;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Selection set. Think of this as similar to e.g. std::set<ImGuiID>. Prefer not accessing
|
|
/// directly: iterate with GetNextSelectedItem().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3170">imgui.h:3170</see>
|
|
/// <br/><c>ImGuiStorage _Storage</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public ImGuiStorage _Storage;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Optional helper to store multi-selection state + apply multi-selection requests.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L206">imgui.h:206</see>
|
|
/// <br/><c>struct ImGuiSelectionBasicStorage</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiSelectionBasicStoragePtr(ImGuiSelectionBasicStorage* ptr) : INullable
|
|
{
|
|
private ImGuiSelectionBasicStorage* _ptr = ptr;
|
|
public ImGuiSelectionBasicStorage* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiSelectionBasicStoragePtr(ImGuiSelectionBasicStorage* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiSelectionBasicStorage*(ImGuiSelectionBasicStoragePtr wrapper) =>
|
|
wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// // Number of selected items, maintained by this helper.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3165">imgui.h:3165</see>
|
|
/// <br/><c>int Size</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int Size => ref Unsafe.AsRef<int>(&_ptr->Size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = false // GetNextSelectedItem() will return ordered selection (currently implemented by two additional
|
|
/// sorts of selection. Could be improved)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3166">imgui.h:3166</see>
|
|
/// <br/><c>bool PreserveOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool PreserveOrder => ref Unsafe.AsRef<bool>(&_ptr->PreserveOrder);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = NULL // 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#L3167">imgui.h:3167</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. selection.AdapterIndexToStorageId = [](ImGuiSelectionBasicStorage* self, int idx) { return
|
|
/// ((MyItems**)self->UserData)[idx]->ID; };
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3168">imgui.h:3168</see>
|
|
/// <br/><c>ImGuiID (*AdapterIndexToStorageId)(ImGuiSelectionBasicStorage* self, int idx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint AdapterIndexToStorageId => ref Unsafe.AsRef<nint>(&_ptr->AdapterIndexToStorageId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Increasing counter to store selection order
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3169">imgui.h:3169</see>
|
|
/// <br/><c>int _SelectionOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int _SelectionOrder => ref Unsafe.AsRef<int>(&_ptr->_SelectionOrder);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Internal] Selection set. Think of this as similar to e.g. std::set<ImGuiID>. Prefer not accessing
|
|
/// directly: iterate with GetNextSelectedItem().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3170">imgui.h:3170</see>
|
|
/// <br/><c>ImGuiStorage _Storage</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiStorage _Storage => ref Unsafe.AsRef<ImGuiStorage>(&_ptr->_Storage);
|
|
}
|
|
}
|