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
28
29
30
31
32
33
|
#include <stdint.h>
struct EVEFreeWidget;
struct EVEWidgetSpec;
typedef void (*eve_freew_draw_t) (struct EVEFreeWidget *);
typedef int (*eve_freew_touch_t) (struct EVEFreeWidget *, EVETouch *, uint16_t);
typedef void (*eve_freew_uievt_t) (struct EVEFreeWidget *, uint16_t);
typedef struct EVEFreeWidget {
EVEWidget w;
eve_freew_draw_t _draw;
eve_freew_touch_t _touch;
eve_freew_uievt_t _uievt;
} EVEFreeWidget;
typedef struct EVEFreeSpec {
eve_freew_draw_t draw;
eve_freew_touch_t touch;
eve_kbd_input_handler_t putc;
} EVEFreeSpec;
int eve_freew_init(EVEFreeWidget *widget, EVERect *g, EVEPage *page, eve_freew_draw_t draw, eve_freew_touch_t touch, eve_kbd_input_handler_t putc);
void eve_freew_set_uievt_handler(EVEFreeWidget *widget, eve_freew_uievt_t handler);
int eve_freew_create(EVEWidget *_widget, struct EVEWidgetSpec *spec, EVEPage *page);
uint8_t eve_freew_draw(EVEWidget *_widget, uint8_t tag0);
int eve_freew_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt);
uint8_t eve_freew_tag0(EVEFreeWidget *widget);
void eve_freew_tag(EVEFreeWidget *widget, uint8_t tag_opt);
void eve_freew_tag_idx(EVEFreeWidget *widget, uint8_t i);
uint8_t eve_freew_get_tag_idx(EVEFreeWidget *widget, uint8_t tag);
|