diff options
Diffstat (limited to 'src/widget/widget_check.h')
| -rw-r--r-- | src/widget/widget_check.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/widget/widget_check.h b/src/widget/widget_check.h new file mode 100644 index 0000000..68aecd9 --- /dev/null +++ b/src/widget/widget_check.h @@ -0,0 +1,27 @@ + +#ifndef WIDGET_CHECK_H + +#define WIDGET_CHECK_H + +#include "base/main.h" + +#define WIDGET_CHECK_TIME_SWITCH_STATUS 5 + +#define WIDGET_CHECK_WIDTH 25 +#define WIDGET_CHECK_HEIGHT 25 + +typedef struct widget_check +{ + int x, y; + bool_t status; + int time; + void (*fce_event)(void *); +} widget_check_t; + +extern widget_check_t* newWidgetCheck(int x, int y, bool_t status, void (*fce_event)(void *)); +extern void drawWidgetCheck(widget_check_t *p); +extern void eventWidgetCheck(widget_check_t *p); +extern void destroyWidgetCheck(widget_check_t *p); + +#endif + |