diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 22:58:53 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 22:58:53 +0200 |
commit | 4ed8eb19f573d15b1b0526b2588bf20758b4f374 (patch) | |
tree | ccc78f878103f76a84157fc5ad64e1d3f93cc2e0 /code/fe310/eos/eve/widget/widget.c | |
parent | 6ec81884f4c22f789a7b77f7eb77e01ada971464 (diff) |
tile -> window; opverlapping windows added
Diffstat (limited to 'code/fe310/eos/eve/widget/widget.c')
-rw-r--r-- | code/fe310/eos/eve/widget/widget.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/code/fe310/eos/eve/widget/widget.c b/code/fe310/eos/eve/widget/widget.c index 44de4c6..79a1b25 100644 --- a/code/fe310/eos/eve/widget/widget.c +++ b/code/fe310/eos/eve/widget/widget.c @@ -1,10 +1,11 @@ #include <stdlib.h> +#include <string.h> #include "eve.h" #include "eve_kbd.h" #include "screen/screen.h" -#include "screen/tile.h" +#include "screen/window.h" #include "screen/page.h" #include "screen/font.h" @@ -18,12 +19,9 @@ static const size_t _eve_wsize[] = { sizeof(EVEPageWidget) }; -void eve_widget_init(EVEWidget *widget, uint8_t type, int16_t x, int16_t y, uint16_t w, uint16_t h, eve_widget_touch_t touch, eve_widget_draw_t draw, eve_kbd_input_handler_t putc) { +void eve_widget_init(EVEWidget *widget, uint8_t type, EVERect *g, eve_widget_touch_t touch, eve_widget_draw_t draw, eve_kbd_input_handler_t putc) { widget->type = type; - widget->x = x; - widget->y = y; - widget->w = w; - widget->h = h; + if (g) widget->g = *g; widget->touch = touch; widget->draw = draw; widget->putc = putc; |