SboxSuperuser/Engine/Vendor/ImGui/ImGuiTableColumnSortSpecs.cs

A small internal class representing sorting specs for a single ImGui table column. It stores the column user id, column index, the order within multi-column sort criteria, and the sort direction.

// 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;
}