Code/SboxSuperuser/Engine/Vendor/ImGui/ImGuiContext.TabBar.cs

Partial class for the ImGui context that declares storage for tab bars and a stack. It defines a dictionary of tab bars by id, a list used as a stack, and a property to get the current/top tab bar.

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

internal partial class ImGuiContext
{
	public readonly Dictionary<int, ImGuiTabBar> TabBars = new();
	public readonly List<ImGuiTabBar> TabBarStack = new();
	public ImGuiTabBar CurrentTabBar => TabBarStack.Count > 0 ? TabBarStack[^1] : null;
}