![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
An integer class for widgets. More...
Go to the source code of this file.
Macros | |
| #define | GP_WIDGET_CLASS_INT(widget) |
| A macro to get a int class widget. | |
| #define | GP_WIDGET_CLASS_INT_PAYLOAD(widget) |
| A macro to get a int class widget payload. | |
Enumerations | |
| enum | gp_widget_int_flags { GP_WIDGET_HORIZ = 0 , GP_WIDGET_VERT = 1 } |
| A widget int direction. More... | |
Functions | |
| int64_t | gp_widget_int_val_get (gp_widget *self) |
| Returns an integer class widget value. | |
| void | gp_widget_int_set (gp_widget *self, int64_t min, int64_t max, int64_t val) |
| Sets an integer class widget value and limits. | |
| void | gp_widget_int_val_set (gp_widget *self, int64_t val) |
| Sets an integer class widget value. | |
| void | gp_widget_int_max_set (gp_widget *self, int64_t max) |
| Sets an integer class widget maximum. | |
| int64_t | gp_widget_int_max_get (gp_widget *self) |
| Gets an integer class widget maximum. | |
| void | gp_widget_int_min_set (gp_widget *self, int64_t min) |
| Sets an integer class widget minimum. | |
| int64_t | gp_widget_int_min_get (gp_widget *self) |
| Gets an integer class widget minimum. | |
| void | gp_widget_int_set_range (gp_widget *self, int64_t min, int64_t max) |
| Sets an integer class widget limits. | |
An integer class for widgets.
Integer class implements common function to get/set value and limits for integer type widget.
Definition in file gp_widget_class_int.h.
| #define GP_WIDGET_CLASS_INT | ( | widget | ) |
A macro to get a int class widget.
Definition at line 48 of file gp_widget_class_int.h.
| #define GP_WIDGET_CLASS_INT_PAYLOAD | ( | widget | ) |
A macro to get a int class widget payload.
Definition at line 57 of file gp_widget_class_int.h.
| enum gp_widget_int_flags |
A widget int direction.
| Enumerator | |
|---|---|
| GP_WIDGET_HORIZ | Widget is horizontal. |
| GP_WIDGET_VERT | Widget is vertical. |
Definition at line 23 of file gp_widget_class_int.h.
| int64_t gp_widget_int_max_get | ( | gp_widget * | self | ) |
Gets an integer class widget maximum.
| self | An integer class widget. |
| void gp_widget_int_max_set | ( | gp_widget * | self, |
| int64_t | max ) |
Sets an integer class widget maximum.
| self | An integer class widget. |
| max | New integer class widget maximum. |
| int64_t gp_widget_int_min_get | ( | gp_widget * | self | ) |
Gets an integer class widget minimum.
| self | An integer class widget. |
| void gp_widget_int_min_set | ( | gp_widget * | self, |
| int64_t | min ) |
Sets an integer class widget minimum.
| self | An integer class widget. |
| min | New integer class widget minimum. |
| void gp_widget_int_set | ( | gp_widget * | self, |
| int64_t | min, | ||
| int64_t | max, | ||
| int64_t | val ) |
Sets an integer class widget value and limits.
| self | An integer class widget. |
| min | New integer class widget minimum. |
| max | New integer class widget maximum. |
| val | New integer class widget value. |
| void gp_widget_int_set_range | ( | gp_widget * | self, |
| int64_t | min, | ||
| int64_t | max ) |
Sets an integer class widget limits.
| self | An integer class widget. |
| min | New integer class widget minimum. |
| max | New integer class widget maximum. |
| int64_t gp_widget_int_val_get | ( | gp_widget * | self | ) |
Returns an integer class widget value.
| self | An integer class widget. |
| void gp_widget_int_val_set | ( | gp_widget * | self, |
| int64_t | val ) |
Sets an integer class widget value.
| self | An integer class widget. |
| val | New integer class widget value. |