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

A small partial class for an ImGui context that stores state for color editing widgets. It holds option flags, current and saved widget IDs, saved hue/saturation/color, and a reference color used by the color picker.

Native Interop
// 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 ImGuiColorEditFlags ColorEditOptions = ImGuiColorEditFlags.DefaultOptions_;
	public int ColorEditCurrentID;
	public int ColorEditSavedID;
	public float ColorEditSavedHue;
	public float ColorEditSavedSat;
	public Color32 ColorEditSavedColor;
	public Vector4 ColorPickerRef;
}