GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A slider widget. More...
Go to the source code of this file.
Functions | |
gp_widget * | gp_widget_slider_new (int64_t min, int64_t max, int64_t val, int dir) |
Allocate and initialize a slider widget. | |
A slider widget.
Slider is an integer class widget, after it's created it's changed by the class functions such as gp_widget_int_val_set().
Attribute | Type | Default | Description |
---|---|---|---|
max | int64 | 0 | A slider maximum. |
min | int64 | 0 | A slider minimum. |
val | int64 | 0 | A slider value. |
dir | string | GP_WIDGET_VERT | Either "horiz" or "vert". |
Definition in file gp_widget_slider.h.
gp_widget * gp_widget_slider_new | ( | int64_t | min, |
int64_t | max, | ||
int64_t | val, | ||
int | dir | ||
) |
Allocate and initialize a slider widget.
min | Slider minimum. |
max | Slider maximum. |
val | Initial slider value. |
dir | Slider direction. |