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 "core/gooey_backend_internal.h"
5#include "gooey_event_internal.h"
6
20GooeySlider *GooeySlider_Add(GooeyWindow *win, int x, int y, int width,
21 long min_value, long max_value, bool show_hints,
22 void (*callback)(long value));
23
31bool GooeySlider_HandleDrag(GooeyWindow *win, GooeyEvent *event);
38long GooeySlider_GetValue(GooeySlider *slider);
39
46void GooeySlider_SetValue(GooeySlider *slider, long value);
47
48void GooeySlider_Draw(GooeyWindow *window);
49
50#endif
void GooeySlider_Draw(GooeyWindow *window)
void GooeySlider_SetValue(GooeySlider *slider, long value)
Sets the value of the slider.
GooeySlider * GooeySlider_Add(GooeyWindow *win, 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.
bool GooeySlider_HandleDrag(GooeyWindow *win, GooeyEvent *event)
Handles slider drag events.
long GooeySlider_GetValue(GooeySlider *slider)
Gets the current value of the slider.