GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Functions
gp_widget_slider.h File Reference

A slider widget. More...

Go to the source code of this file.

Functions

gp_widgetgp_widget_slider_new (int64_t min, int64_t max, int64_t val, int dir)
 Allocate and initialize a slider widget.
 

Detailed Description

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().

Slider widget JSON attributes

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.

Function Documentation

◆ gp_widget_slider_new()

gp_widget * gp_widget_slider_new ( int64_t  min,
int64_t  max,
int64_t  val,
int  dir 
)

Allocate and initialize a slider widget.

Parameters
minSlider minimum.
maxSlider maximum.
valInitial slider value.
dirSlider direction.
Returns
A slider widget.