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
|
#include <stdlib.h>
#include <string.h>
#include "eve.h"
#include "eve_kbd.h"
#include "eve_font.h"
#include "screen/window.h"
#include "screen/page.h"
#include "widget.h"
void eve_spacerw_init(EVEWidget *widget, EVERect *g, EVEPage *page) {
memset(widget, 0, sizeof(EVEWidget));
eve_widget_init(widget, EVE_WIDGET_TYPE_SPACER, g, page, eve_spacerw_draw, eve_spacerw_touch, NULL);
}
int eve_spacerw_create(EVEWidget *_widget, EVEWidgetSpec *spec, EVEPage *page) {
eve_spacerw_init(_widget, &spec->g, page);
return EVE_OK;
}
uint8_t eve_spacerw_draw(EVEWidget *_widget, uint8_t tag0) {
_widget->tag0 = tag0;
_widget->tagN = tag0;
return _widget->tagN;
}
int eve_spacerw_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt) {
return 0;
}
|