SboxSuperuser/Engine/Vendor/ImGui/ImGuiTreeNodeFlags.cs

An internal enum defining ImGui tree node flag bitmasks used by a vendored sbox-imgui integration. It lists individual flag values and composes CollapsingHeader from other flags.

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;

[Flags]
internal enum ImGuiTreeNodeFlags
{
	None = 0,
	Selected = 1 << 0,
	Framed = 1 << 1,
	AllowOverlap = 1 << 2,
	NoTreePushOnOpen = 1 << 3,
	NoAutoOpenOnLog = 1 << 4,
	DefaultOpen = 1 << 5,
	OpenOnDoubleClick = 1 << 6,
	OpenOnArrow = 1 << 7,
	Leaf = 1 << 8,
	Bullet = 1 << 9,
	FramePadding = 1 << 10,
	SpanAvailWidth = 1 << 11,
	SpanFullWidth = 1 << 12,
	SpanTextWidth = 1 << 13,
	SpanAllColumns = 1 << 14,
	NavLeftJumpsBackHere = 1 << 15,
	CollapsingHeader = Framed | NoTreePushOnOpen | NoAutoOpenOnLog,

	// Internal
	ClipLabelForTrailingButton = 1 << 20,
	UpsideDownArrow = 1 << 21,
}