summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/widget/widget.h
blob: 7638bbf709d6393e2f2c12d2e2017c8ba3690995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdint.h>

#include "eve_kbd.h"

#define EVE_WIDGET_TYPE_TEXT    1

struct EVEScreen;

typedef struct EVEWidget {
    uint8_t type;
    uint16_t x;
    uint16_t y;
    uint16_t w;
    uint16_t h;
    int (*touch) (struct EVEWidget *, struct EVEScreen *, uint8_t, int);
    uint8_t (*draw) (struct EVEWidget *, struct EVEScreen *, uint8_t, char);
    eve_kbd_input_handler_t putc;
} EVEWidget;