//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Sorting specification for one column of a table
///
///
/// C++:
/// imgui.h:214
///
struct ImGuiTableColumnSortSpecs
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct ImGuiTableColumnSortSpecs
{
///
///
/// User id of the column (if specified by a TableSetupColumn() call)
///
///
/// C++:
/// imgui.h:2204
///
ImGuiID ColumnUserID
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
[FieldOffset(0)]
public ImGuiID ColumnUserID;
///
///
/// Index of the column
///
///
/// C++:
/// imgui.h:2205
///
ImS16 ColumnIndex
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
[FieldOffset(4)]
public short ColumnIndex;
///
///
/// Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a
/// single criteria will always have a 0 here)
///
///
/// C++:
/// imgui.h:2206
///
ImS16 SortOrder
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
[FieldOffset(6)]
public short SortOrder;
///
///
/// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending
///
///
/// C++:
/// imgui.h:2207
///
ImGuiSortDirection SortDirection
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
[FieldOffset(8)]
public ImGuiSortDirection SortDirection;
}
///
///
/// Sorting specification for one column of a table
///
///
/// C++:
/// imgui.h:214
///
struct ImGuiTableColumnSortSpecs
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// User id of the column (if specified by a TableSetupColumn() call)
///
///
/// C++:
/// imgui.h:2204
///
ImGuiID ColumnUserID
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
public ref ImGuiID ColumnUserID => ref Unsafe.AsRef(&_ptr->ColumnUserID);
///
///
/// Index of the column
///
///
/// C++:
/// imgui.h:2205
///
ImS16 ColumnIndex
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
public ref short ColumnIndex => ref Unsafe.AsRef(&_ptr->ColumnIndex);
///
///
/// Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a
/// single criteria will always have a 0 here)
///
///
/// C++:
/// imgui.h:2206
///
ImS16 SortOrder
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
public ref short SortOrder => ref Unsafe.AsRef(&_ptr->SortOrder);
///
///
/// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending
///
///
/// C++:
/// imgui.h:2207
///
ImGuiSortDirection SortDirection
///
///
///
///
/// Sorting specification for one column of a table (sizeof == 12 bytes)
///
///
public ref ImGuiSortDirection SortDirection => ref Unsafe.AsRef(&_ptr->SortDirection);
}
}