From ec0caa569b356f186e87c13e50550ca1b807dde6 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:16:20 +0200 Subject: eve support when i2s is running --- fw/fe310/eos/eve/screen/view.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'fw/fe310/eos/eve/screen/view.h') diff --git a/fw/fe310/eos/eve/screen/view.h b/fw/fe310/eos/eve/screen/view.h index c8be33a..3e8c0a0 100644 --- a/fw/fe310/eos/eve/screen/view.h +++ b/fw/fe310/eos/eve/screen/view.h @@ -11,7 +11,7 @@ struct EVEWindow; typedef uint8_t (*eve_view_draw_t) (struct EVEView *, uint8_t); typedef int (*eve_view_touch_t) (struct EVEView *, EVETouch *, uint16_t, uint8_t); typedef int (*eve_view_uievt_t) (struct EVEView *, uint16_t, void *); -typedef void (*eve_view_constructor_t) (struct EVEWindow *window, struct EVEViewStack *); +typedef int (*eve_view_constructor_t) (struct EVEWindow *window, struct EVEViewStack *); typedef struct EVEView { eve_view_draw_t draw; @@ -27,6 +27,7 @@ typedef struct EVEView { typedef struct EVEViewStack { eve_view_constructor_t constructor[EVE_VIEW_SIZE_STACK]; uint8_t level; + uint8_t dirty; } EVEViewStack; void eve_view_init(EVEView *view, struct EVEWindow *window, eve_view_draw_t draw, eve_view_touch_t touch, eve_view_uievt_t uievt, void *param); @@ -34,9 +35,10 @@ void eve_view_set_color_bg(EVEView *view, uint8_t r, uint8_t g, uint8_t b); void eve_view_set_color_fg(EVEView *view, uint8_t r, uint8_t g, uint8_t b); uint8_t eve_view_clear(EVEView *view, uint8_t tag0, uint8_t tag_opt); -void eve_view_stack_init(EVEViewStack *stack); -void eve_view_create(struct EVEWindow *window, EVEViewStack *stack, eve_view_constructor_t constructor); -void eve_view_destroy(struct EVEWindow *window, EVEViewStack *stack); - int eve_view_uievt_push(EVEView *view, uint16_t evt, void *param); int eve_view_uievt_push_gest(EVEView *view, uint16_t evt, EVETouch *touch, uint16_t t_evt, uint8_t tag0); + +void eve_stack_init(EVEViewStack *stack); +void eve_stack_create_view(EVEViewStack *stack, struct EVEWindow *window, eve_view_constructor_t constructor); +void eve_stack_back(EVEViewStack *stack, struct EVEWindow *window); +eve_view_constructor_t eve_stack_get(EVEViewStack *stack); \ No newline at end of file -- cgit v1.2.3