Sliders

EsSliderCreate

EsSlider *EsSliderCreate(EsElement *parent, EsSliderFlags flags = ES_FLAGS_DEFAULT, EsStyleID style = 0, double value = 0, uint32_t steps = 0);

Creates a new slider. value is the initial position, in the range 0 to 1. If steps is non-zero, the slider snaps to that many discrete positions.

EsSliderGetValue

double EsSliderGetValue(EsSlider *slider);

Returns the current value of the slider, in the range 0 to 1.

EsSliderSetValue

void EsSliderSetValue(EsSlider *slider, double newValue, bool sendUpdatedMessage = true);

Sets the value, clamped to the range 0 to 1. If the slider has steps, the value is snapped to the nearest step. If sendUpdatedMessage is true, sends the ES_MSG_SLIDER_MOVED message.