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

55 lines
3.4 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// append into the specified column. Return true when column is visible.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L909">imgui.h:909</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2118">imgui_tables.cpp:2118</see>
/// <br/><c>bool TableSetColumnIndex(int column_n)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Tables
/// - Full-featured replacement for old Columns API.
/// - See Demo-&gt;Tables for demo code. See top of imgui_tables.cpp for general commentary.
/// - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags.
/// The typical call flow is:
/// - 1. Call BeginTable(), early out if returning false.
/// - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults.
/// - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows.
/// - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data.
/// - 5. Populate contents:
/// - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column.
/// - If you are using tables as a sort of grid, where every column is holding the same type of contents,
/// you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex().
/// TableNextColumn() will automatically wrap-around into the next row if needed.
/// - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column!
/// - Summary of possible call flow:
/// - TableNextRow() -&gt; TableSetColumnIndex(0) -&gt; Text("Hello 0") -&gt; TableSetColumnIndex(1) -&gt; Text("Hello 1") // OK
/// - TableNextRow() -&gt; TableNextColumn() -&gt; Text("Hello 0") -&gt; TableNextColumn() -&gt; Text("Hello 1") // OK
/// - TableNextColumn() -&gt; Text("Hello 0") -&gt; TableNextColumn() -&gt; Text("Hello 1") // OK: TableNextColumn() automatically gets to next row!
/// - TableNextRow() -&gt; Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear!
/// - 5. Call EndTable()
/// </code>
/// <para>
/// [Public] Append into a specific column
/// </para>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 TableSetColumnIndex(int column_n);
}
}
}