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

A slider widget. More...

Go to the source code of this file.

Functions

gp_widgetgp_widget_spinner_new (int64_t min, int64_t max, int64_t val)
 Allocate and initialize a spinner widget.
 

Detailed Description

A slider widget.

Spinner is an integer class widget, after it's created it's changed by the class functions such as gp_widget_int_val_set().

Spinner 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.

Definition in file gp_widget_spinner.h.

Function Documentation

◆ gp_widget_spinner_new()

gp_widget * gp_widget_spinner_new ( int64_t  min,
int64_t  max,
int64_t  val 
)

Allocate and initialize a spinner widget.

Parameters
minSpinner minimum.
maxmin Spinner maximum.
valInitial spinner value.
Returns
A newly allocated and initialized spinner widget.