//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Multi-selection persistent state (for focused selection).
///
///
/// C++:
/// imgui_internal.h:166
///
struct ImGuiMultiSelectState
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 40)]
public partial struct ImGuiMultiSelectState
{
///
///
/// C++:
/// imgui_internal.h:1918
///
ImGuiWindow* Window
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(0)]
public ImGuiWindowPtr Window;
///
///
/// C++:
/// imgui_internal.h:1919
///
ImGuiID ID
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(8)]
public ImGuiID ID;
///
///
/// Last used frame-count, for GC.
///
///
/// C++:
/// imgui_internal.h:1920
///
int LastFrameActive
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(12)]
public int LastFrameActive;
///
///
/// Set by BeginMultiSelect() based on optional info provided by user. May be -1 if unknown.
///
///
/// C++:
/// imgui_internal.h:1921
///
int LastSelectionSize
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(16)]
public int LastSelectionSize;
///
///
/// -1 (don't have) or true/false
///
///
/// C++:
/// imgui_internal.h:1922
///
ImS8 RangeSelected
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(20)]
public sbyte RangeSelected;
///
///
/// -1 (don't have) or true/false
///
///
/// C++:
/// imgui_internal.h:1923
///
ImS8 NavIdSelected
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(21)]
public sbyte NavIdSelected;
///
///
/// C++:
/// imgui_internal.h:1924
///
ImGuiSelectionUserData RangeSrcItem
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(24)]
public ulong RangeSrcItem;
///
///
/// SetNextItemSelectionUserData() value for NavId (if part of submitted items)
///
///
/// C++:
/// imgui_internal.h:1925
///
ImGuiSelectionUserData NavIdItem
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
[FieldOffset(32)]
public ulong NavIdItem;
}
///
///
/// Multi-selection persistent state (for focused selection).
///
///
/// C++:
/// imgui_internal.h:166
///
struct ImGuiMultiSelectState
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiMultiSelectStatePtr(ImGuiMultiSelectState* ptr) : INullable
{
private ImGuiMultiSelectState* _ptr = ptr;
public ImGuiMultiSelectState* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiMultiSelectStatePtr(ImGuiMultiSelectState* ptr) => new(ptr);
public static implicit operator ImGuiMultiSelectState*(ImGuiMultiSelectStatePtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1918
///
ImGuiWindow* Window
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// C++:
/// imgui_internal.h:1919
///
ImGuiID ID
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// Last used frame-count, for GC.
///
///
/// C++:
/// imgui_internal.h:1920
///
int LastFrameActive
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref int LastFrameActive => ref Unsafe.AsRef(&_ptr->LastFrameActive);
///
///
/// Set by BeginMultiSelect() based on optional info provided by user. May be -1 if unknown.
///
///
/// C++:
/// imgui_internal.h:1921
///
int LastSelectionSize
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref int LastSelectionSize => ref Unsafe.AsRef(&_ptr->LastSelectionSize);
///
///
/// -1 (don't have) or true/false
///
///
/// C++:
/// imgui_internal.h:1922
///
ImS8 RangeSelected
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref sbyte RangeSelected => ref Unsafe.AsRef(&_ptr->RangeSelected);
///
///
/// -1 (don't have) or true/false
///
///
/// C++:
/// imgui_internal.h:1923
///
ImS8 NavIdSelected
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref sbyte NavIdSelected => ref Unsafe.AsRef(&_ptr->NavIdSelected);
///
///
/// C++:
/// imgui_internal.h:1924
///
ImGuiSelectionUserData RangeSrcItem
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref ulong RangeSrcItem => ref Unsafe.AsRef(&_ptr->RangeSrcItem);
///
///
/// SetNextItemSelectionUserData() value for NavId (if part of submitted items)
///
///
/// C++:
/// imgui_internal.h:1925
///
ImGuiSelectionUserData NavIdItem
///
///
///
///
/// Persistent storage for multi-select (as long as selection is alive)
///
///
public ref ulong NavIdItem => ref Unsafe.AsRef(&_ptr->NavIdItem);
}
}