summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/pagew.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/widget/pagew.h')
-rw-r--r--fw/fe310/eos/eve/widget/pagew.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/fw/fe310/eos/eve/widget/pagew.h b/fw/fe310/eos/eve/widget/pagew.h
new file mode 100644
index 0000000..76ac0d2
--- /dev/null
+++ b/fw/fe310/eos/eve/widget/pagew.h
@@ -0,0 +1,20 @@
+#include <stdint.h>
+
+typedef struct EVEPageWidget {
+ EVEWidget w;
+ EVEFont *font;
+ char *title;
+ eve_view_constructor_t constructor;
+} EVEPageWidget;
+
+typedef struct EVEPageSpec {
+ EVEFont *font;
+ char *title;
+ eve_view_constructor_t constructor;
+} EVEPageSpec;
+
+int eve_pagew_create(EVEPageWidget *widget, EVERect *g, EVEPage *page, EVEPageSpec *spec);
+void eve_pagew_init(EVEPageWidget *widget, EVERect *g, EVEPage *page, EVEFont *font, char *title, eve_view_constructor_t constructor);
+
+uint8_t eve_pagew_draw(EVEWidget *_widget, uint8_t tag0);
+int eve_pagew_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt);