diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-03-29 13:31:45 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-03-29 13:31:45 +0200 |
commit | f5d49ec238769ca9c1fc58bf21e21f94a24f41ee (patch) | |
tree | 37240b5db3860f4612743f526f6966f0abdc3ad3 /fw/fe310/eos/eve/screen/form.h | |
parent | 3e04ab27bf9126a13ae692a3e5d930e791e87698 (diff) |
added page touch ui event. added ui event handler to form create
Diffstat (limited to 'fw/fe310/eos/eve/screen/form.h')
-rw-r--r-- | fw/fe310/eos/eve/screen/form.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fw/fe310/eos/eve/screen/form.h b/fw/fe310/eos/eve/screen/form.h index 87da85c..272b6ed 100644 --- a/fw/fe310/eos/eve/screen/form.h +++ b/fw/fe310/eos/eve/screen/form.h @@ -6,6 +6,7 @@ struct EVEWidget; struct EVEWidgetSpec; struct EVEForm; +typedef int (*eve_form_uievt_t) (struct EVEForm *, uint16_t, void *); typedef void (*eve_form_action_t) (struct EVEForm *); typedef void (*eve_form_destructor_t) (struct EVEForm *); @@ -14,9 +15,9 @@ typedef struct EVEForm { eve_form_action_t action; } EVEForm; -EVEForm *eve_form_create(EVEWindow *window, EVEViewStack *stack, struct EVEWidgetSpec *spec, uint16_t spec_size, eve_form_action_t action, eve_form_destructor_t destructor); -void eve_form_init(EVEForm *form, EVEWindow *window, EVEViewStack *stack, struct EVEWidget *widget, uint16_t widget_size, eve_form_action_t action, eve_form_destructor_t destructor); +EVEForm *eve_form_create(EVEWindow *window, EVEViewStack *stack, struct EVEWidgetSpec *spec, uint16_t spec_size, eve_form_uievt_t uievt, eve_form_action_t action, eve_form_destructor_t destructor); +void eve_form_init(EVEForm *form, EVEWindow *window, EVEViewStack *stack, struct EVEWidget *widget, uint16_t widget_size, eve_form_uievt_t uievt, eve_form_action_t action, eve_form_destructor_t destructor); void eve_form_update(EVEForm *form, struct EVEWidget *widget, uint16_t widget_size); void eve_form_destroy(EVEForm *form); -int eve_form_uievt(EVEView *view, uint16_t evt, void *param); +int eve_form_uievt(EVEForm *form, uint16_t evt, void *param); |