diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-03-07 05:15:17 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-03-07 05:15:17 +0100 |
commit | 8592a98072740de43a5b469f60854d805641c999 (patch) | |
tree | 6a98fc6e90089a2c7257374832299f875bfbefd2 /code/fe310/eos/eve/screen/tile.h | |
parent | a0688d29102539f8bc0f5b412683bf3d899d85c0 (diff) |
eve screen/tile/canvas/page/form fw added; page widget added
Diffstat (limited to 'code/fe310/eos/eve/screen/tile.h')
-rw-r--r-- | code/fe310/eos/eve/screen/tile.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/screen/tile.h b/code/fe310/eos/eve/screen/tile.h new file mode 100644 index 0000000..5fea8bf --- /dev/null +++ b/code/fe310/eos/eve/screen/tile.h @@ -0,0 +1,24 @@ +#include <stdint.h> + +struct EVECanvas; + +typedef int (*eve_canvas_touch_t) (struct EVECanvas *, uint8_t, int); +typedef uint8_t (*eve_canvas_draw_t) (struct EVECanvas *, uint8_t); + +typedef struct EVECanvas { + eve_canvas_touch_t touch; + eve_canvas_draw_t draw; +} EVECanvas; + +typedef struct EVETile { + uint16_t x; + uint16_t y; + uint16_t w; + uint16_t h; + EVECanvas *canvas; + EVEScreen *screen; +} EVETile; + +void eve_tile_init(EVETile *tile, EVEScreen *screen, uint16_t x, uint16_t y, uint16_t w, uint16_t h, EVECanvas *canvas); +void eve_tile_get_pos(EVETile *tile, uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h); +void eve_canvas_init(EVECanvas *canvas, eve_canvas_touch_t touch, eve_canvas_draw_t draw); |