Documentation

UI::SliderFlags

Enum

Flags that can be passed to UI::Slider*().

Values

UI::SliderFlags::None (0)

UI::SliderFlags::AlwaysClamp (16)

Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds.

UI::SliderFlags::Logarithmic (32)

Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits.

UI::SliderFlags::NoRoundToFormat (64)

Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits)

UI::SliderFlags::NoInput (128)

Disable CTRL+Click or Enter key allowing to input text directly into the widget

UI::SliderFlags::WrapAround (256)

Enable wrapping around from max to min and from min to max (only supported by DragXXX() functions for now.)