Gooey GUI Library
Loading...
Searching...
No Matches
gooey_slider.h
Go to the documentation of this file.
1#ifndef GOOEY_SLIDER_H
2#define GOOEY_SLIDER_H
3
4#include "common/gooey_common.h"
5#include <stdbool.h>
6
24GooeySlider *GooeySlider_Create( int x, int y, int width,
25 long min_value, long max_value, bool show_hints,
26 void (*callback)(long value));
27
38long GooeySlider_GetValue(GooeySlider *slider);
39
49void GooeySlider_SetValue(GooeySlider *slider, long value);
50
51
52#endif /* GOOEY_SLIDER_H */
void GooeySlider_SetValue(GooeySlider *slider, long value)
Sets the value of the slider.
GooeySlider * GooeySlider_Create(int x, int y, int width, long min_value, long max_value, bool show_hints, void(*callback)(long value))
Adds a slider to the window.
long GooeySlider_GetValue(GooeySlider *slider)
Gets the current value of the slider.