//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Structure to interact with a BeginMultiSelect()/EndMultiSelect() block
///
///
/// C++:
/// imgui.h:200
///
struct ImGuiMultiSelectIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 40)]
public partial struct ImGuiMultiSelectIO
{
///
///
/// ms:w, app:r / ms:w app:r // Requests to apply to your selection data.
///
///
/// C++:
/// imgui.h:3119
///
ImVector<ImGuiSelectionRequest> Requests
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(0)]
public ImVector Requests;
///
///
/// ms:w app:r / // (If using clipper) Begin: Source item (often the first selected
/// item) must never be clipped: use clipper.IncludeItemByIndex() to ensure it is submitted.
///
///
/// C++:
/// imgui.h:3120
///
ImGuiSelectionUserData RangeSrcItem
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(16)]
public ulong RangeSrcItem;
///
///
/// ms:w, app:r / // (If using deletion) Last known SetNextItemSelectionUserData() value
/// for NavId (if part of submitted items).
///
///
/// C++:
/// imgui.h:3121
///
ImGuiSelectionUserData NavIdItem
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(24)]
public ulong NavIdItem;
///
///
/// ms:w, app:r / app:r // (If using deletion) Last known selection state for NavId (if part of
/// submitted items).
///
///
/// C++:
/// imgui.h:3122
///
bool NavIdSelected
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(32)]
public Bool8 NavIdSelected;
///
///
/// app:w / ms:r // (If using deletion) Set before EndMultiSelect() to reset ResetSrcItem
/// (e.g. if deleted selection).
///
///
/// C++:
/// imgui.h:3123
///
bool RangeSrcReset
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(33)]
public Bool8 RangeSrcReset;
///
///
/// ms:w, app:r / app:r // 'int items_count' parameter to BeginMultiSelect() is copied here for
/// convenience, allowing simpler calls to your ApplyRequests handler. Not used internally.
///
///
/// C++:
/// imgui.h:3124
///
int ItemsCount
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
[FieldOffset(36)]
public int ItemsCount;
}
///
///
/// Structure to interact with a BeginMultiSelect()/EndMultiSelect() block
///
///
/// C++:
/// imgui.h:200
///
struct ImGuiMultiSelectIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
public unsafe partial struct ImGuiMultiSelectIOPtr(ImGuiMultiSelectIO* ptr) : INullable
{
private ImGuiMultiSelectIO* _ptr = ptr;
public ImGuiMultiSelectIO* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiMultiSelectIOPtr(ImGuiMultiSelectIO* ptr) => new(ptr);
public static implicit operator ImGuiMultiSelectIO*(ImGuiMultiSelectIOPtr wrapper) => wrapper.Ptr;
///
///
/// ms:w, app:r / ms:w app:r // Requests to apply to your selection data.
///
///
/// C++:
/// imgui.h:3119
///
ImVector<ImGuiSelectionRequest> Requests
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref ImVector Requests =>
ref Unsafe.AsRef>(&_ptr->Requests);
///
///
/// ms:w app:r / // (If using clipper) Begin: Source item (often the first selected
/// item) must never be clipped: use clipper.IncludeItemByIndex() to ensure it is submitted.
///
///
/// C++:
/// imgui.h:3120
///
ImGuiSelectionUserData RangeSrcItem
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref ulong RangeSrcItem => ref Unsafe.AsRef(&_ptr->RangeSrcItem);
///
///
/// ms:w, app:r / // (If using deletion) Last known SetNextItemSelectionUserData() value
/// for NavId (if part of submitted items).
///
///
/// C++:
/// imgui.h:3121
///
ImGuiSelectionUserData NavIdItem
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref ulong NavIdItem => ref Unsafe.AsRef(&_ptr->NavIdItem);
///
///
/// ms:w, app:r / app:r // (If using deletion) Last known selection state for NavId (if part of
/// submitted items).
///
///
/// C++:
/// imgui.h:3122
///
bool NavIdSelected
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref bool NavIdSelected => ref Unsafe.AsRef(&_ptr->NavIdSelected);
///
///
/// app:w / ms:r // (If using deletion) Set before EndMultiSelect() to reset ResetSrcItem
/// (e.g. if deleted selection).
///
///
/// C++:
/// imgui.h:3123
///
bool RangeSrcReset
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref bool RangeSrcReset => ref Unsafe.AsRef(&_ptr->RangeSrcReset);
///
///
/// ms:w, app:r / app:r // 'int items_count' parameter to BeginMultiSelect() is copied here for
/// convenience, allowing simpler calls to your ApplyRequests handler. Not used internally.
///
///
/// C++:
/// imgui.h:3124
///
int ItemsCount
///
///
///
///
/// Main IO structure returned by BeginMultiSelect()/EndMultiSelect().
/// This mainly contains a list of selection requests.
/// - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen.
/// - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo)
/// - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code.
///
///
public ref int ItemsCount => ref Unsafe.AsRef(&_ptr->ItemsCount);
}
}