mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
541 lines
20 KiB
C#
541 lines
20 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Box-selection state (currently used by multi-selection, could potentially be used by others)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L149">imgui_internal.h:149</see>
|
|
/// <br/><c>struct ImGuiBoxSelectState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 104)]
|
|
public partial struct ImGuiBoxSelectState
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1862">imgui_internal.h:1862</see>
|
|
/// <br/><c>ImGuiID ID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiID ID;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1863">imgui_internal.h:1863</see>
|
|
/// <br/><c>bool IsActive</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public Bool8 IsActive;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1864">imgui_internal.h:1864</see>
|
|
/// <br/><c>bool IsStarting</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(5)]
|
|
public Bool8 IsStarting;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Starting click was not from an item.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1865">imgui_internal.h:1865</see>
|
|
/// <br/><c>bool IsStartedFromVoid</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(6)]
|
|
public Bool8 IsStartedFromVoid;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1866">imgui_internal.h:1866</see>
|
|
/// <br/><c>bool IsStartedSetNavIdOnce</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(7)]
|
|
public Bool8 IsStartedSetNavIdOnce;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1867">imgui_internal.h:1867</see>
|
|
/// <br/><c>bool RequestClear</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public Bool8 RequestClear;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latched key-mods for box-select logic.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1868">imgui_internal.h:1868</see>
|
|
/// <br/><c>ImGuiKeyChord KeyMods : 16</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public ImGuiKeyChord KeyMods;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Start position in window-contents relative space (to support scrolling)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1869">imgui_internal.h:1869</see>
|
|
/// <br/><c>ImVec2 StartPosRel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public float2 StartPosRel;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// End position in window-contents relative space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1870">imgui_internal.h:1870</see>
|
|
/// <br/><c>ImVec2 EndPosRel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public float2 EndPosRel;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scrolling accumulator (to behave at high-frame spaces)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1871">imgui_internal.h:1871</see>
|
|
/// <br/><c>ImVec2 ScrollAccum</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public float2 ScrollAccum;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1872">imgui_internal.h:1872</see>
|
|
/// <br/><c>ImGuiWindow* Window</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public ImGuiWindowPtr Window;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// (Temp/Transient, here in hot area). Set/cleared by the BeginMultiSelect()/EndMultiSelect() owning active
|
|
/// box-select.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1875">imgui_internal.h:1875</see>
|
|
/// <br/><c>bool UnclipMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(48)]
|
|
public Bool8 UnclipMode;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rectangle where ItemAdd() clipping may be temporarily disabled. Need support by multi-select supporting
|
|
/// widgets.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1876">imgui_internal.h:1876</see>
|
|
/// <br/><c>ImRect UnclipRect</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(52)]
|
|
public floatRect UnclipRect;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Selection rectangle in absolute coordinates (derived every frame from BoxSelectStartPosRel and MousePos)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1877">imgui_internal.h:1877</see>
|
|
/// <br/><c>ImRect BoxSelectRectPrev</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(68)]
|
|
public floatRect BoxSelectRectPrev;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1878">imgui_internal.h:1878</see>
|
|
/// <br/><c>ImRect BoxSelectRectCurr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(84)]
|
|
public floatRect BoxSelectRectCurr;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Box-selection state (currently used by multi-selection, could potentially be used by others)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L149">imgui_internal.h:149</see>
|
|
/// <br/><c>struct ImGuiBoxSelectState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1862">imgui_internal.h:1862</see>
|
|
/// <br/><c>ImGuiID ID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiID ID => ref Unsafe.AsRef<ImGuiID>(&_ptr->ID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1863">imgui_internal.h:1863</see>
|
|
/// <br/><c>bool IsActive</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool IsActive => ref Unsafe.AsRef<bool>(&_ptr->IsActive);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1864">imgui_internal.h:1864</see>
|
|
/// <br/><c>bool IsStarting</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool IsStarting => ref Unsafe.AsRef<bool>(&_ptr->IsStarting);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Starting click was not from an item.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1865">imgui_internal.h:1865</see>
|
|
/// <br/><c>bool IsStartedFromVoid</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool IsStartedFromVoid => ref Unsafe.AsRef<bool>(&_ptr->IsStartedFromVoid);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1866">imgui_internal.h:1866</see>
|
|
/// <br/><c>bool IsStartedSetNavIdOnce</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool IsStartedSetNavIdOnce => ref Unsafe.AsRef<bool>(&_ptr->IsStartedSetNavIdOnce);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1867">imgui_internal.h:1867</see>
|
|
/// <br/><c>bool RequestClear</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool RequestClear => ref Unsafe.AsRef<bool>(&_ptr->RequestClear);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latched key-mods for box-select logic.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1868">imgui_internal.h:1868</see>
|
|
/// <br/><c>ImGuiKeyChord KeyMods : 16</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiKeyChord KeyMods => ref Unsafe.AsRef<ImGuiKeyChord>(&_ptr->KeyMods);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Start position in window-contents relative space (to support scrolling)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1869">imgui_internal.h:1869</see>
|
|
/// <br/><c>ImVec2 StartPosRel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 StartPosRel => ref Unsafe.AsRef<float2>(&_ptr->StartPosRel);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// End position in window-contents relative space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1870">imgui_internal.h:1870</see>
|
|
/// <br/><c>ImVec2 EndPosRel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 EndPosRel => ref Unsafe.AsRef<float2>(&_ptr->EndPosRel);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scrolling accumulator (to behave at high-frame spaces)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1871">imgui_internal.h:1871</see>
|
|
/// <br/><c>ImVec2 ScrollAccum</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 ScrollAccum => ref Unsafe.AsRef<float2>(&_ptr->ScrollAccum);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1872">imgui_internal.h:1872</see>
|
|
/// <br/><c>ImGuiWindow* Window</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Active box-selection data (persistent, 1 active at a time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&_ptr->Window);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// (Temp/Transient, here in hot area). Set/cleared by the BeginMultiSelect()/EndMultiSelect() owning active
|
|
/// box-select.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1875">imgui_internal.h:1875</see>
|
|
/// <br/><c>bool UnclipMode</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool UnclipMode => ref Unsafe.AsRef<bool>(&_ptr->UnclipMode);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rectangle where ItemAdd() clipping may be temporarily disabled. Need support by multi-select supporting
|
|
/// widgets.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1876">imgui_internal.h:1876</see>
|
|
/// <br/><c>ImRect UnclipRect</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref floatRect UnclipRect => ref Unsafe.AsRef<floatRect>(&_ptr->UnclipRect);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Selection rectangle in absolute coordinates (derived every frame from BoxSelectStartPosRel and MousePos)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1877">imgui_internal.h:1877</see>
|
|
/// <br/><c>ImRect BoxSelectRectPrev</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref floatRect BoxSelectRectPrev => ref Unsafe.AsRef<floatRect>(&_ptr->BoxSelectRectPrev);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1878">imgui_internal.h:1878</see>
|
|
/// <br/><c>ImRect BoxSelectRectCurr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Temporary/Transient data
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref floatRect BoxSelectRectCurr => ref Unsafe.AsRef<floatRect>(&_ptr->BoxSelectRectCurr);
|
|
}
|
|
}
|