brutal/Brutal.ImGui/Generated/Structs/ImGuiTableSortSpecs.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

180 lines
8.1 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
/// <summary>
/// <para>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L213">imgui.h:213</see>
/// <br/><c>struct ImGuiTableSortSpecs</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiTableSortSpecs
{
/// <summary>
/// <para>
/// Pointer to sort spec array.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2194">imgui.h:2194</see>
/// <br/><c>const ImGuiTableColumnSortSpecs* Specs</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
[FieldOffset(0)]
public Ptr<ImGuiTableColumnSortSpecs> Specs;
/// <summary>
/// <para>
/// Sort spec count. Most often 1. May be &gt; 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when
/// ImGuiTableFlags_SortTristate is enabled.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2195">imgui.h:2195</see>
/// <br/><c>int SpecsCount</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
[FieldOffset(8)]
public int SpecsCount;
/// <summary>
/// <para>
/// Set to true when specs have changed since last time! Use this to sort again, then clear the flag.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2196">imgui.h:2196</see>
/// <br/><c>bool SpecsDirty</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
[FieldOffset(12)]
public Bool8 SpecsDirty;
}
/// <summary>
/// <para>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L213">imgui.h:213</see>
/// <br/><c>struct ImGuiTableSortSpecs</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* ptr) : INullable
{
private ImGuiTableSortSpecs* _ptr = ptr;
public ImGuiTableSortSpecs* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* ptr) => new(ptr);
public static implicit operator ImGuiTableSortSpecs*(ImGuiTableSortSpecsPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// Pointer to sort spec array.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2194">imgui.h:2194</see>
/// <br/><c>const ImGuiTableColumnSortSpecs* Specs</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
public ref Ptr<ImGuiTableColumnSortSpecs> Specs =>
ref Unsafe.AsRef<Ptr<ImGuiTableColumnSortSpecs>>(&_ptr->Specs);
/// <summary>
/// <para>
/// Sort spec count. Most often 1. May be &gt; 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when
/// ImGuiTableFlags_SortTristate is enabled.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2195">imgui.h:2195</see>
/// <br/><c>int SpecsCount</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
public ref int SpecsCount => ref Unsafe.AsRef<int>(&_ptr->SpecsCount);
/// <summary>
/// <para>
/// Set to true when specs have changed since last time! Use this to sort again, then clear the flag.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2196">imgui.h:2196</see>
/// <br/><c>bool SpecsDirty</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
/// Obtained by calling TableGetSortSpecs().
/// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.
/// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!
/// </code>
/// </remarks>
public ref bool SpecsDirty => ref Unsafe.AsRef<bool>(&_ptr->SpecsDirty);
}
}