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

196 lines
7.2 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 specification for one column of a table
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L214">imgui.h:214</see>
/// <br/><c>struct ImGuiTableColumnSortSpecs</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct ImGuiTableColumnSortSpecs
{
/// <summary>
/// <para>
/// User id of the column (if specified by a TableSetupColumn() call)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2204">imgui.h:2204</see>
/// <br/><c>ImGuiID ColumnUserID</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
[FieldOffset(0)]
public ImGuiID ColumnUserID;
/// <summary>
/// <para>
/// Index of the column
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2205">imgui.h:2205</see>
/// <br/><c>ImS16 ColumnIndex</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
[FieldOffset(4)]
public short ColumnIndex;
/// <summary>
/// <para>
/// Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a
/// single criteria will always have a 0 here)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2206">imgui.h:2206</see>
/// <br/><c>ImS16 SortOrder</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
[FieldOffset(6)]
public short SortOrder;
/// <summary>
/// <para>
/// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2207">imgui.h:2207</see>
/// <br/><c>ImGuiSortDirection SortDirection</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
[FieldOffset(8)]
public ImGuiSortDirection SortDirection;
}
/// <summary>
/// <para>
/// Sorting specification for one column of a table
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L214">imgui.h:214</see>
/// <br/><c>struct ImGuiTableColumnSortSpecs</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* ptr) : INullable
{
private ImGuiTableColumnSortSpecs* _ptr = ptr;
public ImGuiTableColumnSortSpecs* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* ptr) => new(ptr);
public static implicit operator ImGuiTableColumnSortSpecs*(ImGuiTableColumnSortSpecsPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// User id of the column (if specified by a TableSetupColumn() call)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2204">imgui.h:2204</see>
/// <br/><c>ImGuiID ColumnUserID</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
public ref ImGuiID ColumnUserID => ref Unsafe.AsRef<ImGuiID>(&_ptr->ColumnUserID);
/// <summary>
/// <para>
/// Index of the column
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2205">imgui.h:2205</see>
/// <br/><c>ImS16 ColumnIndex</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
public ref short ColumnIndex => ref Unsafe.AsRef<short>(&_ptr->ColumnIndex);
/// <summary>
/// <para>
/// Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a
/// single criteria will always have a 0 here)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2206">imgui.h:2206</see>
/// <br/><c>ImS16 SortOrder</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
public ref short SortOrder => ref Unsafe.AsRef<short>(&_ptr->SortOrder);
/// <summary>
/// <para>
/// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2207">imgui.h:2207</see>
/// <br/><c>ImGuiSortDirection SortDirection</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sorting specification for one column of a table (sizeof == 12 bytes)
/// </para>
/// </remarks>
public ref ImGuiSortDirection SortDirection => ref Unsafe.AsRef<ImGuiSortDirection>(&_ptr->SortDirection);
}
}