GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A checkbox widget. More...
#include <widgets/gp_widget_class_bool.h>
Go to the source code of this file.
Functions | |
gp_widget * | gp_widget_checkbox_new (const char *label, bool set) |
Allocate and initialize new checkbox widget. | |
static gp_widget * | gp_widget_checkbox_new2 (const char *label, bool set, int(*on_event)(gp_widget_event *ev), void *priv) |
Allocate and initialize new checkbox widget. | |
const char * | gp_widget_checkbox_label_get (gp_widget *self) |
Gets checkbox label. | |
A checkbox widget.
Checkbox is a bool class widget, after it's created it's acessed by the class functions such as gp_widget_bool_set().
Attribute | Type | Default | Description |
---|---|---|---|
label | string | A checkbox label, can be NULL if there is none. | |
set | bool | False | Initial checkbox value. |
Definition in file gp_widget_checkbox.h.
const char * gp_widget_checkbox_label_get | ( | gp_widget * | self | ) |
Gets checkbox label.
self | A checkbox widget. |
gp_widget * gp_widget_checkbox_new | ( | const char * | label, |
bool | set | ||
) |
Allocate and initialize new checkbox widget.
label | A checkbox label. |
val | Initial checkbox value. |
Referenced by gp_widget_checkbox_new2().
|
inlinestatic |
Allocate and initialize new checkbox widget.
label | A checkbox label. |
val | Initial checkbox value. |
on_event | An widget event handler. |
priv | User private data. |
Definition at line 52 of file gp_widget_checkbox.h.
References gp_widget_checkbox_new(), and gp_widget_on_event_set().