82 #define CHECKBOX_WIN_FG_COLOR RGB(32,161,34)
bool gui_checkbox_add(CHECKBOX_STRUCT *checkbox)
void gui_checkbox_update(CHECKBOX_STRUCT *checkbox)
void gui_checkbox_remove(CHECKBOX_STRUCT *checkbox)
bool checked
A boolean which indicates whether or not the checkbox is currently checked.
TOUCH_AREA_STRUCT base
Basic geometry of the Checkbox. You only need to set the x1, y1, x2, y2 members of this struct...
void(* CHECKBOX_CALLBACK)(void *checkbox, bool checked)
uint16_t fgcolor
The 16-bit color of the tickmark.
void gui_checkbox_redraw(CHECKBOX_STRUCT *checkbox)
CHECKBOX_CALLBACK callback
Callback which is executed when the checkbox changes state.