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

239 lines
8.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>
/// A selection request (stored in ImGuiMultiSelectIO)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L208">imgui.h:208</see>
/// <br/><c>struct ImGuiSelectionRequest</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct ImGuiSelectionRequest
{
/// <summary>
/// <para>
/// ms:w, app:r / ms:w, app:r // Request type. You'll most often receive 1 Clear + 1 SetRange with a
/// single-item range.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3139">imgui.h:3139</see>
/// <br/><c>ImGuiSelectionRequestType Type</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
[FieldOffset(0)]
public ImGuiSelectionRequestType Type;
/// <summary>
/// <para>
/// ms:w, app:r / ms:w, app:r // Parameter for SetAll/SetRange requests (true = select, false =
/// unselect)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3140">imgui.h:3140</see>
/// <br/><c>bool Selected</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
[FieldOffset(4)]
public Bool8 Selected;
/// <summary>
/// <para>
/// / ms:w app:r // Parameter for SetRange request: +1 when RangeFirstItem comes before RangeLastItem,
/// -1 otherwise. Useful if you want to preserve selection order on a backward Shift+Click.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3141">imgui.h:3141</see>
/// <br/><c>ImS8 RangeDirection</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
[FieldOffset(5)]
public sbyte RangeDirection;
/// <summary>
/// <para>
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from top to bottom).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3142">imgui.h:3142</see>
/// <br/><c>ImGuiSelectionUserData RangeFirstItem</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
[FieldOffset(8)]
public ulong RangeFirstItem;
/// <summary>
/// <para>
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from bottom to top). Inclusive!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3143">imgui.h:3143</see>
/// <br/><c>ImGuiSelectionUserData RangeLastItem</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
[FieldOffset(16)]
public ulong RangeLastItem;
}
/// <summary>
/// <para>
/// A selection request (stored in ImGuiMultiSelectIO)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L208">imgui.h:208</see>
/// <br/><c>struct ImGuiSelectionRequest</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiSelectionRequestPtr(ImGuiSelectionRequest* ptr) : INullable
{
private ImGuiSelectionRequest* _ptr = ptr;
public ImGuiSelectionRequest* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiSelectionRequestPtr(ImGuiSelectionRequest* ptr) => new(ptr);
public static implicit operator ImGuiSelectionRequest*(ImGuiSelectionRequestPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// ms:w, app:r / ms:w, app:r // Request type. You'll most often receive 1 Clear + 1 SetRange with a
/// single-item range.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3139">imgui.h:3139</see>
/// <br/><c>ImGuiSelectionRequestType Type</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
public ref ImGuiSelectionRequestType Type => ref Unsafe.AsRef<ImGuiSelectionRequestType>(&_ptr->Type);
/// <summary>
/// <para>
/// ms:w, app:r / ms:w, app:r // Parameter for SetAll/SetRange requests (true = select, false =
/// unselect)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3140">imgui.h:3140</see>
/// <br/><c>bool Selected</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
public ref bool Selected => ref Unsafe.AsRef<bool>(&_ptr->Selected);
/// <summary>
/// <para>
/// / ms:w app:r // Parameter for SetRange request: +1 when RangeFirstItem comes before RangeLastItem,
/// -1 otherwise. Useful if you want to preserve selection order on a backward Shift+Click.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3141">imgui.h:3141</see>
/// <br/><c>ImS8 RangeDirection</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
public ref sbyte RangeDirection => ref Unsafe.AsRef<sbyte>(&_ptr->RangeDirection);
/// <summary>
/// <para>
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from top to bottom).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3142">imgui.h:3142</see>
/// <br/><c>ImGuiSelectionUserData RangeFirstItem</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
public ref ulong RangeFirstItem => ref Unsafe.AsRef<ulong>(&_ptr->RangeFirstItem);
/// <summary>
/// <para>
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from bottom to top). Inclusive!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3143">imgui.h:3143</see>
/// <br/><c>ImGuiSelectionUserData RangeLastItem</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Selection request item
/// </para>
/// </remarks>
public ref ulong RangeLastItem => ref Unsafe.AsRef<ulong>(&_ptr->RangeLastItem);
}
}