Code/SboxSuperuser/Engine/Vendor/ImGui/ImGuiNextItemData.cs

A small vendored struct used by the ImGui wrapper. It stores per-item 'next' configuration such as flags, item flags, a width, and open-condition/value, and provides a method to clear the flag fields.

// 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 struct ImGuiNextItemData
{
	public ImGuiNextItemDataFlags Flags;
	public ImGuiItemFlags ItemFlags;
	public float Width;
	public ImGuiCond OpenCond;
	public bool OpenVal;

	public void ClearFlags()
	{
		Flags = ImGuiNextItemDataFlags.None;
		ItemFlags = ImGuiItemFlags.None;
	}
}