mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
44 lines
2.6 KiB
C#
44 lines
2.6 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3744">imgui_internal.h:3744</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_tables.cpp#L2529">imgui_tables.cpp:2529</see>
|
|
/// <br/><c>void TableSetupDrawChannels(ImGuiTable* table)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Tables: Internals
|
|
/// </para>
|
|
/// <code>
|
|
/// Allocate draw channels. Called by TableUpdateLayout()
|
|
/// - We allocate them following storage order instead of display order so reordering columns won't needlessly
|
|
/// increase overall dormant memory cost.
|
|
/// - We isolate headers draw commands in their own channels instead of just altering clip rects.
|
|
/// This is in order to facilitate merging of draw commands.
|
|
/// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels.
|
|
/// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other
|
|
/// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged.
|
|
/// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for
|
|
/// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4).
|
|
/// Draw channel allocation (before merging):
|
|
/// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call)
|
|
/// - Clip --> 2+D+N channels
|
|
/// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero)
|
|
/// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero)
|
|
/// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void TableSetupDrawChannels_internal(ImGuiTable* table);
|
|
}
|
|
}
|