summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/app/app.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-04 18:37:42 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-04 18:37:42 +0200
commitfc98d3809e0db36d634f290417b9152f87f83e3e (patch)
treed7c0cbb883571dccfcd4028d8b7b2a2144fc2d2b /fw/fe310/phone/app/app.h
parent07e6abe5d5a1813298805bea2bf9d62ad895aaaa (diff)
new phone firmware
Diffstat (limited to 'fw/fe310/phone/app/app.h')
-rw-r--r--fw/fe310/phone/app/app.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/fw/fe310/phone/app/app.h b/fw/fe310/phone/app/app.h
new file mode 100644
index 0000000..1ba2dca
--- /dev/null
+++ b/fw/fe310/phone/app/app.h
@@ -0,0 +1,27 @@
+#include <stdint.h>
+
+#include "log.h"
+
+#define APP_SCREEN_W 480
+#define APP_SCREEN_H 854
+#define APP_STATUS_H 60
+
+#define APP_FONT_HANDLE 31
+
+#define APP_SPEC_SIZE(spec) (sizeof(spec) / sizeof(EVEFormSpec))
+#define APP_SPACERW(__w__,__h__) { \
+ .widget.type = EVE_WIDGET_TYPE_SPACER, \
+ .widget.flags = EVE_WIDGET_FLAG_SKIP, \
+ .widget.g.w = (__w__), \
+ .widget.g.h = (__h__), \
+}
+
+
+EVEWindowRoot *app_root(void);
+EVEViewStack *app_stack(void);
+EVEFont *app_font(void);
+
+void app_refresh(void);
+EVEView *app_search_view(char *name);
+eve_view_constructor_t app_current_view(void);
+void app_init(eve_view_constructor_t home_page, int b);