//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Box-selection state (currently used by multi-selection, could potentially be used by others)
///
///
/// C++:
/// imgui_internal.h:149
///
struct ImGuiBoxSelectState
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 104)]
public partial struct ImGuiBoxSelectState
{
///
///
/// C++:
/// imgui_internal.h:1862
///
ImGuiID ID
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// C++:
/// imgui_internal.h:1863
///
bool IsActive
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(4)]
public Bool8 IsActive;
///
///
/// C++:
/// imgui_internal.h:1864
///
bool IsStarting
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(5)]
public Bool8 IsStarting;
///
///
/// Starting click was not from an item.
///
///
/// C++:
/// imgui_internal.h:1865
///
bool IsStartedFromVoid
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(6)]
public Bool8 IsStartedFromVoid;
///
///
/// C++:
/// imgui_internal.h:1866
///
bool IsStartedSetNavIdOnce
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(7)]
public Bool8 IsStartedSetNavIdOnce;
///
///
/// C++:
/// imgui_internal.h:1867
///
bool RequestClear
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(8)]
public Bool8 RequestClear;
///
///
/// Latched key-mods for box-select logic.
///
///
/// C++:
/// imgui_internal.h:1868
///
ImGuiKeyChord KeyMods : 16
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(12)]
public ImGuiKeyChord KeyMods;
///
///
/// Start position in window-contents relative space (to support scrolling)
///
///
/// C++:
/// imgui_internal.h:1869
///
ImVec2 StartPosRel
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(16)]
public float2 StartPosRel;
///
///
/// End position in window-contents relative space
///
///
/// C++:
/// imgui_internal.h:1870
///
ImVec2 EndPosRel
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(24)]
public float2 EndPosRel;
///
///
/// Scrolling accumulator (to behave at high-frame spaces)
///
///
/// C++:
/// imgui_internal.h:1871
///
ImVec2 ScrollAccum
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(32)]
public float2 ScrollAccum;
///
///
/// C++:
/// imgui_internal.h:1872
///
ImGuiWindow* Window
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
[FieldOffset(40)]
public ImGuiWindowPtr Window;
///
///
/// (Temp/Transient, here in hot area). Set/cleared by the BeginMultiSelect()/EndMultiSelect() owning active
/// box-select.
///
///
/// C++:
/// imgui_internal.h:1875
///
bool UnclipMode
///
///
///
///
/// Temporary/Transient data
///
///
[FieldOffset(48)]
public Bool8 UnclipMode;
///
///
/// Rectangle where ItemAdd() clipping may be temporarily disabled. Need support by multi-select supporting
/// widgets.
///
///
/// C++:
/// imgui_internal.h:1876
///
ImRect UnclipRect
///
///
///
///
/// Temporary/Transient data
///
///
[FieldOffset(52)]
public floatRect UnclipRect;
///
///
/// Selection rectangle in absolute coordinates (derived every frame from BoxSelectStartPosRel and MousePos)
///
///
/// C++:
/// imgui_internal.h:1877
///
ImRect BoxSelectRectPrev
///
///
///
///
/// Temporary/Transient data
///
///
[FieldOffset(68)]
public floatRect BoxSelectRectPrev;
///
///
/// C++:
/// imgui_internal.h:1878
///
ImRect BoxSelectRectCurr
///
///
///
///
/// Temporary/Transient data
///
///
[FieldOffset(84)]
public floatRect BoxSelectRectCurr;
}
///
///
/// Box-selection state (currently used by multi-selection, could potentially be used by others)
///
///
/// C++:
/// imgui_internal.h:149
///
struct ImGuiBoxSelectState
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiBoxSelectStatePtr(ImGuiBoxSelectState* ptr) : INullable
{
private ImGuiBoxSelectState* _ptr = ptr;
public ImGuiBoxSelectState* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiBoxSelectStatePtr(ImGuiBoxSelectState* ptr) => new(ptr);
public static implicit operator ImGuiBoxSelectState*(ImGuiBoxSelectStatePtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1862
///
ImGuiID ID
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// C++:
/// imgui_internal.h:1863
///
bool IsActive
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref bool IsActive => ref Unsafe.AsRef(&_ptr->IsActive);
///
///
/// C++:
/// imgui_internal.h:1864
///
bool IsStarting
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref bool IsStarting => ref Unsafe.AsRef(&_ptr->IsStarting);
///
///
/// Starting click was not from an item.
///
///
/// C++:
/// imgui_internal.h:1865
///
bool IsStartedFromVoid
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref bool IsStartedFromVoid => ref Unsafe.AsRef(&_ptr->IsStartedFromVoid);
///
///
/// C++:
/// imgui_internal.h:1866
///
bool IsStartedSetNavIdOnce
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref bool IsStartedSetNavIdOnce => ref Unsafe.AsRef(&_ptr->IsStartedSetNavIdOnce);
///
///
/// C++:
/// imgui_internal.h:1867
///
bool RequestClear
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref bool RequestClear => ref Unsafe.AsRef(&_ptr->RequestClear);
///
///
/// Latched key-mods for box-select logic.
///
///
/// C++:
/// imgui_internal.h:1868
///
ImGuiKeyChord KeyMods : 16
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref ImGuiKeyChord KeyMods => ref Unsafe.AsRef(&_ptr->KeyMods);
///
///
/// Start position in window-contents relative space (to support scrolling)
///
///
/// C++:
/// imgui_internal.h:1869
///
ImVec2 StartPosRel
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref float2 StartPosRel => ref Unsafe.AsRef(&_ptr->StartPosRel);
///
///
/// End position in window-contents relative space
///
///
/// C++:
/// imgui_internal.h:1870
///
ImVec2 EndPosRel
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref float2 EndPosRel => ref Unsafe.AsRef(&_ptr->EndPosRel);
///
///
/// Scrolling accumulator (to behave at high-frame spaces)
///
///
/// C++:
/// imgui_internal.h:1871
///
ImVec2 ScrollAccum
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref float2 ScrollAccum => ref Unsafe.AsRef(&_ptr->ScrollAccum);
///
///
/// C++:
/// imgui_internal.h:1872
///
ImGuiWindow* Window
///
///
///
///
/// Active box-selection data (persistent, 1 active at a time)
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// (Temp/Transient, here in hot area). Set/cleared by the BeginMultiSelect()/EndMultiSelect() owning active
/// box-select.
///
///
/// C++:
/// imgui_internal.h:1875
///
bool UnclipMode
///
///
///
///
/// Temporary/Transient data
///
///
public ref bool UnclipMode => ref Unsafe.AsRef(&_ptr->UnclipMode);
///
///
/// Rectangle where ItemAdd() clipping may be temporarily disabled. Need support by multi-select supporting
/// widgets.
///
///
/// C++:
/// imgui_internal.h:1876
///
ImRect UnclipRect
///
///
///
///
/// Temporary/Transient data
///
///
public ref floatRect UnclipRect => ref Unsafe.AsRef(&_ptr->UnclipRect);
///
///
/// Selection rectangle in absolute coordinates (derived every frame from BoxSelectStartPosRel and MousePos)
///
///
/// C++:
/// imgui_internal.h:1877
///
ImRect BoxSelectRectPrev
///
///
///
///
/// Temporary/Transient data
///
///
public ref floatRect BoxSelectRectPrev => ref Unsafe.AsRef(&_ptr->BoxSelectRectPrev);
///
///
/// C++:
/// imgui_internal.h:1878
///
ImRect BoxSelectRectCurr
///
///
///
///
/// Temporary/Transient data
///
///
public ref floatRect BoxSelectRectCurr => ref Unsafe.AsRef(&_ptr->BoxSelectRectCurr);
}
}