summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/screen/page.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-06-25 17:43:03 +0200
committerUros Majstorovic <majstor@majstor.org>2020-06-25 17:43:03 +0200
commitd3d239fa9cb25b4a3656c09dbb38f5743d51a213 (patch)
treeb11e3883b19a3c253cd57c44482c6e50ca5dd2e7 /code/fe310/eos/eve/screen/page.c
parent12a52cf1e334e8d2000be671f30fa243542a056f (diff)
text widget fixed
Diffstat (limited to 'code/fe310/eos/eve/screen/page.c')
-rw-r--r--code/fe310/eos/eve/screen/page.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/screen/page.c b/code/fe310/eos/eve/screen/page.c
index 4c72243..25acc49 100644
--- a/code/fe310/eos/eve/screen/page.c
+++ b/code/fe310/eos/eve/screen/page.c
@@ -24,6 +24,14 @@ void eve_page_init(EVEPage *page, eve_view_touch_t touch, eve_view_draw_t draw,
page->window = window;
}
+int16_t eve_page_x(EVEPage *page, int16_t x) {
+ x + page->win_x - page->window->g.x;
+}
+
+int16_t eve_page_y(EVEPage *page, int16_t y) {
+ y + page->win_y - page->window->g.y;
+}
+
void eve_page_set_focus(EVEPage *page, EVEWidget *widget, EVERect *f) {
EVERect g;