diff options
Diffstat (limited to 'code/fe310/eos/eve/widget/widget.h')
-rw-r--r-- | code/fe310/eos/eve/widget/widget.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/widget/widget.h b/code/fe310/eos/eve/widget/widget.h new file mode 100644 index 0000000..7638bbf --- /dev/null +++ b/code/fe310/eos/eve/widget/widget.h @@ -0,0 +1,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; + |