Code/SboxSuperuser/Engine/Vendor/ImGui/ImGuiTableColumnSortSpecs.cs

A small vendored class that represents sorting metadata for a single table column in ImGui. It stores user column id, column index, the sort order within a multi-column sort, and the sort direction.

Native Interop
// Vendored from zeljkovranjes/sbox-imgui; see LICENSE and PROVENANCE.md in this folder.
using Sandbox;
#pragma warning disable CS0649 // Upstream reserves fields for optional widgets and features.
namespace SboxSuperuser.Engine.Vendor.ImGui;

/// <summary>Sorting specification for one column of a table.</summary>
internal class ImGuiTableColumnSortSpecs
{
	/// <summary>User id of the column (if specified by a TableSetupColumn() call).</summary>
	public int ColumnUserID;
	/// <summary>Index of the column.</summary>
	public int ColumnIndex;
	/// <summary>Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here).</summary>
	public int SortOrder;
	public ImGuiSortDirection SortDirection;
}