An internal flags enum for ImGui slider widget options, vendored from an sbox-imgui project. It defines bit flags like Logarithmic, NoInput, WrapAround, and composite AlwaysClamp for slider behavior and some internal flags Vertical and ReadOnly.
// 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 ImGuiSliderFlags
{
None = 0,
Logarithmic = 1 << 5,
NoRoundToFormat = 1 << 6,
NoInput = 1 << 7,
WrapAround = 1 << 8,
ClampOnInput = 1 << 9,
ClampZeroRange = 1 << 10,
NoSpeedTweaks = 1 << 11,
AlwaysClamp = ClampOnInput | ClampZeroRange,
// Internal
Vertical = 1 << 20,
ReadOnly = 1 << 21,
}