summaryrefslogtreecommitdiff
path: root/src/widget/widget_check.h
blob: 68aecd97ee1c1b7ef4e83b76f445345e6a956f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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