//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
///
///
/// C++:
/// imgui.h:213
///
struct ImGuiTableSortSpecs
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiTableSortSpecs
{
///
///
/// Pointer to sort spec array.
///
///
/// C++:
/// imgui.h:2194
///
const ImGuiTableColumnSortSpecs* Specs
///
///
///
///
/// 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!
///
///
[FieldOffset(0)]
public Ptr Specs;
///
///
/// Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when
/// ImGuiTableFlags_SortTristate is enabled.
///
///
/// C++:
/// imgui.h:2195
///
int SpecsCount
///
///
///
///
/// 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!
///
///
[FieldOffset(8)]
public int SpecsCount;
///
///
/// Set to true when specs have changed since last time! Use this to sort again, then clear the flag.
///
///
/// C++:
/// imgui.h:2196
///
bool SpecsDirty
///
///
///
///
/// 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!
///
///
[FieldOffset(12)]
public Bool8 SpecsDirty;
}
///
///
/// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)
///
///
/// C++:
/// imgui.h:213
///
struct ImGuiTableSortSpecs
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// Pointer to sort spec array.
///
///
/// C++:
/// imgui.h:2194
///
const ImGuiTableColumnSortSpecs* Specs
///
///
///
///
/// 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!
///
///
public ref Ptr Specs =>
ref Unsafe.AsRef>(&_ptr->Specs);
///
///
/// Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when
/// ImGuiTableFlags_SortTristate is enabled.
///
///
/// C++:
/// imgui.h:2195
///
int SpecsCount
///
///
///
///
/// 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!
///
///
public ref int SpecsCount => ref Unsafe.AsRef(&_ptr->SpecsCount);
///
///
/// Set to true when specs have changed since last time! Use this to sort again, then clear the flag.
///
///
/// C++:
/// imgui.h:2196
///
bool SpecsDirty
///
///
///
///
/// 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!
///
///
public ref bool SpecsDirty => ref Unsafe.AsRef(&_ptr->SpecsDirty);
}
}