summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/spacerw.c
blob: e53c9c189bd76d9842e4da0bd67938ca6b3f0022 (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
28
29
30
31
32
33
34
35
36
37
#include <stdlib.h>
#include <string.h>

#include "eve.h"
#include "eve_kbd.h"
#include "unicode.h"

#include "screen/screen.h"
#include "screen/window.h"
#include "screen/view.h"
#include "screen/page.h"

#include "font.h"
#include "label.h"
#include "widget.h"
#include "spacerw.h"

int eve_spacerw_create(EVESpacerWidget *widget, EVERect *g, EVESpacerSpec *spec) {
    eve_spacerw_init(widget, g);

    return EVE_OK;
}

void eve_spacerw_init(EVESpacerWidget *widget, EVERect *g) {
    EVEWidget *_widget = &widget->w;

    memset(widget, 0, sizeof(EVESpacerWidget));
    eve_widget_init(_widget, EVE_WIDGET_TYPE_SPACER, g, eve_spacerw_touch, eve_spacerw_draw, NULL);
}

int eve_spacerw_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx) {
    return 0;
}

uint8_t eve_spacerw_draw(EVEWidget *_widget, EVEPage *page, uint8_t tag0) {
    return tag0;
}