summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/screen/form.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-04 18:16:20 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-04 18:16:20 +0200
commitec0caa569b356f186e87c13e50550ca1b807dde6 (patch)
treeab07671a8aed9c573fe20d2d100be0ab1c5e68a7 /fw/fe310/eos/eve/screen/form.h
parent7f8e473ac12191ca4449de96033e2acda07dc4c4 (diff)
eve support when i2s is running
Diffstat (limited to 'fw/fe310/eos/eve/screen/form.h')
-rw-r--r--fw/fe310/eos/eve/screen/form.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/fw/fe310/eos/eve/screen/form.h b/fw/fe310/eos/eve/screen/form.h
index 62e10f7..bc81d2d 100644
--- a/fw/fe310/eos/eve/screen/form.h
+++ b/fw/fe310/eos/eve/screen/form.h
@@ -2,28 +2,15 @@
#include "../widget/widget.h"
-struct EVEWidget;
-struct EVEForm;
-struct EVEFormSpec;
-
-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 *);
-
-typedef struct EVEForm {
- EVEPage p;
- eve_form_action_t action;
-} EVEForm;
-
typedef struct EVEFormSpec {
EVELabelSpec label;
EVEWidgetSpec widget;
} EVEFormSpec;
-EVEForm *eve_form_create(EVEWindow *window, EVEViewStack *stack, EVEFormSpec *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, EVEWidget *widget, uint16_t widget_size, eve_form_uievt_t uievt, eve_form_action_t action, eve_form_destructor_t destructor);
-void eve_form_set_widget(EVEForm *form, EVEWidget *widget, uint16_t widget_size);
-void eve_form_destroy(EVEForm *form);
-
-int eve_form_uievt(EVEForm *form, uint16_t evt, void *param);
+EVEPage *eve_form_create(EVEWindow *window, EVEViewStack *stack, EVEFormSpec spec[], uint16_t spec_size, eve_page_uievt_t uievt, eve_page_destructor_t destructor);
+void eve_form_init(EVEPage *page, EVEWindow *window, EVEViewStack *stack, EVEWidget *widget, uint16_t widget_size, eve_page_uievt_t uievt, eve_page_destructor_t destructor);
+void eve_form_set_widget(EVEPage *page, EVEWidget *widget, uint16_t widget_size);
+void eve_form_destroy(EVEPage *page);
+int eve_form_uievt(EVEPage *page, uint16_t evt, void *param);
+void eve_form_update_g(EVEPage *page, EVEWidget *_widget);