imguiSlider

Define a new slider.

bool
imguiSlider

Parameters

label
Type: const(char)[]

The text that will be displayed above the slider.

sliderState
Type: float*

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

minValue
Type: float

The minimum value that the slider can hold.

maxValue
Type: float

The maximum value that the slider can hold.

stepValue
Type: float

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

enabled
Type: Enabled

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

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