discoverpixy
checkbox.h
Go to the documentation of this file.
1 #ifndef CHECKBOX_H
2 #define CHECKBOX_H
3 
8 
14 
15 
16 typedef void (*CHECKBOX_CALLBACK)(void *checkbox, bool checked);
17 typedef struct {
19  uint16_t fgcolor;
20  bool checked;
23 
24 
25 bool gui_checkbox_add(CHECKBOX_STRUCT* checkbox);
26 void gui_checkbox_remove(CHECKBOX_STRUCT* checkbox);
27 void gui_checkbox_update(CHECKBOX_STRUCT* checkbox);
28 void gui_checkbox_redraw(CHECKBOX_STRUCT* checkbox);
29 #define CHECKBOX_WIN_FG_COLOR RGB(32,161,34)
30 
33 #endif /* CHECKBOX_H */
bool gui_checkbox_add(CHECKBOX_STRUCT *checkbox)
Definition: checkbox.c:36
void gui_checkbox_update(CHECKBOX_STRUCT *checkbox)
Definition: checkbox.c:73
TOUCH_AREA_STRUCT base
Definition: checkbox.h:18
void gui_checkbox_remove(CHECKBOX_STRUCT *checkbox)
Definition: checkbox.c:68
Definition: touch.h:50
bool checked
Definition: checkbox.h:20
Definition: checkbox.h:17
CHECKBOX_CALLBACK callback
Definition: checkbox.h:21
void(* CHECKBOX_CALLBACK)(void *checkbox, bool checked)
Function pointer used...
Definition: checkbox.h:16
void gui_checkbox_redraw(CHECKBOX_STRUCT *checkbox)
Definition: checkbox.c:60
uint16_t fgcolor
Definition: checkbox.h:19