//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// A selection request (stored in ImGuiMultiSelectIO)
///
///
/// C++:
/// imgui.h:208
///
struct ImGuiSelectionRequest
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct ImGuiSelectionRequest
{
///
///
/// ms:w, app:r / ms:w, app:r // Request type. You'll most often receive 1 Clear + 1 SetRange with a
/// single-item range.
///
///
/// C++:
/// imgui.h:3139
///
ImGuiSelectionRequestType Type
///
///
///
///
/// Selection request item
///
///
[FieldOffset(0)]
public ImGuiSelectionRequestType Type;
///
///
/// ms:w, app:r / ms:w, app:r // Parameter for SetAll/SetRange requests (true = select, false =
/// unselect)
///
///
/// C++:
/// imgui.h:3140
///
bool Selected
///
///
///
///
/// Selection request item
///
///
[FieldOffset(4)]
public Bool8 Selected;
///
///
/// / 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.
///
///
/// C++:
/// imgui.h:3141
///
ImS8 RangeDirection
///
///
///
///
/// Selection request item
///
///
[FieldOffset(5)]
public sbyte RangeDirection;
///
///
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from top to bottom).
///
///
/// C++:
/// imgui.h:3142
///
ImGuiSelectionUserData RangeFirstItem
///
///
///
///
/// Selection request item
///
///
[FieldOffset(8)]
public ulong RangeFirstItem;
///
///
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from bottom to top). Inclusive!
///
///
/// C++:
/// imgui.h:3143
///
ImGuiSelectionUserData RangeLastItem
///
///
///
///
/// Selection request item
///
///
[FieldOffset(16)]
public ulong RangeLastItem;
}
///
///
/// A selection request (stored in ImGuiMultiSelectIO)
///
///
/// C++:
/// imgui.h:208
///
struct ImGuiSelectionRequest
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// ms:w, app:r / ms:w, app:r // Request type. You'll most often receive 1 Clear + 1 SetRange with a
/// single-item range.
///
///
/// C++:
/// imgui.h:3139
///
ImGuiSelectionRequestType Type
///
///
///
///
/// Selection request item
///
///
public ref ImGuiSelectionRequestType Type => ref Unsafe.AsRef(&_ptr->Type);
///
///
/// ms:w, app:r / ms:w, app:r // Parameter for SetAll/SetRange requests (true = select, false =
/// unselect)
///
///
/// C++:
/// imgui.h:3140
///
bool Selected
///
///
///
///
/// Selection request item
///
///
public ref bool Selected => ref Unsafe.AsRef(&_ptr->Selected);
///
///
/// / 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.
///
///
/// C++:
/// imgui.h:3141
///
ImS8 RangeDirection
///
///
///
///
/// Selection request item
///
///
public ref sbyte RangeDirection => ref Unsafe.AsRef(&_ptr->RangeDirection);
///
///
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from top to bottom).
///
///
/// C++:
/// imgui.h:3142
///
ImGuiSelectionUserData RangeFirstItem
///
///
///
///
/// Selection request item
///
///
public ref ulong RangeFirstItem => ref Unsafe.AsRef(&_ptr->RangeFirstItem);
///
///
/// / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift
/// selecting from bottom to top). Inclusive!
///
///
/// C++:
/// imgui.h:3143
///
ImGuiSelectionUserData RangeLastItem
///
///
///
///
/// Selection request item
///
///
public ref ulong RangeLastItem => ref Unsafe.AsRef(&_ptr->RangeLastItem);
}
}