imguiSlider

Define a new slider.

bool
imguiSlider

Parameters

label const(char)[]

The text that will be displayed above the slider.

sliderState float*

A pointer to a variable which holds the current slider value.

minValue float

The minimum value that the slider can hold.

maxValue float

The maximum value that the slider can hold.

stepValue float

The step at which the value of the slider will increase or decrease.

enabled Enabled

Set whether the slider's value can can be changed with the mouse.

colorScheme ColorScheme

Optionally override the current default color scheme when creating this element.

Return Value

Type: bool

true if the slider is enabled and was pressed. Note that pressing a slider implies pressing and releasing the left mouse button while over the slider.

Meta