diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 16:17:51 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 16:17:51 +0100 |
commit | 004ef27ddc89069c39b8cff1cf47f44baa3ceed1 (patch) | |
tree | a880db21a0a448a0c3407049b9f93dd447f3280d /code/fe310/eos/eve/widget/widget.h | |
parent | 682c9588dc3d281cfdca22f0d6470c9f21e4ccad (diff) |
text widget added, NOT TESTED
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; + |