SboxSuperuser/Engine/Vendor/ImGui/ImGuiTabItem.cs

A simple vendored data class representing a single ImGui tab item. It stores identity, layout metrics (offset, width, content width, requested width), state flags, frame indices for visibility/selection, ordering/indexing values, a close-request flag, and the tab label.

// 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 class ImGuiTabItem
{
	public int ID;
	public ImGuiTabItemFlags Flags;
	public int LastFrameVisible = -1;
	public int LastFrameSelected = -1;
	public float Offset;
	public float Width;
	public float ContentWidth;
	public float RequestedWidth = -1f;
	public int BeginOrder = -1;
	public int IndexDuringLayout = -1;
	public bool WantClose;
	public string Label;
}